Sha256: 66465f5242a8cf328ca722956187d97a521e95bf4bebb15ff61861d7d11d0d43
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require 'rdf' require 'rdf/spec' share_as :RDF_Graph do before :each do raise '+@new+ must be defined in a before(:each) block' unless instance_variable_get('@new') end context "unnamed graphs" do it "should be instantiable" do lambda { @new.call }.should_not raise_error end it "should be unnamed" do graph = @new.call graph.unnamed?.should be_true graph.named?.should be_false end it "should not have a context" do graph = @new.call graph.context.should be_nil graph.contexts.size.should == 0 end end context "named graphs" do it "should be instantiable" do lambda { @new.call }.should_not raise_error end it "should be named" do graph = @new.call("http://rdf.rubyforge.org/") graph.unnamed?.should be_false graph.named?.should be_true end it "should have a context" do graph = @new.call("http://rdf.rubyforge.org/") graph.context.should_not be_nil graph.contexts.size.should == 1 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rdf-spec-0.1.10 | lib/rdf/spec/graph.rb |
rdf-spec-0.1.9 | lib/rdf/spec/graph.rb |
rdf-spec-0.1.8 | lib/rdf/spec/graph.rb |
rdf-spec-0.1.6 | lib/rdf/spec/graph.rb |