Sha256: c022f71c2c80e5e06680a60b9c6df67cae0177c5b86469857abcf776ae2feb7b
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
describe "Teacup::Stylesheet" do describe "Limelight-style syntax" do before do @limelight = Teacup::Stylesheet.new :most_generic do label { backgroundColor :blue title 'In the lime light' } button { title 'Click Here!' layer { color :blue } } end end it "should have styles" do @limelight.query(:label)[:backgroundColor].should == :blue @limelight.query(:label)[:title].should == 'In the lime light' @limelight.query(:button)[:title].should == 'Click Here!' @limelight.query(:button)[:layer][:color].should == :blue end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teacup-3.0.1 | spec/ios/limelight_spec.rb |
teacup-3.0.0 | spec/ios/limelight_spec.rb |
teacup-2.3.0 | spec/limelight_spec.rb |