fix tests

This commit is contained in:
albert
2011-07-22 19:02:53 -04:00
parent 9649e7f40a
commit 5d05769c2c
3 changed files with 14 additions and 12 deletions

View File

@@ -66,9 +66,9 @@ class NotesControllerTest < ActionController::TestCase
end
should "destroy a note" do
assert_difference("Note.count", -1) do
post :destroy, {:id => @note.id}, {:user_id => @user.id}
end
post :destroy, {:id => @note.id}, {:user_id => @user.id}
@note.reload
assert_equal(false, @note.is_active?)
end
end