Sha256: 0f1d5149cd8ef9f11ea6f9040755b4888fd069448ff4ba88259658e7e05d6709
Contents?: true
Size: 765 Bytes
Versions: 4
Compression:
Stored size: 765 Bytes
Contents
# encoding: utf-8 require 'spec_helper' RSpec.describe Pastel::Color, '#==' do it "is true with the same enabled and eachline attributes" do expect(Pastel::Color.new(enabled: false, eachline: "\n")). to eq(Pastel::Color.new(enabled: false, eachline: "\n")) end it "is false with different enabled attribute" do expect(Pastel::Color.new(enabled: true, eachline: "\n")). not_to eq(Pastel::Color.new(enabled: false, eachline: "\n")) end it "is false with different eachline attribute" do expect(Pastel::Color.new(enabled: false, eachline: "\n")). not_to eq(Pastel::Color.new(enabled: false, eachline: "\r\n")) end it "is false with non-color" do expect(Pastel::Color.new(enabled: true)).not_to eq(:other) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pastel-0.5.3 | spec/unit/color/equal_spec.rb |
pastel-0.5.2 | spec/unit/color/equal_spec.rb |
pastel-0.5.1 | spec/unit/color/equal_spec.rb |
pastel-0.5.0 | spec/unit/color/equal_spec.rb |