diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-01 08:10:48 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-01 08:10:48 -0700 |
commit | fe64edec3df2010d185db4178d542de82b939cba (patch) | |
tree | c06e0d7a5632986995d1132707318f9edcf79aa5 /railties/test/generators_test.rb | |
parent | 09ce1df7aa2845b86a98a392cb6691566f533d9b (diff) | |
parent | dbdb25463c257a9efd0771c6876756263fd071f1 (diff) | |
download | rails-fe64edec3df2010d185db4178d542de82b939cba.tar.gz rails-fe64edec3df2010d185db4178d542de82b939cba.tar.bz2 rails-fe64edec3df2010d185db4178d542de82b939cba.zip |
Merge pull request #12728 from arunagw/aa-warnings-removed-ruby-trunk
More Warnings removed for ruby trunk
Diffstat (limited to 'railties/test/generators_test.rb')
-rw-r--r-- | railties/test/generators_test.rb | 4 |
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? |