mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Regression test for load_structure and clone_structure
This commit is contained in:
parent
b3a806b7b2
commit
2648819ef1
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue