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 26, 2015
1 parent c249c7a commit e57d900
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/td/command/connector_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ module TreasureData::Command

describe 'guess plugins' do
let(:guess_plugins) { %w(json query_string) }

let(:in_file) { Tempfile.new('in.yml').tap{|f| f.close } }
let(:out_file) { Tempfile.new('out.yml').tap{|f| f.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 e57d900

Please sign in to comment.