Permalink
Browse files

Fix tests, ./ is not needed for relative entries in Gemfile in newest…

… bundler version
  • Loading branch information...
1 parent 3d2c28e commit 199dcaeade6c319a43b507dbc111cb15b78fa52b @drogus drogus committed Jan 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/generators/plugin_new_generator_test.rb
@@ -271,7 +271,7 @@ def test_creating_plugin_in_app_directory_adds_gemfile_entry
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 @@ def test_skipping_gemfile_entry
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')

0 comments on commit 199dcae

Please sign in to comment.