Sha256: 40e66cee30a3bca8df2f05769e9dfea9fbad341af55fd33f1889b49259c6d445

Contents?: true

Size: 274 Bytes

Versions: 4

Compression:

Stored size: 274 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

4 entries across 4 versions & 1 rubygems

Version Path
neat-1.7.1 spec/support/matchers/be_contained_in.rb
neat-1.7.0 spec/support/matchers/be_contained_in.rb
neat-1.7.0.rc spec/support/matchers/be_contained_in.rb
neat-1.7.0.pre spec/support/matchers/be_contained_in.rb