mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
The sprockets railtie was moved to sprockets/rails/railtie
This commit is contained in:
parent
272d3d72e8
commit
e8296a0288
4 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ require "rails"
|
|||
action_controller
|
||||
action_mailer
|
||||
rails/test_unit
|
||||
sprockets
|
||||
sprockets/rails
|
||||
).each do |framework|
|
||||
begin
|
||||
require "#{framework}/railtie"
|
||||
|
|
|
@ -7,7 +7,7 @@ require 'rails/all'
|
|||
<%= comment_if :skip_active_record %>require "active_record/railtie"
|
||||
require "action_controller/railtie"
|
||||
require "action_mailer/railtie"
|
||||
<%= comment_if :skip_sprockets %>require "sprockets/railtie"
|
||||
<%= comment_if :skip_sprockets %>require "sprockets/rails/railtie"
|
||||
<%= comment_if :skip_test_unit %>require "rails/test_unit/railtie"
|
||||
<% end -%>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ require 'rails/all'
|
|||
<%= comment_if :skip_active_record %>require "active_record/railtie"
|
||||
require "action_controller/railtie"
|
||||
require "action_mailer/railtie"
|
||||
<%= comment_if :skip_sprockets %>require "sprockets/railtie"
|
||||
<%= comment_if :skip_sprockets %>require "sprockets/rails/railtie"
|
||||
<%= comment_if :skip_test_unit %>require "rails/test_unit/railtie"
|
||||
<% end -%>
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
|||
def test_generator_if_skip_sprockets_is_given
|
||||
run_generator [destination_root, "--skip-sprockets"]
|
||||
assert_file "config/application.rb" do |content|
|
||||
assert_match(/#\s+require\s+["']sprockets\/railtie["']/, content)
|
||||
assert_match(/#\s+require\s+["']sprockets\/rails\/railtie["']/, content)
|
||||
assert_no_match(/config\.assets\.enabled = true/, content)
|
||||
end
|
||||
assert_file "Gemfile" do |content|
|
||||
|
|
Loading…
Reference in a new issue