spec/bourbon/utilities/gamma_spec.rb
raw| 1 | require "spec_helper" |
| 2 | |
| 3 | describe "gamma" do |
| 4 | before(:all) do |
| 5 | ParserSupport.parse_file("utilities/gamma") |
| 6 | end |
| 7 | |
| 8 | context "called on a color channel" do |
| 9 | it "outputs a gamma value between 0 and 1" do |
| 10 | rule = "content: 0.12168;" |
| 11 | |
| 12 | expect(".gamma").to have_ruleset(rule) |
| 13 | end |
| 14 | end |
| 15 | |
| 16 | context "called on a full color channel" do |
| 17 | it "outputs a gamma value between 0 and 1" do |
| 18 | rule = "content: 1;" |
| 19 | |
| 20 | expect(".gamma-full").to have_ruleset(rule) |
| 21 | end |
| 22 | end |
| 23 | end |