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 6f17430 commit 18b75ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/migration_repos_selection_dialog_test.rb
Expand Up @@ -17,9 +17,9 @@

# do a simple check: convert the term to a String
# an unselected repository
expect(content.to_s).to include("item (`id (0), \"name (https://example.com)\", false)")
expect(content.to_s).to include("item (`id (0), \"name\", false)")
# a selected repository
expect(content.to_s).to include("`item (`id (1), \"name2 (https://example2.com)\", true)")
expect(content.to_s).to include("`item (`id (1), \"name2\", true)")
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/registration_ui_test.rb
Expand Up @@ -34,7 +34,7 @@
reg_code = "reg_code"

expect(Registration::Registration).to receive(:is_registered?).and_return(false)
expect(Registration::SwMgmt).to receive(:find_base_product).twice.and_return(base_product)
expect(Registration::SwMgmt).to receive(:find_base_product).and_return(base_product)
expect(registration).to receive(:register).with(email, reg_code, target_distro)
expect(registration).to receive(:register_product).with(base_product_to_register, email)
.and_return([])
Expand Down

0 comments on commit 18b75ab

Please sign in to comment.