Skip to content

Commit 8b931c1

Browse files
mock that webpacker gem is not installed
1 parent 06fbffe commit 8b931c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/react_on_rails/configuration_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ module ReactOnRails
1313

1414
before do
1515
allow(ReactOnRails::PackerUtils).to receive(:using_packer?).and_return(using_packer)
16+
allow(ReactOnRails::Utils).to receive(:gem_available?).and_call_original
17+
allow(ReactOnRails::Utils).to receive(:gem_available?).with("webpacker").and_return(false)
1618
ReactOnRails.instance_variable_set(:@configuration, nil)
1719
end
1820

0 commit comments

Comments
 (0)