diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-20 21:21:37 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:50 +0100 |
commit | fd1562af8c662fee8a44d244eaed3350ce10e7da (patch) | |
tree | b2b5d8b6b9a76e2a57be18474e69f65e11f09144 /railties/test/generators | |
parent | 59d52229f9ddd55a1cf0674c774a8aeb68300ccf (diff) | |
download | rails-fd1562af8c662fee8a44d244eaed3350ce10e7da.tar.gz rails-fd1562af8c662fee8a44d244eaed3350ce10e7da.tar.bz2 rails-fd1562af8c662fee8a44d244eaed3350ce10e7da.zip |
Ensure that tests run properly
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 8f230525bc..0d88d36971 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -143,6 +143,13 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase assert_file 'Gemfile', %r{^gem\s+["']rails["'],\s+:git\s+=>\s+["']#{Regexp.escape("git://github.com/rails/rails.git")}["']$} end + def test_ensure_that_tests_works + run_generator + FileUtils.cd destination_root + `bundle install` + assert_match /2 tests, 2 assertions, 0 failures, 0 errors/, `bundle exec rake test` + end + protected def action(*args, &block) |