Sha256: 423446899626ee225e1d1f9d95030d1861c82b1f15aa2e1d99a2a76afa569edb

Contents?: true

Size: 637 Bytes

Versions: 16

Compression:

Stored size: 637 Bytes

Contents

require "spec_helper"

describe "contains" do
  before(:all) do
    ParserSupport.parse_file("validators/contains")
  end

  context "called on array with single item" do
    it "contains item" do
      expect(".single").to have_rule("color: #fff")
    end

    it "doesn't contain missing item" do
      expect(".single-missing").to have_rule("color: #000")
    end
  end

  context "called with array with multiple items" do
    it "contains item" do
      expect(".multiple").to have_rule("color: #fff")
    end

    it "doesn't contain missing item" do
      expect(".multiple-missing").to have_rule("color: #000")
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/validators/contains_spec.rb
bourbon-7.2.0 spec/bourbon/validators/contains_spec.rb
bourbon-7.1.0 spec/bourbon/validators/contains_spec.rb
bourbon-7.0.0 spec/bourbon/validators/contains_spec.rb
bourbon-6.0.0 spec/bourbon/validators/contains_spec.rb
bourbon-5.1.0 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.1 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.0 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.0.beta.8 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.0.beta.7 spec/bourbon/validators/contains_spec.rb
doggystyle-0.1.0 spec/doggystyle/validators/contains_spec.rb
bourbon-5.0.0.beta.6 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.0.beta.5 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.0.beta.4 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.0.beta.3 spec/bourbon/validators/contains_spec.rb
bourbon-5.0.0.beta.2 spec/bourbon/validators/contains_spec.rb