Sha256: 2a7fddeab727601e0cd500e2ab5fcf54a0b14e0e7d50ef5bc0496884b5255833

Contents?: true

Size: 824 Bytes

Versions: 6

Compression:

Stored size: 824 Bytes

Contents

require "spec_helper"

describe "is-light" do
  before(:all) do
    ParserSupport.parse_file("validators/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

6 entries across 6 versions & 2 rubygems

Version Path
doggystyle-0.1.0 spec/doggystyle/validators/is_light_spec.rb
bourbon-5.0.0.beta.6 spec/bourbon/validators/is_light_spec.rb
bourbon-5.0.0.beta.5 spec/bourbon/validators/is_light_spec.rb
bourbon-5.0.0.beta.4 spec/bourbon/validators/is_light_spec.rb
bourbon-5.0.0.beta.3 spec/bourbon/validators/is_light_spec.rb
bourbon-5.0.0.beta.2 spec/bourbon/validators/is_light_spec.rb