aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-12-04 17:12:57 +0100
committerPiotr Sarnacki <drogus@gmail.com>2010-12-09 01:59:54 +0100
commit5df72a238e9fcb18daf6ab6e6dc9051c9106d7bb (patch)
tree6b94712c8b82f77bf663f0ffa429a8197ca98b0c /railties/test
parent2dc3342f75577fa521d9d0c54260da75450126a2 (diff)
downloadrails-5df72a238e9fcb18daf6ab6e6dc9051c9106d7bb.tar.gz
rails-5df72a238e9fcb18daf6ab6e6dc9051c9106d7bb.tar.bz2
rails-5df72a238e9fcb18daf6ab6e6dc9051c9106d7bb.zip
Rake tasks for managing database while development and testing of engines
Some of the engines needs database. As engine needs to be run inside Rails application, migrations and other database operations are run from dummy application. To make that process simple I changed db tasks to look for migrations in both engine's and application's db/migrate directory. You can run all of the database tasks from test/dummy or directly from engine with prefix app, like: rake app:db:migrate rake app:db:migrate:redo
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/plugin_new_generator_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb
index 2105585272..0d24821ff6 100644
--- a/railties/test/generators/plugin_new_generator_test.rb
+++ b/railties/test/generators/plugin_new_generator_test.rb
@@ -114,7 +114,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
end
def test_ensure_that_tests_works_in_full_mode
- run_generator [destination_root, "--full"]
+ run_generator [destination_root, "--full", "--skip_active_record"]
FileUtils.cd destination_root
`bundle install`
assert_match /2 tests, 2 assertions, 0 failures, 0 errors/, `bundle exec rake test`