diff --git a/spec/dummy/spec/rake/assets_precompile_rake_spec.rb b/spec/dummy/spec/rake/assets_precompile_rake_spec.rb index 9c03ce3aa5..8957e25e17 100644 --- a/spec/dummy/spec/rake/assets_precompile_rake_spec.rb +++ b/spec/dummy/spec/rake/assets_precompile_rake_spec.rb @@ -8,6 +8,7 @@ it "doesn't show deprecation message for using webpacker:clean task" do allow(ENV).to receive(:[]).with(anything).and_call_original allow(ENV).to receive(:[]).with("SHAKAPACKER_PRECOMPILE").and_return("false") + allow(ENV).to receive(:[]).with("WEBPACKER_PRECOMPILE").and_return("false") Rails.application.load_tasks diff --git a/spec/dummy/spec/rake/assets_rake_spec.rb b/spec/dummy/spec/rake/assets_rake_spec.rb index 000af74c80..6d2f798fa6 100644 --- a/spec/dummy/spec/rake/assets_rake_spec.rb +++ b/spec/dummy/spec/rake/assets_rake_spec.rb @@ -35,7 +35,7 @@ def self.call Rake::Task["react_on_rails:assets:webpack"].execute - expect(BuildProductionCommand).to have_received(:call) + expect(BuildProductionCommand).to have_received(:call).twice expect(File).to exist(filepath) end