require "spec_helper" describe "tint" do before(:all) do ParserSupport.parse_file("library/tint") end context "called on white" do it "still returns white" do expect(".tint-white").to have_rule("color: white") end end context "called on black" do it "tints black" do expect(".tint-black").to have_rule("color: gray") end end context "called on red" do it "tints red" do expect(".tint-red").to have_rule("color: #ff4040") end end context "called on gray" do it "tints gray" do expect(".tint-gray").to have_rule("color: #c6c6c6") end end end