Adding the route_key and param_key tests

This way all the tests are testing the same fields
This commit is contained in:
Attila Domokos 2013-01-22 22:13:43 -05:00
parent e35d0a6112
commit 69b6129fd4
1 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,14 @@ class NamingTest < ActiveModel::TestCase
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