Sha256: 7a60f0f0a6aa164df7c1b1d11454c30f93469708eee71cbf5ca48adeed87e63b
Contents?: true
Size: 753 Bytes
Versions: 14
Compression:
Stored size: 753 Bytes
Contents
require 'helper' describe Twitter::SourceUser do describe '#==' do it 'returns true when objects IDs are the same' do saved_search = Twitter::SourceUser.new(:id => 1, :name => 'foo') other = Twitter::SourceUser.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::SourceUser.new(:id => 1) other = Twitter::SourceUser.new(:id => 2) expect(saved_search == other).to be false end it 'returns false when classes are different' do saved_search = Twitter::SourceUser.new(:id => 1) other = Twitter::Identity.new(:id => 1) expect(saved_search == other).to be false end end end
Version data entries
14 entries across 14 versions & 1 rubygems