Skip to content

Commit

Permalink
fix windows having fixed oder + anison warning
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed May 20, 2024
1 parent e61139f commit 7538fcc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: test

on:
push:
pull_request:

jobs:
Expand Down
13 changes: 12 additions & 1 deletion spec/parallel_tests/cucumber/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,18 @@ def call(*args)
"Failing Scenarios:", "cucumber features/failure:3", "cucumber features/failure:4",
"Failing Scenarios:", "cucumber features/failure:5", "cucumber features/failure:6"
]
expect(call(results)).to eq("Failing Scenarios:\ncucumber features/failure:1\ncucumber features/failure:2\ncucumber features/failure:3\ncucumber features/failure:4\ncucumber features/failure:5\ncucumber features/failure:6\n\n")
output = call(results)
output.gsub!(/.*WARNING.*\n/, "")
expect(output).to eq(<<~TXT)
Failing Scenarios:
cucumber features/failure:1
cucumber features/failure:2
cucumber features/failure:3
cucumber features/failure:4
cucumber features/failure:5
cucumber features/failure:6
TXT
end

it "collates flaky scenarios separately" do
Expand Down
2 changes: 1 addition & 1 deletion spec/parallel_tests/test/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def call(*args)
end

it "uses given when passed found" do
result = Gem.win_platform? ? [["a", "b"], ["c"]] : [["a", "c"], ["b"]]
result = (Gem.win_platform? && RUBY_VERSION < "3.3.0" ? [["a", "b"], ["c"]] : [["a", "c"], ["b"]])
expect(call(["a", "b", "c"], 2, group_by: :found)).to eq(result)
end

Expand Down

0 comments on commit 7538fcc

Please sign in to comment.