Sha256: c0a6c682c404e1ffdeb3f1fe833352747c9b99fc1c42d92d833ad83df0970a2a

Contents?: true

Size: 639 Bytes

Versions: 5

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: #3f3f3f")
    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: #161616")
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/shade_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/shade_spec.rb
bourbon-4.2.3 spec/bourbon/functions/shade_spec.rb
bourbon-4.2.2 spec/bourbon/functions/shade_spec.rb
bourbon-4.2.1 spec/bourbon/functions/shade_spec.rb