Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Need a assert here in tests

  • Loading branch information...
commit ddf58fa9aa15bb2f58bc8779aab5bd273d35edde 1 parent a268d2d
@arunagw arunagw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/mass_assignment_security_test.rb
View
4 activerecord/test/cases/mass_assignment_security_test.rb
@@ -95,11 +95,11 @@ def test_mass_assigning_invalid_attribute
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
Please sign in to comment.
Something went wrong with that request. Please try again.