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

Fix failing app generator test when using the --dev option

This commit is contained in:
Jeffrey Hardy 2010-01-06 14:22:51 -05:00
parent caad6c634c
commit cfe0fcae06

View file

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