Skip to content

Commit

Permalink
Merge pull request #712 from amatsuda/warnings
Browse files Browse the repository at this point in the history
Ruby Warnings
  • Loading branch information
grosser authored Aug 6, 2019
2 parents b534735 + 636ca65 commit 2acca17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/parallel_tests/gherkin/listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Listener
def initialize
@steps, @uris = [], []
@collect = {}
@feature, @ignore_tag_pattern = nil
reset_counters!
end

Expand Down
2 changes: 1 addition & 1 deletion lib/parallel_tests/pids.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module ParallelTests
class Pids
attr_reader :pids, :file_path, :mutex
attr_reader :file_path, :mutex

def initialize(file_path)
@file_path = file_path
Expand Down
2 changes: 1 addition & 1 deletion spec/parallel_tests/gherkin/runner_behaviour.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def call(*args)

it "allows to override runner executable via PARALLEL_TESTS_EXECUTABLE" do
ENV['PARALLEL_TESTS_EXECUTABLE'] = 'script/custom_rspec'
should_run_with /script\/custom_rspec/
should_run_with(/script\/custom_rspec/)
call(['xxx'], 1, 22, {})
end

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 @@ -475,7 +475,7 @@ def run_with_file(content)

it "prints each stream to the correct stream" do
skip "open3"
out, err = run_with_file("puts 123 ; $stderr.puts 345 ; exit 5") do |path|
_out, err = run_with_file("puts 123 ; $stderr.puts 345 ; exit 5") do |path|
result = call("ruby #{path}", 1, 4, {})
expect(result).to include({
:stdout => "123\n",
Expand Down

0 comments on commit 2acca17

Please sign in to comment.