Skip to content

Commit

Permalink
Fix typo in assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Mar 16, 2011
1 parent 7bd70dc commit e8458d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/lint.rb
Expand Up @@ -40,7 +40,7 @@ def test_to_param
assert model.respond_to?(:to_param), "The model should respond to to_param"
def model.to_key() [1] end
def model.persisted?() false end
assert model.to_param.nil?, "to_param should return nil when `persited?` returns false"
assert model.to_param.nil?, "to_param should return nil when `persisted?` returns false"
end

# == Responds to <tt>valid?</tt>
Expand Down

0 comments on commit e8458d3

Please sign in to comment.