diff options
author | Arthur Neves <arthurnn@gmail.com> | 2013-12-14 18:00:17 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2013-12-14 18:00:17 -0500 |
commit | 2648819ef1ec412cfd1798a0df58939c0f1641d5 (patch) | |
tree | 3d1499503b5224187289ee238576e35c8fcd33ba /railties | |
parent | b3a806b7b2179fc588465fee728fe837cf8d4940 (diff) | |
download | rails-2648819ef1ec412cfd1798a0df58939c0f1641d5.tar.gz rails-2648819ef1ec412cfd1798a0df58939c0f1641d5.tar.bz2 rails-2648819ef1ec412cfd1798a0df58939c0f1641d5.zip |
Regression test for load_structure and clone_structure
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/rake_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 08316d80e6..33d3c4a19e 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -208,7 +208,8 @@ module ApplicationTests add_to_config "config.active_record.schema_format = :sql" output = Dir.chdir(app_path) do `rails generate scaffold user username:string; - bundle exec rake db:migrate db:test:clone 2>&1 --trace` + bundle exec rake db:migrate; + bundle exec rake db:test:clone 2>&1 --trace` end assert_match(/Execute db:test:clone_structure/, output) end @@ -217,7 +218,8 @@ module ApplicationTests add_to_config "config.active_record.schema_format = :sql" output = Dir.chdir(app_path) do `rails generate scaffold user username:string; - bundle exec rake db:migrate db:test:prepare 2>&1 --trace` + bundle exec rake db:migrate; + bundle exec rake db:test:prepare 2>&1 --trace` end assert_match(/Execute db:test:load_structure/, output) end |