Sha256: ed69a0450ec0cb2f5478e48d9f788cc6a4d32948cc01bf68d661adff79ea653c
Contents?: true
Size: 677 Bytes
Versions: 19
Compression:
Stored size: 677 Bytes
Contents
require "spec_helper" describe "size" do before(:all) do ParserSupport.parse_file("addons/size") end context "called with one size" do it "applies same width to both height and width" do rule = "height: 10px; width: 10px;" expect(".size-implicit").to have_ruleset(rule) end end context "called with two sizes" do it "applies to height and width" do rule = "height: 2em; width: 1em;" expect(".size-both").to have_ruleset(rule) end end context "called with auto" do it "applies to auto to height" do rule = "height: auto; width: 100px;" expect(".size-auto").to have_ruleset(rule) end end end
Version data entries
19 entries across 19 versions & 3 rubygems