Sha256: 70eca4501800a5a59f2f4503d6d1a7e08bf975b6fee0bc950673e592944b8da3

Contents?: true

Size: 844 Bytes

Versions: 4

Compression:

Stored size: 844 Bytes

Contents

require "spec_helper"

describe "@include grid-media() {...}" do
  before(:all) do
    ParserSupport.parse_file("mixins/grid-media")
  end

  context "with argument ($custom-neat-grid)" do
    it "outputs @media only screen and (min-width: 1000px)" do
      expect(".grid-column-media-custom-neat-grid").to be_contained_in("only screen and (min-width: 1000px)")
    end
  end

  context "with argument ($specific-neat-grid)" do
    it "outputs @media only screen and (min-width: 1000px) and (max-width: 1100px)" do
      expect(".grid-column-media-specific-neat-grid").to be_contained_in("only screen and (min-width: 1000px) and (max-width: 1100px)")
    end
  end

  context "with argument ($print-neat-grid)" do
    it "outputs @media print" do
      expect(".grid-column-media-print-neat-grid").to be_contained_in("print")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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