Sha256: 9c7e1ab30ad309a02af786ca8528f7c5fea9e6c1facb50829269d295c5375557
Contents?: true
Size: 666 Bytes
Versions: 5
Compression:
Stored size: 666 Bytes
Contents
require 'spec_helper' describe Chroma::Color do let(:red) { 'red'.paint } let(:other_red) { '#f00'.paint } let(:blue) { 'blue'.paint } context 'with equality' do it 'equals itself' do expect(red).to eql(red) expect(red).to eq(red) end it 'equals another instance of the same color' do expect(red).to eql(other_red) expect(red).to eq(other_red) end it 'does not equal another instance of a different color' do expect(red).to_not eql(blue) expect(red).to_not eq(blue) end end describe '#paint' do it 'returns itself' do expect(red.paint).to equal(red) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
chroma-0.2.0 | spec/color_spec.rb |
chroma-0.1.0 | spec/color_spec.rb |
chroma-0.0.1 | spec/color_spec.rb |
chroma-0.0.1.alpha.3 | spec/color_spec.rb |
chroma-0.0.1.alpha.2 | spec/color_spec.rb |