aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-01-07 19:19:10 +0100
committerPiotr Sarnacki <drogus@gmail.com>2012-01-07 19:19:10 +0100
commit199dcaeade6c319a43b507dbc111cb15b78fa52b (patch)
treee3fabdb2a52847263f16c380e97027f78d929e2f /railties/test/generators
parent3d2c28e012c4fa53e65860ad262be49defdf5ecc (diff)
downloadrails-199dcaeade6c319a43b507dbc111cb15b78fa52b.tar.gz
rails-199dcaeade6c319a43b507dbc111cb15b78fa52b.tar.bz2
rails-199dcaeade6c319a43b507dbc111cb15b78fa52b.zip
Fix tests, ./ is not needed for relative entries in Gemfile in newest bundler version
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/plugin_new_generator_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb
index 6e70517219..f0164ed667 100644
--- a/railties/test/generators/plugin_new_generator_test.rb
+++ b/railties/test/generators/plugin_new_generator_test.rb
@@ -271,7 +271,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root]
- assert_file gemfile_path, /gem 'bukkits', :path => '.\/tmp\/bukkits'/
+ assert_file gemfile_path, /gem 'bukkits', :path => 'tmp\/bukkits'/
ensure
Object.send(:remove_const, 'APP_PATH')
FileUtils.rm gemfile_path
@@ -286,7 +286,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root, "--skip-gemfile-entry"]
assert_file gemfile_path do |contents|
- assert_no_match(/gem 'bukkits', :path => '.\/tmp\/bukkits'/, contents)
+ assert_no_match(/gem 'bukkits', :path => 'tmp\/bukkits'/, contents)
end
ensure
Object.send(:remove_const, 'APP_PATH')