From ddf58fa9aa15bb2f58bc8779aab5bd273d35edde Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Tue, 12 Jun 2012 14:39:40 -0400 Subject: 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 b35dc2d26d..214546802a 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