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