Debian Codegraph @

spec/bourbon/utilities/lightness_spec.rb

raw
1 require "spec_helper"
2
3 describe "lightness" do
4 before(:all) do
5 ParserSupport.parse_file("utilities/lightness")
6 end
7
8 context "called on black" do
9 it "outputs a number between 0 and 1 to indicate lightness" do
10 rule = "content: 0;"
11
12 expect(".lightness-black").to have_ruleset(rule)
13 end
14 end
15
16 context "called on white" do
17 it "outputs a number between 0 and 1 to indicate lightness" do
18 rule = "content: 1;"
19
20 expect(".lightness-white").to have_ruleset(rule)
21 end
22 end
23
24 context "called on gray" do
25 it "outputs a number between 0 and 1 to indicate lightness" do
26 rule = "content: 0.20503;"
27
28 expect(".lightness-gray").to have_ruleset(rule)
29 end
30 end
31 end