Sha256: a5e2a842cc21f9d83a6337cd2e302092c87fb7ae05396b46018dfa10241b7f98

Contents?: true

Size: 377 Bytes

Versions: 5

Compression:

Stored size: 377 Bytes

Contents

RSpec::Matchers.define :be_exact_match_with do |expected|
  match do |actual|
    not actual.first([actual, RDF::SKOS.exactMatch, expected]).nil?
  end
end

RSpec::Matchers.define :have_provided_label do |expected|
  match do |actual|
    pattern = [actual, RDF::DPLA.providedLabel, nil]
    expect(actual.query(pattern).map(&:object)).to include(expected)
    true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
krikri-0.12.4 spec/support/matchers/active_triple_matchers.rb
krikri-0.12.3 spec/support/matchers/active_triple_matchers.rb
krikri-0.12.1 spec/support/matchers/active_triple_matchers.rb
krikri-0.12.0 spec/support/matchers/active_triple_matchers.rb
krikri-0.12.0.pre.rc.1 spec/support/matchers/active_triple_matchers.rb