Sha256: 62ec6d756c410677962d7b74462d35a0f8bb6fd135c47103c211e83bbdca63e8

Contents?: true

Size: 385 Bytes

Versions: 24

Compression:

Stored size: 385 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 contain_exactly(expected)
    true
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
krikri-0.7.2 spec/support/matchers/active_triple_matchers.rb
krikri-0.7.1 spec/support/matchers/active_triple_matchers.rb
krikri-0.7.0 spec/support/matchers/active_triple_matchers.rb
krikri-0.6.0 spec/support/matchers/active_triple_matchers.rb