mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix failing app generator test when using the --dev option
This commit is contained in:
@@ -164,7 +164,7 @@ class AppGeneratorTest < GeneratorsTestCase
|
||||
def test_dev_option
|
||||
run_generator [destination_root, "--dev"]
|
||||
rails_path = File.expand_path('../../..', Rails.root)
|
||||
dev_gem = %(gem "rails", :path => #{rails_path.inspect})
|
||||
dev_gem = %(directory #{rails_path.inspect}, :glob => "{*/,}*.gemspec")
|
||||
assert_file 'Gemfile', /^#{Regexp.escape(dev_gem)}$/
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user