dataloaderb 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
data/lib/dataloaderb/version.rb
CHANGED
@@ -70,9 +70,9 @@ describe Dataloaderb::ProcessRunner do
|
|
70
70
|
|
71
71
|
describe "with a passed block" do
|
72
72
|
it "should execute the block in the scope of the instance" do
|
73
|
-
Dataloaderb::ProcessRunner.new('spec/fixtures/bin') do
|
74
|
-
|
75
|
-
result = execute_process 'spec/fixutres/processes/sample_proc.yml'
|
73
|
+
Dataloaderb::ProcessRunner.new('spec/fixtures/bin') do |runner|
|
74
|
+
runner.stub!(:get_process_execute_command).and_return("./spec/fixtures/bin/test.sh")
|
75
|
+
result = runner.execute_process 'spec/fixutres/processes/sample_proc.yml'
|
76
76
|
result.strip.should == "result of process"
|
77
77
|
end
|
78
78
|
end
|