Debian Codegraph @

spec/bourbon/library/tint_spec.rb

raw
1 require "spec_helper"
2
3 describe "tint" do
4 before(:all) do
5 ParserSupport.parse_file("library/tint")
6 end
7
8 context "called on white" do
9 it "still returns white" do
10 expect(".tint-white").to have_rule("color: white")
11 end
12 end
13
14 context "called on black" do
15 it "tints black" do
16 expect(".tint-black").to have_rule("color: gray")
17 end
18 end
19
20 context "called on red" do
21 it "tints red" do
22 expect(".tint-red").to have_rule("color: #ff4040")
23 end
24 end
25
26 context "called on gray" do
27 it "tints gray" do
28 expect(".tint-gray").to have_rule("color: #c6c6c6")
29 end
30 end
31 end