aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators_test.rb
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2013-11-01 10:39:06 +0100
committerArun Agrawal <arunagw@gmail.com>2013-11-01 13:47:23 +0100
commitc10a78124c1c32f8ce3a92888863b9b258efcc06 (patch)
treec21a5710a6a5246f838a276dd7051caf2a8892b2 /railties/test/generators_test.rb
parent026b6daa05a5712ef84b687eb742f88feb3ca886 (diff)
downloadrails-c10a78124c1c32f8ce3a92888863b9b258efcc06.tar.gz
rails-c10a78124c1c32f8ce3a92888863b9b258efcc06.tar.bz2
rails-c10a78124c1c32f8ce3a92888863b9b258efcc06.zip
More Warnings removed for ruby trunk
Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
Diffstat (limited to 'railties/test/generators_test.rb')
-rw-r--r--railties/test/generators_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb
index 5130b285a9..eac28badfe 100644
--- a/railties/test/generators_test.rb
+++ b/railties/test/generators_test.rb
@@ -15,7 +15,7 @@ class GeneratorsTest < Rails::Generators::TestCase
end
def test_simple_invoke
- assert File.exists?(File.join(@path, 'generators', 'model_generator.rb'))
+ assert File.exist?(File.join(@path, 'generators', 'model_generator.rb'))
TestUnit::Generators::ModelGenerator.expects(:start).with(["Account"], {})
Rails::Generators.invoke("test_unit:model", ["Account"])
end
@@ -31,7 +31,7 @@ class GeneratorsTest < Rails::Generators::TestCase
end
def test_should_give_higher_preference_to_rails_generators
- assert File.exists?(File.join(@path, 'generators', 'model_generator.rb'))
+ assert File.exist?(File.join(@path, 'generators', 'model_generator.rb'))
Rails::Generators::ModelGenerator.expects(:start).with(["Account"], {})
warnings = capture(:stderr){ Rails::Generators.invoke :model, ["Account"] }
assert warnings.empty?