Skip to content

Commit

Permalink
Prepend env info before command in
Browse files Browse the repository at this point in the history
  • Loading branch information
adis-io committed Oct 24, 2022
1 parent fb12e6f commit 66309cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def self.it_runs_the_default_folder_if_it_exists(type, test_folder)
end
end

let(:printed_commands) { /specs? per process\nbundle exec rspec/ }
let(:printed_commands) { /specs? per process\n{".+?"}\nbundle exec rspec/ }
let(:printed_rerun) { "run the group again:\n\nbundle exec rspec" }

context "running tests sequentially" do
Expand Down Expand Up @@ -253,6 +253,7 @@ def test_unicode
result = run_tests ["spec", "--verbose-process-command"], type: 'rspec', fail: true
expect(result).to_not include printed_rerun
expect(result).to match printed_commands
expect(result).to match(/.+\n{"TEST_ENV_NUMBER"=>"", "PARALLEL_TEST_GROUPS"=>"\d+", "PARALLEL_PID_FILE"=>".+?"}\n.+/)
end

it "fails when tests fail" do
Expand Down

0 comments on commit 66309cb

Please sign in to comment.