diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-20 22:04:34 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-20 22:04:34 +0200 |
commit | 6dd196914c293fbc1a331e4a0bc1c06a26dded43 (patch) | |
tree | f780afefac3f0a21157b8a391fcf7a0d7470bb72 /railties/test/generator | |
parent | 2c3ebc00b768b9f580ce7367dd96e8f41a1420dc (diff) | |
download | rails-6dd196914c293fbc1a331e4a0bc1c06a26dded43.tar.gz rails-6dd196914c293fbc1a331e4a0bc1c06a26dded43.tar.bz2 rails-6dd196914c293fbc1a331e4a0bc1c06a26dded43.zip |
Remove class level conditions and ensure that RAILS_GEM_VERSION is commented when freeze.
Diffstat (limited to 'railties/test/generator')
-rw-r--r-- | railties/test/generator/app_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/generator/app_test.rb b/railties/test/generator/app_test.rb index 431a4bc4f6..5329e27f9b 100644 --- a/railties/test/generator/app_test.rb +++ b/railties/test/generator/app_test.rb @@ -98,9 +98,10 @@ class AppTest < GeneratorTestCase ).each { |path| assert_file "script/#{path}", /#!foo\/bar\/baz/ } end - def test_rails_is_vendorized_if_freeze_is_supplied + def test_rails_is_frozen generator(:freeze => true, :database => "sqlite3").expects(:run).with("rake rails:freeze:edge", false) silence(:stdout){ generator.invoke(:all) } + assert_file 'config/environment.rb', /# RAILS_GEM_VERSION/ end def test_template_raises_an_error_with_invalid_path |