File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
33RSpec . describe LinkedDataFragments ::Blazegraph do
44 subject {
5- Setting . stub ( :cache_backend ) . and_return ( 'blazegraph' )
6- Setting . stub ( :cache_backend_url ) . and_return ( 'http://localhost:8988/blazegraph/sparql' )
7- Setting . stub ( :cache_backend_context ) . and_return ( 'http://localhost:8988/linked-data-fragments-test' )
5+ allow ( Setting ) . to receive ( :cache_backend ) . and_return ( 'blazegraph' )
6+ allow ( Setting ) . to receive ( :cache_backend_url ) . and_return ( 'http://localhost:8988/blazegraph/sparql' )
7+ allow ( Setting ) . to receive ( :cache_backend_context ) . and_return ( 'http://localhost:8988/linked-data-fragments-test' )
88 LinkedDataFragments ::Blazegraph . new
99 }
1010
Original file line number Diff line number Diff line change 22
33RSpec . describe LinkedDataFragments ::Marmotta do
44 subject {
5- Setting . stub ( :cache_backend ) . and_return ( 'marmotta' )
6- Setting . stub ( :cache_backend_url ) . and_return ( 'http://localhost:8988/marmotta' )
7- Setting . stub ( :cache_backend_context ) . and_return ( 'http://localhost:8988/linked-data-fragments-test' )
5+ allow ( Setting ) . to receive ( :cache_backend ) . and_return ( 'marmotta' )
6+ allow ( Setting ) . to receive ( :cache_backend_url ) . and_return ( 'http://localhost:8988/marmotta' )
7+ allow ( Setting ) . to receive ( :cache_backend_context ) . and_return ( 'http://localhost:8988/linked-data-fragments-test' )
88 LinkedDataFragments ::Marmotta . new
99 }
1010
Original file line number Diff line number Diff line change 22
33RSpec . describe LinkedDataFragments ::Repository do
44 subject {
5- Setting . stub ( :cache_backend ) . and_return ( 'repository' )
5+ allow ( Setting ) . to receive ( :cache_backend ) . and_return ( 'repository' )
66 LinkedDataFragments ::Repository . new
77 }
88
Original file line number Diff line number Diff line change 4343 end
4444
4545 config . before ( :each ) do
46- Setting . stub ( :cache_backend ) . and_return ( 'repository' )
46+ allow ( Setting ) . to receive ( :cache_backend ) . and_return ( 'repository' )
4747 end
4848
4949# The settings below are suggested to provide a good initial experience
You can’t perform that action at this time.
0 commit comments