提交 59f93bbc 编写于 作者: Y Yoshiyuki Hirano

Add git_source to Gemfile for plugin generator

上级 220049fb
* Add git_source to `Gemfile` for plugin generator
*Yoshiyuki Hirano*
* Deprecate support of use `Rails::Application` subclass to start Rails server.
*Yuji Yaginuma*
......
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
<% if options[:skip_gemspec] -%>
<%= '# ' if options.dev? || options.edge? -%>gem 'rails', '<%= Array(rails_version_specifier).join("', '") %>'
......
......@@ -82,6 +82,11 @@ def test_generating_test_files_in_full_mode
assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/
end
def test_inclusion_of_git_source
run_generator [destination_root]
assert_file "Gemfile", /git_source/
end
def test_inclusion_of_a_debugger
run_generator [destination_root, "--full"]
if defined?(JRUBY_VERSION) || RUBY_ENGINE == "rbx"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册