Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

subfolder in uri not needed for test

  • Loading branch information...
commit c0059ef31749035752729d1f71665b5981a54171 1 parent c696517
@kyledrake authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 test/entitystore_test.rb
  2. +2 −2 test/metastore_test.rb
View
4 test/entitystore_test.rb
@@ -187,7 +187,7 @@ def sha_like?
end
it 'passes options from uri' do
- memcached = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}/meta?show_backtraces=true")
+ memcached = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}?show_backtraces=true")
memcached.cache.instance_variable_get(:@options)[:show_backtraces].should.equal true
end
end
@@ -205,7 +205,7 @@ def sha_like?
behaves_like 'A Rack::Cache::EntityStore Implementation'
it 'passes options from uri' do
- dalli = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}/meta?compression=true")
+ dalli = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}?compression=true")
dalli.cache.instance_variable_get(:@options)[:compression].should.equal true
end
end
View
4 test/metastore_test.rb
@@ -267,7 +267,7 @@ def self.call(request); request.path_info.reverse end
end
it 'passes options from uri' do
- memcached = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}/meta?show_backtraces=true")
+ memcached = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}?show_backtraces=true")
memcached.cache.instance_variable_get(:@options)[:show_backtraces].should.equal true
end
end
@@ -284,7 +284,7 @@ def self.call(request); request.path_info.reverse end
end
it 'passes options from uri' do
- dalli = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}/meta?compression=true")
+ dalli = Rack::Cache::EntityStore::Dalli.resolve URI.parse("memcached://#{ENV['MEMCACHED']}?compression=true")
dalli.cache.instance_variable_get(:@options)[:compression].should.equal true
end
end

0 comments on commit c0059ef

Please sign in to comment.
Something went wrong with that request. Please try again.