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

Version Path
berkshelf-0.4.0.rc4 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.4.0.rc3 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.4.0.rc2 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.4.0.rc1 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.3.7 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.3.3 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.3.2 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.3.1 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.3.0 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.2.0 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.1.5 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.1.4 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.1.3 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.1.2 spec/unit/berkshelf/tx_result_spec.rb
berkshelf-0.1.1 spec/unit/berkshelf/tx_result_spec.rb