Sha256: 863a84f87adb1f9ccb55d1c3c9013ea98bf99d9bf1e940c16eb9a1384df07741

Contents?: true

Size: 552 Bytes

Versions: 8

Compression:

Stored size: 552 Bytes

Contents

require "spec_helper"

describe "neat-parse-media" do
  before(:all) do
    ParserSupport.parse_file("functions/neat-parse-media")
  end

  context "called with number" do
    it "gets min-width wraped number" do
      rule = 'content: "only screen and (min-width: 100px)"'

      expect(".neat-parse-media-number").to have_rule(rule)
    end
  end

  context "called with string" do
    it "gets the string" do
      rule = 'content: "only screen and (max-width: 25rem)"'

      expect(".neat-parse-media-string").to have_rule(rule)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
neat-4.0.0 spec/neat/functions/neat_parse_media_spec.rb
neat-3.0.1 spec/neat/functions/neat_parse_media_spec.rb
neat-3.0.0 spec/neat/functions/neat_parse_media_spec.rb
neat-2.1.0 spec/neat/functions/neat_parse_media_spec.rb
neat-2.0.0 spec/neat/functions/neat_parse_media_spec.rb
neat-2.0.0.beta.2 spec/neat/functions/neat_parse_media_spec.rb
neat-2.0.0.beta.1 spec/neat/functions/neat_parse_media_spec.rb
neat-2.0.0.alpha.1 spec/neat/functions/neat_parse_media_spec.rb