diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-03 10:00:38 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-03 10:00:38 -0700 |
commit | 1337d51f44496d3279f9daf53961777f50b1910d (patch) | |
tree | ac0dc5f9d7a07acd8b1c7019c00befb293239d45 /railties/test | |
parent | 823ff55ffb5750e1ba99c9ec09bf455581aa29a3 (diff) | |
parent | 1c5722cdf675fce6c7f69bfb5ca773ce3db8fe19 (diff) | |
download | rails-1337d51f44496d3279f9daf53961777f50b1910d.tar.gz rails-1337d51f44496d3279f9daf53961777f50b1910d.tar.bz2 rails-1337d51f44496d3279f9daf53961777f50b1910d.zip |
Merge pull request #6948 from frodsan/plugin_skip_ignore
remove test/dummy from gitignore when "plugin new -T"
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 0a235b56d5..6c3e0178f2 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -264,11 +264,14 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase assert_file "spec/dummy" assert_file "spec/dummy/config/application.rb" assert_no_file "test" + assert_file '.gitignore' do |contents| + assert_match(/spec\/dummy/, contents) + end end def test_ensure_that_gitignore_can_be_generated_from_a_template_for_dummy_path FileUtils.cd(Rails.root) - run_generator([destination_root, "--dummy_path", "spec/dummy" "--skip-test-unit"]) + run_generator([destination_root, "--dummy_path", "spec/dummy", "--skip-test-unit"]) assert_file ".gitignore" do |contents| assert_match(/spec\/dummy/, contents) end @@ -280,6 +283,9 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase assert_file "bukkits.gemspec" do |contents| assert_no_match(/s.test_files = Dir\["test\/\*\*\/\*"\]/, contents) end + assert_file '.gitignore' do |contents| + assert_no_match(/test\dummy/, contents) + end end def test_skipping_gemspec |