Sha256: 32ecb8de86909fd0768694562b4fdf5facc0f3ea5aa48e9df59730f04087f137
Contents?: true
Size: 753 Bytes
Versions: 4
Compression:
Stored size: 753 Bytes
Contents
require 'helper' describe Twitter::TargetUser do describe "#==" do it "returns true when objects IDs are the same" do saved_search = Twitter::TargetUser.new(:id => 1, :name => "foo") other = Twitter::TargetUser.new(:id => 1, :name => "bar") expect(saved_search == other).to be true end it "returns false when objects IDs are different" do saved_search = Twitter::TargetUser.new(:id => 1) other = Twitter::TargetUser.new(:id => 2) expect(saved_search == other).to be false end it "returns false when classes are different" do saved_search = Twitter::TargetUser.new(:id => 1) other = Twitter::Identity.new(:id => 1) expect(saved_search == other).to be false end end end
Version data entries
4 entries across 4 versions & 1 rubygems