Skip to content

Commit

Permalink
Merge pull request #9035 from adomokos/aligning_tests
Browse files Browse the repository at this point in the history
Adding the route_key and param_key tests
  • Loading branch information
carlosantoniodasilva committed Jan 23, 2013
2 parents 4beb4de + 69b6129 commit e20c0e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions activemodel/test/cases/naming_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ def test_human
assert_equal 'Track back', @model_name.human assert_equal 'Track back', @model_name.human
end 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 def test_i18n_key
assert_equal :"post/track_back", @model_name.i18n_key assert_equal :"post/track_back", @model_name.i18n_key
end end
Expand Down

0 comments on commit e20c0e3

Please sign in to comment.