Skip to content

Commit

Permalink
close Tempfile for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
takkanm committed Aug 25, 2015
1 parent eec68e4 commit e2753f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/td/command/connector_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module TreasureData::Command

describe 'guess plugins' do
let(:guess_plugins) { %w(json query_string) }
let(:in_file) { Tempfile.new('in.yml') }
let(:out_file) { Tempfile.new('out.yml') }
let(:in_file) { Tempfile.new('in.yml').tap(&:close) }
let(:out_file) { Tempfile.new('out.yml').tap(&:close) }
let(:option) {
List::CommandParser.new("connector:guess", ["config"], [], nil, [in_file.path, '-o', out_file.path, '--guess', guess_plugins.join(',')], true)
}
Expand Down

0 comments on commit e2753f9

Please sign in to comment.