Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Aug 17, 2018
1 parent f1c9649 commit c69aa80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/lib/autosetup_helpers_test.rb
Expand Up @@ -55,7 +55,8 @@ class DummyClient < Yast::Client
let(:reg_module_available) { true }

before do
allow_any_instance_of(Y2Autoinstallation::AutosetupHelpers).to receive(:registration_module_available?).and_return(reg_module_available)
allow_any_instance_of(Y2Autoinstallation::AutosetupHelpers).to receive(
:registration_module_available?).and_return(reg_module_available)
allow(Yast::Profile).to receive(:current).and_return(profile_content)
end

Expand Down Expand Up @@ -97,7 +98,8 @@ class DummyClient < Yast::Client
let(:profile_content) { { "general" => {"semi-automatic" => ["scc"]} } }
it "returns true" do
# Showing registration screen mask
expect(Yast::WFM).to receive(:CallFunction).with("inst_scc", ["enable_next" => true])
expect(Yast::WFM).to receive(:CallFunction).with("inst_scc",
["enable_next" => true])
expect(client.suse_register).to eq(true)
end
end
Expand Down

0 comments on commit c69aa80

Please sign in to comment.