Skip to content
Browse files

respond_to -> respond to in a message from AM::Lint

The error message uses English to say that the object should respond
to a certain method. You check that with respond_to, but that's not
English.

This makes this error message also consistent with the rest.
  • Loading branch information...
1 parent 026ee2a commit efdd972b8da5b55c156a9e8f1d66a1f739efc97d @fxn fxn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/lint.rb
View
2 activemodel/lib/active_model/lint.rb
@@ -98,7 +98,7 @@ def test_errors_aref
private
def model
- assert @model.respond_to?(:to_model), "The object should respond_to to_model"
+ assert @model.respond_to?(:to_model), "The object should respond to to_model"
@model.to_model
end

0 comments on commit efdd972

Please sign in to comment.
Something went wrong with that request. Please try again.