Sha256: 31c805605e2aca9f3b883a8ac857ec07bc28f3eb2b18d1e5dc5966cfb0d5d4db

Contents?: true

Size: 796 Bytes

Versions: 12

Compression:

Stored size: 796 Bytes

Contents

require "spec_helper"

describe "prefixer" do
  before(:all) do
    ParserSupport.parse_file("library/prefixer")
  end

  context "called with no prefixes" do
    it "outputs the spec" do
      rule = "appearance: none;"

      expect(".prefix").to have_ruleset(rule)
    end
  end

  context "called with one prefix" do
    it "applies the prefix to the property" do
      rule = "-webkit-appearance: none; " +
             "appearance: none;"

      expect(".prefix--webkit").to have_ruleset(rule)
    end
  end

  context "called with multiple prefixes" do
    it "applies the prefixes to the property" do
      rule = "-moz-appearance: none; " +
             "-ms-appearance: none; " +
             "appearance: none;"

      expect(".prefix--moz-ms").to have_ruleset(rule)
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/library/prefixer_spec.rb
bourbon-7.2.0 spec/bourbon/library/prefixer_spec.rb
bourbon-7.1.0 spec/bourbon/library/prefixer_spec.rb
bourbon-7.0.0 spec/bourbon/library/prefixer_spec.rb
bourbon-6.0.0 spec/bourbon/library/prefixer_spec.rb
bourbon-5.1.0 spec/bourbon/library/prefixer_spec.rb
bourbon-5.0.1 spec/bourbon/library/prefixer_spec.rb
bourbon-5.0.0 spec/bourbon/library/prefixer_spec.rb
bourbon-5.0.0.beta.8 spec/bourbon/library/prefixer_spec.rb
bourbon-5.0.0.beta.7 spec/bourbon/library/prefixer_spec.rb
doggystyle-0.1.0 spec/doggystyle/library/prefixer_spec.rb
bourbon-5.0.0.beta.6 spec/bourbon/library/prefixer_spec.rb