diff options
author | Attila Domokos <adomokos@gmail.com> | 2013-01-22 22:13:43 -0500 |
---|---|---|
committer | Attila Domokos <adomokos@gmail.com> | 2013-01-22 22:13:43 -0500 |
commit | 69b6129fd4125867348b196c8f182046b8659948 (patch) | |
tree | 7e11fa287ed00548211a538b553251b8e5ae897e /activemodel/test | |
parent | e35d0a6112a73a05fc886b49b6df6ef26d2e3368 (diff) | |
download | rails-69b6129fd4125867348b196c8f182046b8659948.tar.gz rails-69b6129fd4125867348b196c8f182046b8659948.tar.bz2 rails-69b6129fd4125867348b196c8f182046b8659948.zip |
Adding the route_key and param_key tests
This way all the tests are testing the same fields
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/naming_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activemodel/test/cases/naming_test.rb b/activemodel/test/cases/naming_test.rb index 49d8706ac2..38ba3cc152 100644 --- a/activemodel/test/cases/naming_test.rb +++ b/activemodel/test/cases/naming_test.rb @@ -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 |