Sha256: b9da5cf2983efd66460c7ef788ea94a507569122af1cf2f66ec68b7a37e35975

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 Bytes

Contents

require 'spec_helper'

describe "@include outer-container()" do
  before(:all) do
    ParserSupport.parse_file("outer-container")
  end

  it "adds clearfix" do
    expect('.container-default:after').to have_rule('clear: both')
  end

  it "sets max-width" do
    expect('.container-default').to have_rule('max-width: 960px')
  end

  context "with max-width argument: 100%" do
    it "sets max-width to 100%" do
      expect('.container-custom-width').to have_rule('max-width: 100%')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
neat-1.7.0 spec/neat/container_spec.rb
neat-1.7.0.rc spec/neat/container_spec.rb
neat-1.7.0.pre spec/neat/container_spec.rb