Skip to content

Commit 40dd365

Browse files
justin808claude
andcommitted
Fix inline Packer assignment to use Shakapacker directly
- Changes Packer = ReactOnRails::PackerUtils.packer to Packer = Shakapacker - Simplifies test setup by directly using Shakapacker constant - Removes unnecessary indirection through PackerUtils.packer method - Aligns with modern codebase standards 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 24349c2 commit 40dd365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/react_on_rails/test_helper/webpack_assets_status_checker_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
let(:fixture_dirname) { "assets_with_manifest_exist_server_bundle_separate" }
6262

6363
before do
64-
Packer = ReactOnRails::PackerUtils.packer # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
64+
Packer = Shakapacker # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
6565
allow(ReactOnRails::PackerUtils).to receive_messages(
6666
manifest_exists?: true,
6767
packer_public_output_path: generated_assets_full_path

0 commit comments

Comments
 (0)