Skip to content

Commit 90dcb70

Browse files
committed
Workaround issue with sprockets-4.0.0.beta
The current sprockets-4.0.0.beta code does not like 'rake assets:clobber' when this directory is missing. Depending on the order tests are run, this may or may not exist and cause an error. I will follow up with a bug/PR there.
1 parent 977cc5f commit 90dcb70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_railtie.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ class TestRailtie < TestBoot
5757
def setup
5858
require 'sprockets/railtie'
5959
super
60+
61+
# sprockets-4.0.0.beta8 does not like 'rake assets:clobber' when this directory does not exist
62+
Dir.chdir(app.root) do
63+
dir = "tmp/cache/assets/sprockets"
64+
FileUtils.mkdir_p(dir)
65+
end
6066
end
6167

6268
def test_defaults_to_compile_assets_with_env_and_manifest_available

0 commit comments

Comments
 (0)