aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/module
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-07 12:45:48 -0500
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-07 12:45:48 -0500
commit18099b0fd53b8f9ba88ef46bdd910347f03c72c5 (patch)
tree763fef4bb4966040d2b80c19301bf9572feb02db /activesupport/test/core_ext/module
parent7b28a55a2bc9bedd5a8c8dec0a8a02166927ef16 (diff)
downloadrails-18099b0fd53b8f9ba88ef46bdd910347f03c72c5.tar.gz
rails-18099b0fd53b8f9ba88ef46bdd910347f03c72c5.tar.bz2
rails-18099b0fd53b8f9ba88ef46bdd910347f03c72c5.zip
Rework testing extensions to reflect the recent miniunit upheaval
Diffstat (limited to 'activesupport/test/core_ext/module')
-rw-r--r--activesupport/test/core_ext/module/model_naming_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/module/model_naming_test.rb b/activesupport/test/core_ext/module/model_naming_test.rb
index fc73fa5c36..d08349dd97 100644
--- a/activesupport/test/core_ext/module/model_naming_test.rb
+++ b/activesupport/test/core_ext/module/model_naming_test.rb
@@ -2,18 +2,18 @@ require 'abstract_unit'
class ModelNamingTest < Test::Unit::TestCase
def setup
- @name = ActiveSupport::ModelName.new('Post::TrackBack')
+ @model_name = ActiveSupport::ModelName.new('Post::TrackBack')
end
def test_singular
- assert_equal 'post_track_back', @name.singular
+ assert_equal 'post_track_back', @model_name.singular
end
def test_plural
- assert_equal 'post_track_backs', @name.plural
+ assert_equal 'post_track_backs', @model_name.plural
end
def test_partial_path
- assert_equal 'post/track_backs/track_back', @name.partial_path
+ assert_equal 'post/track_backs/track_back', @model_name.partial_path
end
end