Sha256: acaf48564c2b924f0b3be094731b4d5a7abded6124baaa7d843f59a6e2ae4e3f
Contents?: true
Size: 742 Bytes
Versions: 11
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' require 'td/command/common' require 'td/command/import' module TreasureData::Command describe 'import commands' do describe CommandExecutor do it 'executes command' do CommandExecutor.new(['echo'], nil).execute.exitstatus.should == 0 end it 'executes command' do expect { CommandExecutor.new(['exit', '1'], nil).execute }.to raise_error BulkImportExecutionError, /td-bulk-import\.log/ end it 'terminates process on timeout' do CommandExecutor.new(['sleep', '1'], 2).execute expect { CommandExecutor.new(['sleep', '2'], 1).execute }.to raise_error BulkImportExecutionError, /timed out/ end end end end
Version data entries
11 entries across 11 versions & 1 rubygems