Sha256: 7de70a8a2d303d59a2c2ae93d44e535e9be48b5840fb8d65331c589ce46a8863
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 Bytes
Contents
require 'helper' describe Twitter::BasicUser do describe "#==" do it "returns true when objects IDs are the same" do saved_search = Twitter::BasicUser.new(:id => 1, :name => "foo") other = Twitter::BasicUser.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::BasicUser.new(:id => 1) other = Twitter::BasicUser.new(:id => 2) expect(saved_search == other).to be false end it "returns false when classes are different" do saved_search = Twitter::BasicUser.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
Version | Path |
---|---|
twitter-5.1.1 | spec/twitter/basic_user_spec.rb |
twitter-5.1.0 | spec/twitter/basic_user_spec.rb |
twitter-5.0.1 | spec/twitter/basic_user_spec.rb |
twitter-5.0.0 | spec/twitter/basic_user_spec.rb |