Sha256: a548a158958885b5e4c2b5b4fcdf8ff1189a9ea7b205a079851331f6c5a9b9a5

Contents?: true

Size: 283 Bytes

Versions: 22

Compression:

Stored size: 283 Bytes

Contents

RSpec::Matchers.define :be_contained_in do |expected|
  match do |actual|
    @query = ParserSupport.parser.find_by_selector(actual, expected)
    @query.any?
  end

  failure_message_for_should do |actual|
    %{expected selector #{actual} to be container in #{expected}}
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
bourbon-4.3.4 spec/support/matchers/be_contained_in.rb
bourbon-4.3.3 spec/support/matchers/be_contained_in.rb
bourbon-4.3.2 spec/support/matchers/be_contained_in.rb
bourbon-4.3.1 spec/support/matchers/be_contained_in.rb
bourbon-4.3.0 spec/support/matchers/be_contained_in.rb
bourbon-4.2.7 spec/support/matchers/be_contained_in.rb
styler-sass-0.1.8.alpha spec/support/matchers/be_contained_in.rb
styler-sass-0.1.7 spec/support/matchers/be_contained_in.rb
styler-sass-0.1.7.alpha spec/support/matchers/be_contained_in.rb
styler-sass-0.1.5.alpha spec/support/matchers/be_contained_in.rb
bourbon-4.2.6 spec/support/matchers/be_contained_in.rb
bourbon-4.2.5 spec/support/matchers/be_contained_in.rb
bourbon-5.0.0.alpha.0 spec/support/matchers/be_contained_in.rb
bourbon-4.2.4 spec/support/matchers/be_contained_in.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/bourbon-4.2.3/spec/support/matchers/be_contained_in.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/spec/support/matchers/be_contained_in.rb
bourbon-4.2.3 spec/support/matchers/be_contained_in.rb
bourbon-4.2.2 spec/support/matchers/be_contained_in.rb
bourbon-4.2.1 spec/support/matchers/be_contained_in.rb
bourbon-4.2.0 spec/support/matchers/be_contained_in.rb