Sha256: bf7c18003064f03b9a2b9e24fde480195f9cc1ec542ff97cbb3c7eedad91e935

Contents?: true

Size: 687 Bytes

Versions: 6

Compression:

Stored size: 687 Bytes

Contents

require "spec_helper"

describe "collapse-directionals" do
  before(:all) do
    ParserSupport.parse_file("utilities/collapse-directionals")
  end

  context "collapse-directionals" do
    it "returns four distinct lengths unaltered" do
      expect(".four").to have_rule("padding: 10px 20px 30px 40px")
    end

    it "returns collapsed horizontal lengths" do
      expect(".three").to have_rule("padding: 5px 10px 5px 20px")
    end

    it "returns collapsed vertical and horizontal lengths" do
      expect(".two").to have_rule("padding: 50px 100px")
    end

    it "returns collapsed lengths when all match" do
      expect(".one").to have_rule("padding: 10px")
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
doggystyle-0.1.0 spec/doggystyle/utilities/collapse_directionals.rb
bourbon-5.0.0.beta.6 spec/bourbon/utilities/collapse_directionals.rb
bourbon-5.0.0.beta.5 spec/bourbon/utilities/collapse_directionals.rb
bourbon-5.0.0.beta.4 spec/bourbon/utilities/collapse_directionals.rb
bourbon-5.0.0.beta.3 spec/bourbon/utilities/collapse_directionals.rb
bourbon-5.0.0.beta.2 spec/bourbon/utilities/collapse_directionals.rb