Sha256: 3d10cb4a76190b7d280a91fb4e1ba3f8dfad0548b00102a966df6697c1184c6d

Contents?: true

Size: 719 Bytes

Versions: 2

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.21795;"

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bourbon-5.0.1 spec/bourbon/utilities/lightness_spec.rb
bourbon-5.0.0 spec/bourbon/utilities/lightness_spec.rb