Sha256: e8fa63dde5f338887a31a6de400cdef2362f887d56ee76e5b9068c27f2c8cdaf
Contents?: true
Size: 1.17 KB
Versions: 23
Compression:
Stored size: 1.17 KB
Contents
require "spec_helper" describe "is-length" do before(:all) do ParserSupport.parse_file("functions/is-length") end context "checks if unitless integer can be represented as a length" do it "returns false" do expect(".integer").not_to have_rule("color: #fff") end end context "checks if px can be represented as a length" do it "returns true" do expect(".pixels").to have_rule("color: #fff") end end context "checks if em can be represented as a length" do it "returns true" do expect(".ems").to have_rule("color: #fff") end end context "checks if percent can be represented as a length" do it "returns true" do expect(".percent").to have_rule("color: #fff") end end context "parses calculated values" do it "returns true" do expect(".calc").to have_rule("color: #fff") end end context "checks if strings can be represented as a length" do it "returns false" do expect(".string").not_to have_rule("color: #fff") end end context "checks if null can be represented as a length" do it "returns false" do expect(".null").not_to have_rule("color: #fff") end end end
Version data entries
23 entries across 23 versions & 3 rubygems