We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b931c1 commit 205af95Copy full SHA for 205af95
spec/react_on_rails/utils_spec.rb
@@ -22,6 +22,12 @@ module ReactOnRails
22
end
23
24
shared_context "with shakapacker enabled" do
25
+ before do
26
+ # Mock that shakapacker is not installed, so webpacker will be used instead
27
+ allow(ReactOnRails::Utils).to receive(:gem_available?).with("shakapacker").and_return(true)
28
+ allow(ReactOnRails::Utils).to receive(:gem_available?).with("webpacker").and_return(false)
29
+ end
30
+
31
include_context "with packer enabled"
32
33
# We don't need to mock anything here because the shakapacker gem is already installed and will be used by default
0 commit comments