Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Aug 17, 2015
1 parent 18b75ab commit b768aa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/migration_selection_dialog_test.rb
Expand Up @@ -15,7 +15,7 @@
# check the displayed content
expect(Yast::Wizard).to receive(:SetContents) do |_title, content, _help, _back, _next|
# do a simple check: convert the term to a String
expect(content.to_s).to include("`item (`id (0), \"SLES-12.1-x86_64\")")
expect(content.to_s).to include("`item (`id (0), \"SLES-12.1\")")
end

expect(subject.run(migration_products, [])).to eq(:abort)
Expand Down
5 changes: 5 additions & 0 deletions test/registration_ui_test.rb
Expand Up @@ -39,6 +39,11 @@
expect(registration).to receive(:register_product).with(base_product_to_register, email)
.and_return([])

options = Registration::Storage::InstallationOptions.instance
allow(options).to receive(:email).twice.and_return(email)
allow(options).to receive(:reg_code).and_return(reg_code)
allow(options).to receive(:base_registered).and_return(false)

expect(registration_ui.register_system_and_base_product(email, reg_code)).to be_true
end
end
Expand Down

0 comments on commit b768aa1

Please sign in to comment.