Sha256: f71802d93e24872f2df78c56ffc9db8beddb9939df90b2386ea13eb177ab4a9f

Contents?: true

Size: 459 Bytes

Versions: 5

Compression:

Stored size: 459 Bytes

Contents

require_relative '../../test_helper'
describe AgileUtils::Helper do
  context '#shell' do
    it 'returns result for valid command' do
      #TODO: very system specific, please mock/stub this out!
      # or use something like FakeFS?
      result = AgileUtils::Helper.shell(%w(ls))
      result.wont_be_nil
    end

    it 'raises error on invalid command' do
      assert_raises(RuntimeError) { AgileUtils::Helper.shell(%w(bad-command)) }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
agile_utils-0.0.8 test/lib/agile_utils/test_helper.rb
agile_utils-0.0.7 test/lib/agile_utils/test_helper.rb
agile_utils-0.0.6 test/lib/agile_utils/test_helper.rb
agile_utils-0.0.5 test/lib/agile_utils/test_helper.rb
agile_utils-0.0.4 test/lib/agile_utils/test_helper.rb