Skip to content

Commit 0b84950

Browse files
ensure that webpacker is not used when shakapacker in use in tests
1 parent 205af95 commit 0b84950

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/react_on_rails/utils_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module ReactOnRails
3232

3333
# We don't need to mock anything here because the shakapacker gem is already installed and will be used by default
3434
it "uses shakapacker" do
35+
expect(ReactOnRails::PackerUtils.using_webpacker_const?).to be(false)
3536
expect(ReactOnRails::PackerUtils.using_shakapacker_const?).to be(true)
3637
expect(ReactOnRails::PackerUtils.packer_type).to eq("shakapacker")
3738
expect(ReactOnRails::PackerUtils.packer).to eq(::Shakapacker)

0 commit comments

Comments
 (0)