Sha256: a54ae3f7a645784ce99d4d563ce94ccae1882f0c2ed546ce86d0dd389a4d0b92
Contents?: true
Size: 747 Bytes
Versions: 17
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
17 entries across 17 versions & 1 rubygems