aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-11 06:17:34 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-11 06:17:34 -0700
commit8fc391572c6e8342088bc0b8ee78c1dff5abb04d (patch)
tree4dc2daaf615c3e32c30550dd7abd712edac93737 /activesupport/test
parent46c3a576cb7fe83c27bfedc6c17b4efe27dc3fb9 (diff)
parent647a9abb02ceffc7002b94d46a290621280e8d67 (diff)
downloadrails-8fc391572c6e8342088bc0b8ee78c1dff5abb04d.tar.gz
rails-8fc391572c6e8342088bc0b8ee78c1dff5abb04d.tar.bz2
rails-8fc391572c6e8342088bc0b8ee78c1dff5abb04d.zip
Merge pull request #9657 from vipulnsward/cleanup_tests
Cleanup tests for unused variables
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/dependencies_test.rb2
-rw-r--r--activesupport/test/inflector_test.rb2
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))