Sha256: 1fbb3504fb1dd78efeb30150c97b2f436e532de0d260b865b666927526937f99

Contents?: true

Size: 603 Bytes

Versions: 16

Compression:

Stored size: 603 Bytes

Contents

require "spec_helper"

describe "strip-unit" do
  before(:all) do
    ParserSupport.parse_file("library/strip-unit")
  end

  context "called with px" do
    it "strips units" do
      expect(".px").to have_rule("width: 10")
    end
  end

  context "called with em" do
    it "strips units" do
      expect(".em").to have_rule("width: 2")
    end
  end

  context "called with rem" do
    it "strips units" do
      expect(".rem").to have_rule("width: 1.5")
    end
  end

  context "called with percent" do
    it "strips units" do
      expect(".percent").to have_rule("width: 20")
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/library/strip_unit_spec.rb
bourbon-7.2.0 spec/bourbon/library/strip_unit_spec.rb
bourbon-7.1.0 spec/bourbon/library/strip_unit_spec.rb
bourbon-7.0.0 spec/bourbon/library/strip_unit_spec.rb
bourbon-6.0.0 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.1.0 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.1 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.0 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.0.beta.8 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.0.beta.7 spec/bourbon/library/strip_unit_spec.rb
doggystyle-0.1.0 spec/doggystyle/library/strip_unit_spec.rb
bourbon-5.0.0.beta.6 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.0.beta.5 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.0.beta.4 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.0.beta.3 spec/bourbon/library/strip_unit_spec.rb
bourbon-5.0.0.beta.2 spec/bourbon/library/strip_unit_spec.rb