1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure that tests run properly

This commit is contained in:
Piotr Sarnacki 2010-10-20 21:21:37 +02:00
parent 59d52229f9
commit fd1562af8c

View file

@ -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)