diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-13 00:06:38 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-13 01:06:27 +0200 |
commit | 55d87d2b5c2d9176752ef62eaf0e8ef2e37ca52c (patch) | |
tree | a41082aeb0f7ddab05c9d45617a33d2a2871f724 /railties | |
parent | 6e466f17c3d0d06cc364c27fd844a66fb4a89aa2 (diff) | |
download | rails-55d87d2b5c2d9176752ef62eaf0e8ef2e37ca52c.tar.gz rails-55d87d2b5c2d9176752ef62eaf0e8ef2e37ca52c.tar.bz2 rails-55d87d2b5c2d9176752ef62eaf0e8ef2e37ca52c.zip |
removes duplicate tests
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/shared_generator_tests.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb index 03fd64ca38..3fcf75883c 100644 --- a/railties/test/generators/shared_generator_tests.rb +++ b/railties/test/generators/shared_generator_tests.rb @@ -87,19 +87,6 @@ module SharedGeneratorTests assert_match(/It works!/, silence(:stdout){ generator.invoke_all }) end - def test_dev_option - generator([destination_root], :dev => true).expects(:run).with("#{@bundle_command} install") - silence(:stdout){ generator.invoke_all } - rails_path = File.expand_path('../../..', Rails.root) - assert_file 'Gemfile', /^gem\s+["']rails["'],\s+:path\s+=>\s+["']#{Regexp.escape(rails_path)}["']$/ - end - - def test_edge_option - generator([destination_root], :edge => true).expects(:run).with("#{@bundle_command} install") - silence(:stdout){ generator.invoke_all } - assert_file 'Gemfile', %r{^gem\s+["']rails["'],\s+:git\s+=>\s+["']#{Regexp.escape("git://github.com/rails/rails.git")}["']$} - end - def test_template_raises_an_error_with_invalid_path content = capture(:stderr){ run_generator([destination_root, "-m", "non/existant/path"]) } assert_match(/The template \[.*\] could not be loaded/, content) |