rdf-virtuoso 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,40 +0,0 @@
1
- $:.unshift "."
2
- require File.join(File.dirname(__FILE__), 'spec_helper')
3
- require 'rdf/spec/repository'
4
-
5
- describe RDF::Virtuoso::Repository do
6
-
7
- before(:each) do
8
- @uri = "http://localhost:8890/sparql"
9
- @update_uri = "http://localhost:8890/sparql-auth"
10
- @repository = RDF::Virtuoso::Repository.new(@uri)
11
- end
12
-
13
- #include RDF_Repository # not implemented
14
-
15
- it "should support connecting to a Virtuoso SPARQL endpoint" do
16
- repo = RDF::Virtuoso::Repository.new(@uri)
17
- repo.instance_variable_get("@sparul_endpoint").should == "/sparql"
18
- end
19
-
20
- it "should support accept port in repository endpoint" do
21
- repo = RDF::Virtuoso::Repository.new(@uri)
22
- repo.instance_variable_get("@base_uri").should == "http://localhost:8890"
23
- end
24
-
25
- it "should support connecting to a Virtuoso SPARUL endpoint with BASIC AUTH" do
26
- repo = RDF::Virtuoso::Repository.new(@uri, :update_uri => @update_uri, :username => 'admin', :password => 'secret', :auth_method => 'basic')
27
- repo.instance_variable_get("@auth_method").should == "basic"
28
- end
29
-
30
- it "should support connecting to a Virtuoso SPARUL endpoint with DIGEST AUTH" do
31
- repo = RDF::Virtuoso::Repository.new(@uri, :update_uri => @update_uri, :username => 'admin', :password => 'secret', :auth_method => 'digest')
32
- repo.instance_variable_get("@sparul_endpoint").should == "/sparql-auth"
33
- end
34
-
35
- it "should support timeout option" do
36
- repo = RDF::Virtuoso::Repository.new(@uri, :timeout => 10)
37
- repo.instance_variable_get("@timeout").should == 10
38
- end
39
-
40
- end
@@ -1,10 +0,0 @@
1
- require 'bundler/setup'
2
- require 'rspec'
3
- require 'rdf'
4
- require 'rdf/spec'
5
- require 'rdf/spec/matchers'
6
- require 'rdf/virtuoso'
7
-
8
- RSpec.configure do |config|
9
- config.include(RDF::Spec::Matchers)
10
- end