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:
parent
3d2c28e012
commit
199dcaeade
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue