Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9035 from adomokos/aligning_tests

Adding the route_key and param_key tests
  • Loading branch information...
commit e20c0e3a8f17d716720d248d3db5f022f7cb021a 2 parents 4beb4de + 69b6129
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 activemodel/test/cases/naming_test.rb
View
8 activemodel/test/cases/naming_test.rb
@@ -29,6 +29,14 @@ def test_human
assert_equal 'Track back', @model_name.human
end
+ def test_route_key
+ assert_equal 'post_track_backs', @model_name.route_key
+ end
+
+ def test_param_key
+ assert_equal 'post_track_back', @model_name.param_key
+ end
+
def test_i18n_key
assert_equal :"post/track_back", @model_name.i18n_key
end
Please sign in to comment.
Something went wrong with that request. Please try again.