Skip to content

Commit

Permalink
Fix warning about undefined @pipe in spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 1, 2020
1 parent 2c048ff commit 52f63c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/async/io/protocol/line_spec.rb
Expand Up @@ -30,7 +30,7 @@
let(:remote) {pipe.first}
subject {described_class.new(Async::IO::Stream.new(pipe.last, deferred: true), "\n")}

after(:each) {@pipe&.each(&:close)}
after(:each) {defined?(@pipe) && @pipe&.each(&:close)}

context "default line ending" do
subject {described_class.new(nil)}
Expand Down

0 comments on commit 52f63c5

Please sign in to comment.