提交 cfe0fcae 编写于 作者: J Jeffrey Hardy

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

上级 caad6c63
......@@ -164,7 +164,7 @@ def test_file_is_added_for_backwards_compatibility
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册