Sha256: 41e6787ee04b32f5ffaeb573c03fefd683932ebbdc50f58f743e47ce6db72966
Contents?: true
Size: 445 Bytes
Versions: 15
Compression:
Stored size: 445 Bytes
Contents
require 'spec_helper' module Berkshelf describe TXResult do describe "#failed?" do subject { TXResult.new(:error, "message") } it "returns true when the status is :error" do subject.failed?.should be_true end end describe "#success" do subject { TXResult.new(:ok, "message") } it "returns true when the status is :ok" do subject.success?.should be_true end end end end
Version data entries
15 entries across 15 versions & 1 rubygems