Sha256: d10f7526f7383926a29f7004e0a246e6d95c7ff3aca6a5736c91539ce9cacfe3

Contents?: true

Size: 526 Bytes

Versions: 8

Compression:

Stored size: 526 Bytes

Contents

require "spec_helper"

describe "contrast-ratio" do
  before(:all) do
    ParserSupport.parse_file("utilities/contrast-ratio")
  end

  context "calculates between white and black" do
    it "outputs the contrast ratio" do
      rule = "content: 21;"

      expect(".contrast-ratio-black").to have_ruleset(rule)
    end
  end

  context "calculates between white and blue" do
    it "outputs the contrast ratio" do
      rule = "content: 8.59247;"

      expect(".contrast-ratio-blue").to have_ruleset(rule)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/utilities/contrast_ratio_spec.rb
bourbon-7.2.0 spec/bourbon/utilities/contrast_ratio_spec.rb
bourbon-7.1.0 spec/bourbon/utilities/contrast_ratio_spec.rb
bourbon-7.0.0 spec/bourbon/utilities/contrast_ratio_spec.rb
bourbon-6.0.0 spec/bourbon/utilities/contrast_ratio_spec.rb
bourbon-5.1.0 spec/bourbon/utilities/contrast_ratio_spec.rb
bourbon-5.0.1 spec/bourbon/utilities/contrast_ratio_spec.rb
bourbon-5.0.0 spec/bourbon/utilities/contrast_ratio_spec.rb