Sha256: a933814df9c5898193fe4a3873073b4036bb3149a006981c0e2a582eeaf7e1f4
Contents?: true
Size: 743 Bytes
Versions: 4
Compression:
Stored size: 743 Bytes
Contents
require 'rdf/spec' share_as :RDF_Indexable do include RDF::Spec::Matchers before :each do raise '+@indexable+ must be defined in a before(:each) block' unless instance_variable_get('@indexable') end it "responds to #indexed?" do @indexable.respond_to?(:indexed?) end it "implements #indexed?" do !!@indexable.indexed?.should == @indexable.indexed? end it "responds to #index!" do @indexable.respond_to?(:index!) end it "does not raise error on #index! if #indexed?" do lambda {@indexable.index!}.should_not raise_error if @indexable.indexed? end it "raises error on #index! if not #indexed?" do lambda {@indexable.index!}.should raise_error unless @indexable.indexed? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rdf-spec-0.3.8 | lib/rdf/spec/indexable.rb |
rdf-spec-0.3.7 | lib/rdf/spec/indexable.rb |
rdf-spec-0.3.5.1 | lib/rdf/spec/indexable.rb |
rdf-spec-0.3.5 | lib/rdf/spec/indexable.rb |