Merge pull request #27040 from ttanimichi/add-skip-sprockets-to-passthrough-options

Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`
This commit is contained in:
Rafael França 2016-11-14 14:34:31 -05:00 committed by GitHub
commit 3a82ad746a
3 changed files with 13 additions and 1 deletions

@ -1,3 +1,7 @@
* Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`
*Tsukuru Tanimichi*
* Allow the use of listen's 3.1.x branch
*Esteban Santana Santana*

@ -81,7 +81,7 @@ def test
end
PASSTHROUGH_OPTIONS = [
:skip_active_record, :skip_action_mailer, :skip_javascript, :database,
:skip_active_record, :skip_action_mailer, :skip_javascript, :skip_sprockets, :database,
:javascript, :quiet, :pretend, :force, :skip
]

@ -100,6 +100,14 @@ def test_generating_test_files_in_full_mode_without_unit_test_files
end
end
def test_generating_adds_dummy_app_in_full_mode_without_sprockets
run_generator [destination_root, "-S", "--full"]
assert_file "test/dummy/config/environments/production.rb" do |contents|
assert_no_match(/config\.assets/, contents)
end
end
def test_generating_adds_dummy_app_rake_tasks_without_unit_test_files
run_generator [destination_root, "-T", "--mountable", "--dummy-path", "my_dummy_app"]
assert_file "Rakefile", /APP_RAKEFILE/