diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-10 00:36:31 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-10 00:36:31 -0300 |
commit | 9e42cd86869dcc158b0321b2d2dfcc185a7d0282 (patch) | |
tree | a8d67fd8202716b35c3552c21db17ecc356f2ffe /railties/test/application | |
parent | 05e6123653b7ceb98960403ec40788b3f34e3efd (diff) | |
parent | 190f638d398edf70fef0c32a389ed84a449bccb8 (diff) | |
download | rails-9e42cd86869dcc158b0321b2d2dfcc185a7d0282.tar.gz rails-9e42cd86869dcc158b0321b2d2dfcc185a7d0282.tar.bz2 rails-9e42cd86869dcc158b0321b2d2dfcc185a7d0282.zip |
Merge branch 'scaffold_fixes'
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/rake_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index f2234ab111..a8275a2e76 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -195,6 +195,16 @@ module ApplicationTests assert_no_match(/Errors running/, output) end + def test_scaffold_with_references_columns_tests_pass_by_default + output = Dir.chdir(app_path) do + `rails generate scaffold LineItems product:references cart:belongs_to; + bundle exec rake db:migrate db:test:clone test` + end + + assert_match(/7 tests, 13 assertions, 0 failures, 0 errors/, output) + assert_no_match(/Errors running/, output) + end + def test_db_test_clone_when_using_sql_format add_to_config "config.active_record.schema_format = :sql" output = Dir.chdir(app_path) do |