Skip to content

Commit c4d2160

Browse files
justin808claude
andcommitted
Fix RuboCop violations in server_manager_spec.rb
- Use instance_double instead of double for Process::Status - Break long line for readability 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1eb1403 commit c4d2160

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/react_on_rails/dev/server_manager_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def mock_system_calls
5555

5656
it "starts production-like mode" do
5757
command = "NODE_ENV=production bundle exec rails assets:precompile"
58-
expect(Open3).to receive(:capture3).with(command).and_return(["output", "", double(success?: true)])
58+
status_double = instance_double(Process::Status, success?: true)
59+
expect(Open3).to receive(:capture3).with(command).and_return(["output", "", status_double])
5960
expect(ReactOnRails::Dev::ProcessManager).to receive(:ensure_procfile).with("Procfile.dev-prod-assets")
6061
expect(ReactOnRails::Dev::ProcessManager).to receive(:run_with_process_manager).with("Procfile.dev-prod-assets")
6162

0 commit comments

Comments
 (0)