Skip to content

Commit

Permalink
Break specs into 1 assertion per block
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Oct 3, 2012
1 parent e0818f7 commit 4ff5bac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/moped/query_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,11 @@
users.find(likes: 1).modify({ "$set" => { name: "Tool" }}, upsert: true)
end

it "returns an empty hash" do
result.should be_kind_of(Hash)
it "returns a hash" do
result.should be_a(Hash)
end

it "returns an empty result" do
result.should be_empty
end

Expand Down

0 comments on commit 4ff5bac

Please sign in to comment.