Sha256: a4b50870beff008b7e94e2b0f33cffb94e49bfd759f3ab62fd50ae8bf43fa67b

Contents?: true

Size: 471 Bytes

Versions: 7

Compression:

Stored size: 471 Bytes

Contents

require "spec_helper"

describe "new-breakpoint()" do
  before(:all) do
    ParserSupport.parse_file("new-breakpoint")
  end

  context "with argument (max-width 768px 12)" do
    it "outputs (max-width 768px)" do
      expect(".responsive-element").to be_contained_in("screen and (max-width: 768px)")
    end

    it "adds (max-width 768px 12) to visual grid breakpoints" do
      expect("$visual-grid-breakpoints").to have_value("max-width 768px 12")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
neat-1.9.1 spec/neat/new_breakpoint_spec.rb
neat-1.9.0 spec/neat/new_breakpoint_spec.rb
neat-1.8.0 spec/neat/new_breakpoint_spec.rb
neat-1.7.4 spec/neat/new_breakpoint_spec.rb
neat-1.7.3 spec/neat/new_breakpoint_spec.rb
neat-1.7.2 spec/neat/new_breakpoint_spec.rb
neat-1.7.1 spec/neat/new_breakpoint_spec.rb