Sha256: 8bd77512899e9ce715e2a1e3fa14eb7bea3898b8fc5c9671e185d57a25999e00

Contents?: true

Size: 630 Bytes

Versions: 5

Compression:

Stored size: 630 Bytes

Contents

require "spec_helper"

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

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

  context "called on black" do
    it "tints black" do
      expect(".tint-black").to have_rule("color: #7f7f7f")
    end
  end

  context "called on red" do
    it "tints red" do
      expect(".tint-red").to have_rule("color: #ff3f3f")
    end
  end

  context "called on gray" do
    it "tints gray" do
      expect(".tint-gray").to have_rule("color: #c6c6c6")
    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/tint_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/tint_spec.rb
bourbon-4.2.3 spec/bourbon/functions/tint_spec.rb
bourbon-4.2.2 spec/bourbon/functions/tint_spec.rb
bourbon-4.2.1 spec/bourbon/functions/tint_spec.rb