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.11.2 spec/support/matchers/active_triple_matchers.rb
krikri-0.11.1 spec/support/matchers/active_triple_matchers.rb
krikri-0.11.0 spec/support/matchers/active_triple_matchers.rb
krikri-0.10.1 spec/support/matchers/active_triple_matchers.rb
krikri-0.10.0 spec/support/matchers/active_triple_matchers.rb
krikri-0.9.0 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.9 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.8 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.7 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.6 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.5 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.4 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.3 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.2 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.1 spec/support/matchers/active_triple_matchers.rb
krikri-0.8.0 spec/support/matchers/active_triple_matchers.rb
krikri-0.7.6 spec/support/matchers/active_triple_matchers.rb
krikri-0.7.5 spec/support/matchers/active_triple_matchers.rb
krikri-0.7.4 spec/support/matchers/active_triple_matchers.rb
krikri-0.7.3 spec/support/matchers/active_triple_matchers.rb