Skip to content

Commit

Permalink
mock that webpacker gem is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Dec 18, 2024
1 parent 06fbffe commit 8b931c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/react_on_rails/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module ReactOnRails

before do
allow(ReactOnRails::PackerUtils).to receive(:using_packer?).and_return(using_packer)
allow(ReactOnRails::Utils).to receive(:gem_available?).and_call_original
allow(ReactOnRails::Utils).to receive(:gem_available?).with("webpacker").and_return(false)
ReactOnRails.instance_variable_set(:@configuration, nil)
end

Expand Down

0 comments on commit 8b931c1

Please sign in to comment.