Sha256: 37124c7e4829030ba33a75cd02b68f7ac253ac02f83a1afb5ba7afcdc74756e5

Contents?: true

Size: 920 Bytes

Versions: 4

Compression:

Stored size: 920 Bytes

Contents

require "spec_helper"

describe "_bourbon-get-setting" do
  before(:all) do
    ParserSupport.parse_file("utilities/bourbon-get-setting")
  end

  context "gets the modular-scale-base setting" do
    it "and returns the default value" do
      expect(".test-1").to have_rule("content: 1em")
    end
  end

  context "gets the rails-asset-pipeline setting" do
    it "and returns the user-overridden value" do
      expect(".test-2").to have_rule("content: true")
    end
  end

  context "called from the font-face mixin" do
    it "outputs user-overridden font file formats" do
      ruleset = 'font-family: "source-sans-pro"; ' +
                'src: font-url("source-sans-pro-regular.woff2") ' +
                     'format("woff2"), ' +
                     'font-url("source-sans-pro-regular.woff") ' +
                     'format("woff");'

      expect("@font-face").to have_ruleset(ruleset)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bourbon-5.0.0.beta.5 spec/bourbon/utilities/bourbon_get_setting_spec.rb
bourbon-5.0.0.beta.4 spec/bourbon/utilities/bourbon_get_setting_spec.rb
bourbon-5.0.0.beta.3 spec/bourbon/utilities/bourbon_get_setting_spec.rb
bourbon-5.0.0.beta.2 spec/bourbon/utilities/bourbon_get_setting_spec.rb