Skip to content

Commit

Permalink
Adapt unit test due changes in module
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilson Souza committed Aug 31, 2017
1 parent 81cdcb3 commit e74d1be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/inst_complex_welcome_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
let(:other_product) { instance_double(Y2Packager::Product) }
let(:products) { [product, other_product] }

let(:autoinst) { false }
let(:auto) { false }

before do
# fake yast2-country, to avoid additional build dependencies
Expand All @@ -37,7 +37,7 @@
stub_const("Yast::Language", double(language: "en_US", GetLanguageItems: []))
stub_const("Yast::Wizard", double.as_null_object)
stub_const("Yast::ProductLicense", double.as_null_object)
stub_const("Yast::Mode", double(autoinst: autoinst))
stub_const("Yast::Mode", double(auto: auto))
# stub complete UI, as if it goes thrue component system it will get one of
# null object returned above as parameter and it raise exception from
# component system
Expand All @@ -64,7 +64,7 @@
end

context "when installation Mode is auto" do
let(:autoinst) { true }
let(:auto) { true }

it "returns :auto" do
expect(subject.main).to eql(:auto)
Expand Down

0 comments on commit e74d1be

Please sign in to comment.