Sha256: aecbf5a9c71f6d6acc4a4337f1d29b70705c10c46679df7872170dd4e37676d3

Contents?: true

Size: 607 Bytes

Versions: 18

Compression:

Stored size: 607 Bytes

Contents

require "spec_helper"

describe "strip-units" do
  before(:all) do
    ParserSupport.parse_file("functions/strip-units")
  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

18 entries across 18 versions & 3 rubygems

Version Path
bourbon-4.3.4 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.3.3 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.3.2 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.3.1 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.3.0 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.2.7 spec/bourbon/functions/strip_units_spec.rb
styler-sass-0.1.8.alpha spec/bourbon/functions/strip_units_spec.rb
styler-sass-0.1.7 spec/bourbon/functions/strip_units_spec.rb
styler-sass-0.1.7.alpha spec/bourbon/functions/strip_units_spec.rb
styler-sass-0.1.5.alpha spec/bourbon/functions/strip_units_spec.rb
bourbon-4.2.6 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.2.5 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.2.4 spec/bourbon/functions/strip_units_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/strip_units_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/strip_units_spec.rb
bourbon-4.2.3 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.2.2 spec/bourbon/functions/strip_units_spec.rb
bourbon-4.2.1 spec/bourbon/functions/strip_units_spec.rb