Skip to content

Commit

Permalink
Remove twice config.assets.version assignations (#93)
Browse files Browse the repository at this point in the history
* Remove twice config.assets.version assignation

* Fix PropshaftIntegrationTest
  • Loading branch information
kevynlebouille committed May 22, 2022
1 parent ce1b5a3 commit f01be80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/propshaft/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class Railtie < ::Rails::Railtie
config.assets.precompile = []
config.assets.debug = nil
config.assets.compile = nil
config.assets.version = nil
config.assets.css_compressor = nil
config.assets.js_compressor = nil
end
Expand Down
4 changes: 2 additions & 2 deletions test/propshaft_integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class PropshaftIntegrationTest < ActionDispatch::IntegrationTest
test "should be able to resolve real assets" do
get sample_load_real_assets_url
assert_response :success
assert_select 'link[href="/assets/hello_world-ee414c137ef3c7b9125cd90168875cb61938bc52.css"]'
assert_select 'script[src="/assets/hello_world-00956908343eaa8d47963b94a7e47ae2919a79cd.js"]'
assert_select 'link[href="/assets/hello_world-4137140a1298c3924d5f7135617c23e23fb167a8.css"]'
assert_select 'script[src="/assets/hello_world-888761f849ba63a95a56f6ef898a9eb70ca4c46e.js"]'
end

test "should raise an exception when resolving nonexistent assets" do
Expand Down

0 comments on commit f01be80

Please sign in to comment.