Sha256: b4118f275ce9fb3df47f5e8bb8f9b4f8fadd443def67d4f990838c04afbf3876
Contents?: true
Size: 546 Bytes
Versions: 10
Compression:
Stored size: 546 Bytes
Contents
require 'rdf/spec' RSpec.shared_examples 'an RDF::Indexable' do include RDF::Spec::Matchers before :each do raise 'indexable must be defined with let(:indexable)' unless defined? indexable end subject { indexable } it {is_expected.to respond_to(:indexed?)} it {is_expected.to respond_to(:index!)} it "returns boolean for #indexed?" do expect(subject.indexed?).to satisfy {|x| x.is_a?(TrueClass) || x.is_a?(FalseClass)} end it "returns self on #index!" do expect(subject.index!).to eql(subject) end end
Version data entries
10 entries across 10 versions & 1 rubygems