diff options
author | Teng Siong Ong <siong1987@gmail.com> | 2011-05-18 10:21:45 +0800 |
---|---|---|
committer | Teng Siong Ong <siong1987@gmail.com> | 2011-05-18 10:21:45 +0800 |
commit | da29e0bfc2fa83efaf12c9ad31f4b5005178c8a5 (patch) | |
tree | bc8f4b8a4bd57bc897f7714f7b564b8a2e6ba925 /railties/test/generators | |
parent | ea306da4eb8943dca13197ad9880df18e45a13a4 (diff) | |
download | rails-da29e0bfc2fa83efaf12c9ad31f4b5005178c8a5.tar.gz rails-da29e0bfc2fa83efaf12c9ad31f4b5005178c8a5.tar.bz2 rails-da29e0bfc2fa83efaf12c9ad31f4b5005178c8a5.zip |
don't include 'turn' gem in Gemfile if test unit is skipped.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index c1912c23b8..80d9732343 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -210,6 +210,13 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_turn_gem_is_not_included_in_gemfile_if_skipping_test_unit + run_generator [destination_root, "--skip-test-unit"] + assert_file "Gemfile" do |contents| + assert_no_match /gem 'tuarn'/, contents unless RUBY_VERSION < '1.9.2' + end + end + def test_inclusion_of_ruby_debug run_generator assert_file "Gemfile" do |contents| |