Sha256: b351ec7ab28f123966d4e05fcf2cdc709d172c716cde3d22638f5c7299bd3604

Contents?: true

Size: 639 Bytes

Versions: 15

Compression:

Stored size: 639 Bytes

Contents

require "spec_helper"

describe "shade" do
  before(:all) do
    ParserSupport.parse_file("functions/shade")
  end

  context "called on white" do
    it "shades white" do
      expect(".shade-white").to have_rule("color: #404040")
    end
  end

  context "called on black" do
    it "still returns black" do
      expect(".shade-black").to have_rule("color: black")
    end
  end

  context "called on red" do
    it "shades red" do
      expect(".shade-red").to have_rule("color: #bf0000")
    end
  end

  context "called on gray" do
    it "shades gray" do
      expect(".shade-gray").to have_rule("color: #171717")
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
bourbon-4.3.4 spec/bourbon/functions/shade_spec.rb
bourbon-4.3.3 spec/bourbon/functions/shade_spec.rb
bourbon-4.3.2 spec/bourbon/functions/shade_spec.rb
bourbon-4.3.1 spec/bourbon/functions/shade_spec.rb
bourbon-4.3.0 spec/bourbon/functions/shade_spec.rb
bourbon-4.2.7 spec/bourbon/functions/shade_spec.rb
bourbon-5.0.0.beta.1 spec/bourbon/functions/shade_spec.rb
styler-sass-0.1.8.alpha spec/bourbon/functions/shade_spec.rb
styler-sass-0.1.7 spec/bourbon/functions/shade_spec.rb
styler-sass-0.1.7.alpha spec/bourbon/functions/shade_spec.rb
styler-sass-0.1.5.alpha spec/bourbon/functions/shade_spec.rb
bourbon-4.2.6 spec/bourbon/functions/shade_spec.rb
bourbon-4.2.5 spec/bourbon/functions/shade_spec.rb
bourbon-5.0.0.alpha.0 spec/bourbon/functions/shade_spec.rb
bourbon-4.2.4 spec/bourbon/functions/shade_spec.rb