Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subfolder in uri not needed for test
  • Loading branch information
kyledrake committed Jun 24, 2011
1 parent c696517 commit c0059ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/entitystore_test.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/metastore_test.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c0059ef

Please sign in to comment.