diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-03-11 16:03:10 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-03-11 16:03:10 +0530 |
commit | 647a9abb02ceffc7002b94d46a290621280e8d67 (patch) | |
tree | ab28874490b78f547254fd84480fc78639a7b0b7 /activesupport | |
parent | 51af1b1126659f91db067eb404842cac39506d02 (diff) | |
download | rails-647a9abb02ceffc7002b94d46a290621280e8d67.tar.gz rails-647a9abb02ceffc7002b94d46a290621280e8d67.tar.bz2 rails-647a9abb02ceffc7002b94d46a290621280e8d67.zip |
Cleanup tests for unused variables
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/dependencies_test.rb | 2 | ||||
-rw-r--r-- | activesupport/test/inflector_test.rb | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index 615808090d..8803ca3348 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -878,7 +878,7 @@ class DependenciesTest < ActiveSupport::TestCase def test_autoload_doesnt_shadow_name_error with_autoloading_fixtures do Object.send(:remove_const, :RaisesNameError) if defined?(::RaisesNameError) - 2.times do |i| + 2.times do begin ::RaisesNameError::FooBarBaz.object_id flunk 'should have raised NameError when autoloaded file referenced FooBarBaz' diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index a1e5db6a2e..4806ce07f6 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -61,9 +61,7 @@ class InflectorTest < ActiveSupport::TestCase assert_equal(plural, ActiveSupport::Inflector.pluralize(plural)) assert_equal(plural.capitalize, ActiveSupport::Inflector.pluralize(plural.capitalize)) end - end - SingularToPlural.each do |singular, plural| define_method "test_singularize_singular_#{singular}" do assert_equal(singular, ActiveSupport::Inflector.singularize(singular)) assert_equal(singular.capitalize, ActiveSupport::Inflector.singularize(singular.capitalize)) |