Permalink
Browse files

Merge pull request #9035 from adomokos/aligning_tests

Adding the route_key and param_key tests
  • Loading branch information...
2 parents 4beb4de + 69b6129 commit e20c0e3a8f17d716720d248d3db5f022f7cb021a @carlosantoniodasilva carlosantoniodasilva committed Jan 23, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 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

0 comments on commit e20c0e3

Please sign in to comment.