Skip to content

Commit b4acd73

Browse files
Fix: Disable RuboCop VerifiedDoubles check for Pro config mock
Added inline RuboCop disable comment for the Pro configuration double since we're mocking a module from the Pro gem that doesn't exist in the open-source test environment. Using a regular double is appropriate here. Changes: - Reverted complex instance_double setup - Added `# rubocop:disable RSpec/VerifiedDoubles` inline comment - RuboCop now passes with 0 offenses 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent bb20cd7 commit b4acd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/react_on_rails/utils_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def mock_dev_server_running
248248
# Mock Pro gem being available
249249
allow(described_class).to receive(:react_on_rails_pro?).and_return(true)
250250
stub_const("ReactOnRailsPro", Module.new)
251-
pro_config = double("ProConfiguration")
251+
pro_config = double("ProConfiguration") # rubocop:disable RSpec/VerifiedDoubles
252252
allow(ReactOnRailsPro).to receive(:configuration).and_return(pro_config)
253253
allow(pro_config).to receive_messages(rsc_bundle_js_file: rsc_bundle_name,
254254
react_server_client_manifest_file: nil)

0 commit comments

Comments
 (0)