Skip to content
Permalink
Browse files

layout

  • Loading branch information...
schubi2 committed Aug 17, 2018
1 parent f1c9649 commit c69aa80dcc9243b2ce10aabbb2dd30773d7dce20
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/lib/autosetup_helpers_test.rb
@@ -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

@@ -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

0 comments on commit c69aa80

Please sign in to comment.
You can’t perform that action at this time.