mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ensure that tests run properly
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user