Sha256: 22a2c3494eff336a413fdcd1039b1d39a3355baa8c0f84e7380704dbf8aba653

Contents?: true

Size: 834 Bytes

Versions: 20

Compression:

Stored size: 834 Bytes

Contents

require "spec_helper"

describe "unpack" do
  before(:all) do
    ParserSupport.parse_file("functions/unpack")
  end

  context "single" do
    it "unpacks four identical measurements" do
      expect(".single").to have_rule("padding: 10px 10px 10px 10px")
    end
  end

  context "double" do
    it "unpacks identical measurements for top and bottom,
      and different identical measurements for left and right" do
      expect(".double").to have_rule("padding: 1em 2em 1em 2em")
    end
  end

  context "triple" do
    it "unpacks identical measurements for left and right" do
      expect(".triple").to have_rule("padding: 10px 20px 0 20px")
    end
  end

  context "quadruple" do
    it "unpacks four distict measurements" do
      expect(".quadruple").to have_rule("padding: 0 calc(1em + 10px) 20px 50px")
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

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