Sha256: 9a1b472d1e93485db3651bc6e8bd1a3aae69517ec7f6e03c6c377bc6a7531736
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require "spec_helper" describe "_bourbon-get-setting" do before(:all) do ParserSupport.parse_file("settings/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bourbon-5.0.0.beta.1 | spec/bourbon/settings/bourbon_get_setting_spec.rb |