Skip to content

Commit

Permalink
Asserted that Role.count goes up by 1 when we make a new Role.
Browse files Browse the repository at this point in the history
  • Loading branch information
judytuna committed Apr 25, 2012
1 parent 0f62f69 commit 5447b5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/models/role_spec.rb
Expand Up @@ -7,7 +7,9 @@
end

it "should create a new Role given valid attributes" do
Role.create!(@attr)
expect do
Role.create!(@attr)
end.to change(Role, :count).by(1)
end

it "should have a title" do
Expand Down

0 comments on commit 5447b5d

Please sign in to comment.