Sha256: 50881e7442424709814c6ad1a3638e349819e3283b7db186568bfdfad2ec1746

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

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

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

    it "outputs @media only screen and (min-width: 1000px) and (max-width: 1100px)" do
      expect(".grid-column-media-combined-grid").to be_contained_in("only screen and (min-width: 1000px) and (max-width: 1100px)")
    end

    it "outputs @media print" do
      expect(".grid-column-media-combined-grid").to be_contained_in("print")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
neat-4.0.0 spec/neat/mixins/grid_media_spec.rb
neat-3.0.1 spec/neat/mixins/grid_media_spec.rb
neat-3.0.0 spec/neat/mixins/grid_media_spec.rb