Skip to content

Commit

Permalink
More compatibility with RSpec3
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs authored and lslezak committed Apr 17, 2015
1 parent aff1f03 commit 45a1f4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/storage_spec.rb
Expand Up @@ -79,7 +79,7 @@
expect(subject.reg_server).to eq("")
expect(subject.email).to eq("foo@example.com")
expect(subject.reg_code).to eq("FOOBAR42")
expect(subject.addons).to have(1).item
expect(subject.addons.size).to eq 1
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions test/sw_mgmt_spec.rb
Expand Up @@ -209,7 +209,7 @@

addon_updates = subject.find_addon_updates(available_addons)
# an update only for SDK addon is available
expect(addon_updates).to have(1).items
expect(addon_updates.size).to eq 1
expect(addon_updates.first.label).to \
eq("SUSE Linux Enterprise Software Development Kit 12 x86_64")
end
Expand Down Expand Up @@ -238,7 +238,7 @@
end

it "Returns product resolvables from the specified repository" do
expect(subject.products_from_repo(5)).to have(1).item
expect(subject.products_from_repo(5).size).to eq 1
end

it "Returns empty list if not product is found" do
Expand Down

0 comments on commit 45a1f4a

Please sign in to comment.