Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from highb/fix_logger
Browse files Browse the repository at this point in the history
(PE-18568) Port executor spec fix from installer
  • Loading branch information
barriserloth authored Dec 7, 2018
2 parents 1c0a60b + f35c55d commit 3ad633a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/chloride/executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
require 'chloride/executor'

describe Chloride::Executor do
subject { described_class.new(Logger.new('/dev/null')) }
subject { described_class.new(Logger.new(File.open('rspec.log', 'w+'))) }

describe '#execute' do
let(:executed_events) do
collected_events = []
executor = described_class.new(Logger.new('/dev/null')) { |e| collected_events << e }
executor = described_class.new(Logger.new(File.open('rspec.log', 'w+'))) { |e| collected_events << e }
executor.execute(steps)
collected_events
end
Expand Down

0 comments on commit 3ad633a

Please sign in to comment.