1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Piotr Sarnacki 2012-01-07 19:19:10 +01:00
parent 3d2c28e012
commit 199dcaeade

View file

@ -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')