Sha256: 524563189003b5063f972a72cd90559eae752e9325c61984ddd41c647da4aa48

Contents?: true

Size: 627 Bytes

Versions: 15

Compression:

Stored size: 627 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: gray")
    end
  end

  context "called on red" do
    it "tints red" do
      expect(".tint-red").to have_rule("color: #ff4040")
    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

15 entries across 15 versions & 2 rubygems

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