Sha256: 0d559c85a116c3a7e6fdbdff395b72a625f6b7d3b2433b94e8ea40e02a4fcec8
Contents?: true
Size: 830 Bytes
Versions: 1
Compression:
Stored size: 830 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 pattern.should eq(honeydew) end end context "with color range" do let(:pattern) { dsl.pattern honeydew..salmon } it "returns a gradient" do pattern.should eq(dsl.gradient honeydew..salmon) end end context "with single string" do let(:pattern) { dsl.pattern honeydew.hex } it "returns the color" do pattern.should eq(honeydew) end end context "with string range" do let(:pattern) { dsl.pattern honeydew.hex..salmon.hex } it "returns a gradient" do pattern.should eq(dsl.gradient honeydew..salmon) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre1 | spec/shoes/shared_examples/dsl/pattern.rb |