Sha256: 1fcfd8bc229b339a5926273dfdf025bfce23464c4851be0eb91912b1b3ef11c1

Contents?: true

Size: 823 Bytes

Versions: 23

Compression:

Stored size: 823 Bytes

Contents

require "spec_helper"

describe "is-light" do
  before(:all) do
    ParserSupport.parse_file("functions/is-light")
  end

  context "takes a light color" do
    it "and returns true" do
      expect(".pink").to have_rule("color: #000")
    end
  end

  context "takes a medium-light color" do
    it "and returns true" do
      expect(".sky").to have_rule("color: #000")
    end
  end

  context "takes a medium-dark color" do
    it "and returns false" do
      expect(".medium-gray").to have_rule("color: #fff")
    end
  end

  context "takes a dark color" do
    it "and returns false" do
      expect(".charcoal").to have_rule("color: #fff")
    end
  end

  context "takes a translucent color" do
    it "and processes as an opaque color" do
      expect(".translucent").to have_rule("color: #000")
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
bourbon-4.3.4 spec/bourbon/functions/is_light_spec.rb
bourbon-4.3.3 spec/bourbon/functions/is_light_spec.rb
bourbon-4.3.2 spec/bourbon/functions/is_light_spec.rb
bourbon-4.3.1 spec/bourbon/functions/is_light_spec.rb
bourbon-4.3.0 spec/bourbon/functions/is_light_spec.rb
bourbon-4.2.7 spec/bourbon/functions/is_light_spec.rb
bourbon-5.0.0.beta.1 spec/bourbon/functions/is_light_spec.rb
styler-sass-0.1.8.alpha spec/bourbon/functions/is_light_spec.rb
styler-sass-0.1.7 spec/bourbon/functions/is_light_spec.rb
styler-sass-0.1.7.alpha spec/bourbon/functions/is_light_spec.rb
styler-sass-0.1.5.alpha spec/bourbon/functions/is_light_spec.rb
bourbon-4.2.6 spec/bourbon/functions/is_light_spec.rb
bourbon-4.2.5 spec/bourbon/functions/is_light_spec.rb
bourbon-5.0.0.alpha.0 spec/bourbon/functions/is_light_spec.rb
bourbon-4.2.4 spec/bourbon/functions/is_light_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/is_light_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/is_light_spec.rb
bourbon-4.2.3 spec/bourbon/functions/is_light_spec.rb
bourbon-4.2.2 spec/bourbon/functions/is_light_spec.rb
bourbon-4.2.1 spec/bourbon/functions/is_light_spec.rb