Sha256: dd566c3d629ebe5c555cb261bd5e840fb265b546d44370a0be1dce0b17f6d25c

Contents?: true

Size: 272 Bytes

Versions: 14

Compression:

Stored size: 272 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 do |actual|
    %{expected selector #{actual} to be contained in #{expected}}
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
neat-4.0.0 spec/support/matchers/be_contained_in.rb
neat-3.0.1 spec/support/matchers/be_contained_in.rb
neat-1.9.1 spec/support/matchers/be_contained_in.rb
neat-3.0.0 spec/support/matchers/be_contained_in.rb
neat-1.9.0 spec/support/matchers/be_contained_in.rb
neat-2.1.0 spec/support/matchers/be_contained_in.rb
neat-2.0.0 spec/support/matchers/be_contained_in.rb
neat-2.0.0.beta.2 spec/support/matchers/be_contained_in.rb
neat-2.0.0.beta.1 spec/support/matchers/be_contained_in.rb
neat-2.0.0.alpha.1 spec/support/matchers/be_contained_in.rb
neat-1.8.0 spec/support/matchers/be_contained_in.rb
neat-1.7.4 spec/support/matchers/be_contained_in.rb
neat-1.7.3 spec/support/matchers/be_contained_in.rb
neat-1.7.2 spec/support/matchers/be_contained_in.rb