Sha256: b4f484f11fdbe3ca2438b0a6c4281869abf5756047aa23b6d5e1066fd3771264

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

module Bickle
  describe Build do
    it "returns plain build values" do
      build = {
        "id" => 42,
      }

      build = Build.new(build)
      build.id.should == 42
    end

    it "reports correct status" do
      build_pass = Build.new("result" => 0)
      build_pass.pass?.should be_true

      build_fail = Build.new("result" => 1)
      build_fail.fail?.should be_true

      build_pending = Build.new("result" => nil)
      build_pending.pending?.should be_true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bickle-0.0.1 spec/build_spec.rb