From c2abbce96f49fb2ad1779f0bc32368efe4219a71 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 9 Oct 2019 21:10:38 -0700 Subject: [PATCH] Remove a javascript from test --- railties/test/application/assets_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 39da891661..b142b94489 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -238,14 +238,13 @@ class User < ActiveRecord::Base; raise 'should not be reached'; end app_file "app/assets/images/rails.png", "notactuallyapng" remove_file "app/assets/stylesheets/application.css" app_file "app/assets/stylesheets/application.css.erb", "<%= asset_path('rails.png') %>" - app_file "app/assets/javascripts/application.js", "alert();" precompile! manifest = Dir["#{app_path}/public/assets/.sprockets-manifest-*.json"].first assets = ActiveSupport::JSON.decode(File.read(manifest)) - assert_match(/application-([0-z]+)\.js/, assets["assets"]["application.js"]) assert_match(/application-([0-z]+)\.css/, assets["assets"]["application.css"]) + assert_match(/rails-([0-z]+)\.png/, assets["assets"]["rails.png"]) end test "the manifest file should be saved by default in the same assets folder" do -- GitLab