Sha256: 3ddd0deb02fe08ee246cb9d261cd32fa70ab4bdc5230d1d91e06563faf3f18f9

Contents?: true

Size: 820 Bytes

Versions: 10

Compression:

Stored size: 820 Bytes

Contents

require "spec_helper"

describe "directional-property" do
  before(:all) do
    ParserSupport.parse_file("utilities/directional-property")
  end

  context "directional-property" do
    it "returns property and values with four distinct lengths" do
      expect(".border-all").to have_rule("border-width: 2px 5px 8px 12px")
    end

    it "returns property and value with one length" do
      expect(".border-top").to have_rule("border-top: 10px")
    end

    it "returns property and value with vertical and horizontal values" do
      expect(".border-color").to have_rule("border-color: #fff #000")
    end

    it "returns properties for top and bottom margin" do
      ruleset = "margin-top: 20px; " +
                "margin-bottom: 10px;"

      expect(".margin-null").to have_ruleset(ruleset)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/utilities/directional_property_spec.rb
bourbon-7.2.0 spec/bourbon/utilities/directional_property_spec.rb
bourbon-7.1.0 spec/bourbon/utilities/directional_property_spec.rb
bourbon-7.0.0 spec/bourbon/utilities/directional_property_spec.rb
bourbon-6.0.0 spec/bourbon/utilities/directional_property_spec.rb
bourbon-5.1.0 spec/bourbon/utilities/directional_property_spec.rb
bourbon-5.0.1 spec/bourbon/utilities/directional_property_spec.rb
bourbon-5.0.0 spec/bourbon/utilities/directional_property_spec.rb
bourbon-5.0.0.beta.8 spec/bourbon/utilities/directional_property_spec.rb
bourbon-5.0.0.beta.7 spec/bourbon/utilities/directional_property_spec.rb