From 5dd2cfc8b4a89ec6321ebbb0e81cd50d58785b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 12 Jun 2012 11:43:12 -0700 Subject: Merge pull request #6715 from arunagw/add_asserts Need a assert here in tests --- activerecord/test/cases/mass_assignment_security_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord') diff --git a/activerecord/test/cases/mass_assignment_security_test.rb b/activerecord/test/cases/mass_assignment_security_test.rb index e47b06f244..5153945546 100644 --- a/activerecord/test/cases/mass_assignment_security_test.rb +++ b/activerecord/test/cases/mass_assignment_security_test.rb @@ -95,11 +95,11 @@ class MassAssignmentSecurityTest < ActiveRecord::TestCase end def test_mass_assigning_does_not_choke_on_nil - Firm.new.assign_attributes(nil) + assert_nil Firm.new.assign_attributes(nil) end def test_mass_assigning_does_not_choke_on_empty_hash - Firm.new.assign_attributes({}) + assert_nil Firm.new.assign_attributes({}) end def test_assign_attributes_uses_default_role_when_no_role_is_provided -- cgit v1.2.3