Sha256: 20a98e0e88f4cfb6b8134475a95adfc1e5d447e34b88c775e3cb2255480abaa1

Contents?: true

Size: 755 Bytes

Versions: 50

Compression:

Stored size: 755 Bytes

Contents

require 'spec_helper'

describe ACTV::AssetStatus do

  describe "#==" do
    it "return true when objects IDs are the same" do
      asset = ACTV::AssetStatus.new(assetStatusId: 1, assetStatusName: "Status 1")
      other = ACTV::AssetStatus.new(assetStatusId: 1, assetStatusName: "Status 2")
      (asset == other).should be_true
    end

    it "return false when objects IDs are different" do
      asset = ACTV::AssetStatus.new(assetStatusId: 1)
      other = ACTV::AssetStatus.new(assetStatusId: 2)
      (asset == other).should be_false
    end

    it "return false when classes are different" do
      asset = ACTV::AssetStatus.new(assetStatusId: 1)
      other = ACTV::Identity.new(id: 1)
      (asset == other).should be_false
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
actv-2.10.9 spec/actv/asset_status_spec.rb
actv-2.10.8 spec/actv/asset_status_spec.rb
actv-2.10.7 spec/actv/asset_status_spec.rb
actv-2.10.6 spec/actv/asset_status_spec.rb
actv-2.10.5 spec/actv/asset_status_spec.rb
actv-2.10.4 spec/actv/asset_status_spec.rb
actv-2.10.3 spec/actv/asset_status_spec.rb
actv-2.10.2 spec/actv/asset_status_spec.rb
actv-2.10.1 spec/actv/asset_status_spec.rb
actv-2.10.0 spec/actv/asset_status_spec.rb
actv-2.9.2 spec/actv/asset_status_spec.rb
actv-2.9.1 spec/actv/asset_status_spec.rb
actv-2.9.0 spec/actv/asset_status_spec.rb
actv-2.8.2 spec/actv/asset_status_spec.rb
actv-2.8.1 spec/actv/asset_status_spec.rb
actv-2.7.0 spec/actv/asset_status_spec.rb
actv-2.6.0 spec/actv/asset_status_spec.rb
actv-2.5.2 spec/actv/asset_status_spec.rb
actv-2.5.1 spec/actv/asset_status_spec.rb
actv-2.5.0 spec/actv/asset_status_spec.rb