Skip to content

Commit

Permalink
Create repository_spec, awaiting a reasonable external repo to use.
Browse files Browse the repository at this point in the history
This resolves the pull request on issue #45.
[ci skip]
  • Loading branch information
gkellogg committed Jun 2, 2014
1 parent 460c665 commit 8ccf9e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def response(header)

it "should handle successful response with boolean header" do
expect(subject).to receive(:request).and_yield response(SPARQL::Client::RESULT_BOOL)
expect(subject.query(query)).to be_false
expect(subject.query(query)).to be_falsey
end

it "should handle successful response with JSON header" do
Expand Down
15 changes: 15 additions & 0 deletions spec/repository_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
require File.join(File.dirname(__FILE__), 'spec_helper')
require 'rdf/spec/repository'

describe SPARQL::Client::Repository do
before :each do
@repository = SPARQL::Client::Repository.new('http://dydra.com/gkellogg/sparql-client-test/sparql',
headers: {'Accept' => 'text/plain'})
@repository.clear!
end

# @see lib/rdf/spec/repository.rb in RDF-spec
include RDF_Repository

end

0 comments on commit 8ccf9e4

Please sign in to comment.