Sha256: 2c5a4992c50fc9205ddbb32c1d3097cb600e87c78ed4cccdb3520620b090d41f
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
shared_examples_for "pattern DSL method" do let(:honeydew) { Shoes::COLORS[:honeydew] } let(:salmon) { Shoes::COLORS[:salmon] } context "with single color" do let(:pattern) { dsl.pattern honeydew } it "returns the color" do expect(pattern).to eq(honeydew) end end context "with color range" do let(:pattern) { dsl.pattern honeydew..salmon } it "returns a gradient" do expect(pattern).to eq(dsl.gradient(honeydew..salmon)) end end context "with single string" do let(:pattern) { dsl.pattern honeydew.hex } it "returns the color" do expect(pattern).to eq(honeydew) end end context "with string range" do let(:pattern) { dsl.pattern honeydew.hex..salmon.hex } it "returns a gradient" do expect(pattern).to eq(dsl.gradient(honeydew..salmon)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.pre7 | spec/shoes/shared_examples/dsl/pattern.rb |