Debian Codegraph @

spec/bourbon/utilities/contrast_ratio_spec.rb

raw
1 require "spec_helper"
2
3 describe "contrast-ratio" do
4 before(:all) do
5 ParserSupport.parse_file("utilities/contrast-ratio")
6 end
7
8 context "calculates between white and black" do
9 it "outputs the contrast ratio" do
10 rule = "content: 21;"
11
12 expect(".contrast-ratio-black").to have_ruleset(rule)
13 end
14 end
15
16 context "calculates between white and blue" do
17 it "outputs the contrast ratio" do
18 rule = "content: 8.59247;"
19
20 expect(".contrast-ratio-blue").to have_ruleset(rule)
21 end
22 end
23 end