Sha256: 835058d2a8e2cfd5fbf19003a3d4965e19f92024f21d7fac9539e315bfb1afe4
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require_relative '../../spec_helper.rb' module Larrow::Runner::Model describe Node do subject{ Node.new nil, OpenStruct.new(address: 'localhost'), `whoami`.chomp } before do Larrow::Runner::RunOption[:debug] = true end it 'can execute' do outputs = "" script = OpenStruct.new(actual_command: 'pwd') subject.execute('pwd',verbose:true) do |data| outputs << data end expect(outputs).to include(ENV['HOME']) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
larrow-runner-0.0.3 | spec/unit_test/model/node_spec.rb |