Sha256: 4172a5f482f7fc6faf9c5ff01f2dce8af7031b89475f6d0de4a0364183bde892
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
describe Chroma::Color, '#custom_palette' do let(:subject) do 'red'.paint.custom_palette do spin 60 spin 180 spin(60).brighten(20) greyscale end end it 'generates the correct colors' do expect(subject). to generate_palette %w(#ff0000 #ffff00 #00ffff #ffff33 #808080) end it 'keeps the same format' do expect(subject).to all have_format :name end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chroma-0.2.0 | spec/color/custom_palette_spec.rb |
chroma-0.1.0 | spec/color/custom_palette_spec.rb |