Skip to content

Commit

Permalink
test one small change
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Jun 26, 2024
1 parent 861d544 commit 11810a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/dummy/spec/rake/assets_precompile_rake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/spec/rake/assets_rake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 11810a8

Please sign in to comment.