Sha256: f954d8b705027ff69e3a80c7aab242cd9d403d4fade44294fddba6e0d39719de
Contents?: true
Size: 894 Bytes
Versions: 4
Compression:
Stored size: 894 Bytes
Contents
require 'helper' describe Twitter::Size do describe "#==" do it "returns true for empty objects" do size = Twitter::Size.new other = Twitter::Size.new expect(size == other).to be true end it "returns true when objects height and width are the same" do size = Twitter::Size.new(:h => 1, :w => 1, :resize => true) other = Twitter::Size.new(:h => 1, :w => 1, :resize => false) expect(size == other).to be true end it "returns false when objects height or width are different" do size = Twitter::Size.new(:h => 1, :w => 1) other = Twitter::Size.new(:h => 1, :w => 2) expect(size == other).to be false end it "returns false when classes are different" do size = Twitter::Size.new(:h => 1, :w => 1) other = Twitter::Base.new(:h => 1, :w => 1) expect(size == 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/size_spec.rb |
twitter-5.1.0 | spec/twitter/size_spec.rb |
twitter-5.0.1 | spec/twitter/size_spec.rb |
twitter-5.0.0 | spec/twitter/size_spec.rb |