Skip to content

Commit

Permalink
Mock ENV[]
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Jan 21, 2024
1 parent dbbc7ff commit c90ce5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/dummy/spec/rake/assets_precompile_rake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

describe "rake assets:precompile task" do
it "doesn't show deprecation message for using webpacker:clean task" do
ENV["SHAKAPACKER_PRECOMPILE"] = "false"
allow(ENV).to receive(:[]).with(anything).and_call_original
allow(ENV).to receive(:[]).with("SHAKAPACKER_PRECOMPILE").and_return("false")

Rails.application.load_tasks

Expand Down

0 comments on commit c90ce5f

Please sign in to comment.