Skip to content

Commit

Permalink
fix widnows bug
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Jun 12, 2022
1 parent 0ce8272 commit 3fc0d4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/parallel_tests/tasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ def call(command, grep)

describe ".build_run_command" do
it "builds simple command" do
expect(ParallelTests::Tasks.build_run_command("test", {})).to eq [
command = ParallelTests::Tasks.build_run_command("test", {})
command.shift 2 if command.include?("--") # windows prefixes ruby executable
expect(command).to eq [
"#{Dir.pwd}/bin/parallel_test", "test", "--type", "test"
]
end
Expand All @@ -247,6 +249,7 @@ def call(command, grep)
"test",
count: 1, pattern: "foo", options: "bar", pass_through: "baz baz"
)
command.shift 2 if command.include?("--") # windows prefixes ruby executable
expect(command).to eq [
"#{Dir.pwd}/bin/parallel_test", "test", "--type", "test",
"-n", "1", "--pattern", "foo", "--test-options", "bar", "baz", "baz"
Expand Down

0 comments on commit 3fc0d4a

Please sign in to comment.