Skip to content

Commit

Permalink
add institution for testing oai set description
Browse files Browse the repository at this point in the history
  • Loading branch information
lsat12357 committed Jan 7, 2016
1 parent 936db6c commit 89298de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/webmocks/institution.rb
@@ -0,0 +1,7 @@
RSpec.configure do |config|
config.before(:each) do
stub_request(:get, "http://dbpedia.org/resource/University_of_Oregon").
with(:headers => {'Accept'=>'application/n-triples, text/plain;q=0.5, application/rdf+xml, text/html;q=0.5, application/xhtml+xml, image/svg+xml, application/n-quads, text/x-nquads, application/ld+json, application/x-ld+json, application/json, text/n3, text/rdf+n3, application/rdf+n3, application/trig, application/x-trig, application/trix, application/turtle, text/rdf+turtle, text/turtle, application/x-turtle, */*;q=0.1', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => lambda {|request| "<#{request.uri.to_s.gsub(":80","")}> <http://purl.org/dc/terms/title> \"University of Oregon\"@en .'"}, :headers => {:'Content-Type' => 'application/n-triples'})
end
end

0 comments on commit 89298de

Please sign in to comment.