test/meta_store_test.rb
def store_simple_entry(*request_args)
        path, headers = request_args
        @request = mock_request(path || '/test', headers || {})
        @response = mock_response(200, {'Cache-Control' => 'max-age=420'}, ['test'])
        body = @response.body
        cache_key = @store.store(@request, @response, @entity_store)
        @response.body.object_id.must_equal body.object_id
        cache_key
      end
# Stores an entry for the given request args, returns a url encoded cache key
# for the request.
Stores an entry for the given request args, returns a url encoded cache key
for the request.
Stores an entry for the given request args returns a url encoded cache key for the request .
def store_simple_entry(*request_args)
        path, headers = request_args
        @request = mock_request(path || '/test', headers || {})
        @response = mock_response(200, {'Cache-Control' => 'max-age=420'}, ['test'])
        body = @response.body
        cache_key = @store.store(@request, @response, @entity_store)
        @response.body.object_id.must_equal body.object_id
        cache_key
      end
def store_simple_entry ( * request_args ) path , headers = request_args @request = mock_request ( path || '/test' , headers || { } ) @response = mock_response ( 200 , { 'Cache-Control' => 'max-age=420' } , [ 'test' ] ) body = @response . body cache_key = @store . store ( @request , @response , @entity_store ) @response . body . object_id . must_equal body . object_id cache_key end
Stores an entry for the given request args, returns a url encoded cache key
for the request.
Stores an entry for the given request args returns a url encoded cache key for the request .
request_args