Skip to content
Browse files

Adding the route_key and param_key tests

This way all the tests are testing the same fields
  • Loading branch information...
1 parent e35d0a6 commit 69b6129fd4125867348b196c8f182046b8659948 @adomokos adomokos committed Jan 22, 2013
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

0 comments on commit 69b6129

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