Sha256: 3d9f1a19cdfa995d0229fa995307505db3ba59ffe4b84c30f89db2ee9fa88f75

Contents?: true

Size: 358 Bytes

Versions: 11

Compression:

Stored size: 358 Bytes

Contents

require_relative "../../test_helper"
describe AgileUtils::Helper do
  context "#shell" do
    it "returns result for valid command" do
      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

11 entries across 11 versions & 1 rubygems

Version Path
agile_utils-0.3.2 test/lib/agile_utils/test_helper.rb
agile_utils-0.3.1 test/lib/agile_utils/test_helper.rb
agile_utils-0.3.0 test/lib/agile_utils/test_helper.rb
agile_utils-0.2.3 test/lib/agile_utils/test_helper.rb
agile_utils-0.2.2 test/lib/agile_utils/test_helper.rb
agile_utils-0.2.1 test/lib/agile_utils/test_helper.rb
agile_utils-0.2.0 test/lib/agile_utils/test_helper.rb
agile_utils-0.1.5 test/lib/agile_utils/test_helper.rb
agile_utils-0.1.4 test/lib/agile_utils/test_helper.rb
agile_utils-0.1.3 test/lib/agile_utils/test_helper.rb
agile_utils-0.1.2 test/lib/agile_utils/test_helper.rb