Sha256: 743eedcbc0c977d753d9c03ed0d8d68418b61a6068e26165d830c0758c83b709

Contents?: true

Size: 789 Bytes

Versions: 2

Compression:

Stored size: 789 Bytes

Contents

require "spec_helper"

describe "grid-collapse" do
  before(:all) do
    ParserSupport.parse_file("mixins/grid-collapse")
  end

  context "called with default settings" do
    it "adds margin for just the gutter with no specified column" do
      ruleset = "float: left; " +
        "margin-left: -20px; " +
        "margin-right: -20px; " +
        "width: calc(100% + 40px);"
      expect(".grid-collapse-default").to have_ruleset(ruleset)
    end
  end

  context "called with custom settings" do
    it "adds margin for just the gutter with no specified column" do
      ruleset = "float: left; " +
        "margin-left: -4rem; " +
        "margin-right: -4rem; " +
        "width: calc(100% + 8rem);"

      expect(".grid-collapse-custom").to have_ruleset(ruleset)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
neat-2.0.0.beta.2 spec/neat/mixins/grid_collapse_spec.rb
neat-2.0.0.beta.1 spec/neat/mixins/grid_collapse_spec.rb