Sha256: 2239db738b4e773dfa13857f1513f26cfce254ca7b89dcbfb0815aa12b7fdeb1

Contents?: true

Size: 493 Bytes

Versions: 6

Compression:

Stored size: 493 Bytes

Contents

require "spec_helper"

describe "gamma" do
  before(:all) do
    ParserSupport.parse_file("utilities/gamma")
  end

  context "called on a color channel" do
    it "outputs a gamma value between 0 and 1" do
      rule = "content: 0.12168;"

      expect(".gamma").to have_ruleset(rule)
    end
  end

  context "called on a full color channel" do
    it "outputs a gamma value between 0 and 1" do
      rule = "content: 1;"

      expect(".gamma-full").to have_ruleset(rule)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/utilities/gamma_spec.rb
bourbon-7.2.0 spec/bourbon/utilities/gamma_spec.rb
bourbon-7.1.0 spec/bourbon/utilities/gamma_spec.rb
bourbon-7.0.0 spec/bourbon/utilities/gamma_spec.rb
bourbon-6.0.0 spec/bourbon/utilities/gamma_spec.rb
bourbon-5.1.0 spec/bourbon/utilities/gamma_spec.rb