Sha256: ccedce15cc2e9ebca308b401b0a11de9b04e278ffde34fcbfcbc52adecb6f482

Contents?: true

Size: 719 Bytes

Versions: 6

Compression:

Stored size: 719 Bytes

Contents

require "spec_helper"

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

  context "called on black" do
    it "outputs a number between 0 and 1 to indicate lightness" do
      rule = "content: 0;"

      expect(".lightness-black").to have_ruleset(rule)
    end
  end

  context "called on white" do
    it "outputs a number between 0 and 1 to indicate lightness" do
      rule = "content: 1;"

      expect(".lightness-white").to have_ruleset(rule)
    end
  end

  context "called on gray" do
    it "outputs a number between 0 and 1 to indicate lightness" do
      rule = "content: 0.20503;"

      expect(".lightness-gray").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/lightness_spec.rb
bourbon-7.2.0 spec/bourbon/utilities/lightness_spec.rb
bourbon-7.1.0 spec/bourbon/utilities/lightness_spec.rb
bourbon-7.0.0 spec/bourbon/utilities/lightness_spec.rb
bourbon-6.0.0 spec/bourbon/utilities/lightness_spec.rb
bourbon-5.1.0 spec/bourbon/utilities/lightness_spec.rb