diff options
author | siong1987 <siong1987@gmail.com> | 2011-05-18 09:54:24 +0800 |
---|---|---|
committer | siong1987 <siong1987@gmail.com> | 2011-05-18 09:56:45 +0800 |
commit | 5df9d0081bd9e624a143992c4f495bf80c96d7e5 (patch) | |
tree | 1f7623c3b0cca2e260ac87d3ca1d4ab9be6bdf15 /railties/test | |
parent | 9773f6e1aab6d4e6e714f1582d18b0fbbd8112f7 (diff) | |
download | rails-5df9d0081bd9e624a143992c4f495bf80c96d7e5.tar.gz rails-5df9d0081bd9e624a143992c4f495bf80c96d7e5.tar.bz2 rails-5df9d0081bd9e624a143992c4f495bf80c96d7e5.zip |
add test case for turn gem for testunit.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 9e1d47cd2f..8c89c06e02 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -202,6 +202,14 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_inclusion_of_turn_gem_in_gemfile + run_generator + assert_file "Gemfile" do |contents| + assert_match /gem 'turn'/, contents unless RUBY_VERSION < '1.9.2' + assert_no_match /gem 'turn'/, contents if RUBY_VERSION < '1.9.2' + end + end + def test_template_from_dir_pwd FileUtils.cd(Rails.root) assert_match /It works from file!/, run_generator([destination_root, "-m", "lib/template.rb"]) |