spec/spec_helper.rb in rack-iframe-0.0.1 vs spec/spec_helper.rb in rack-iframe-0.0.2

- old
+ new

@@ -52,14 +52,14 @@ def rack_cache(app, options = {}) options = {:verbose => true, :meta_store => 'heap:/', :entitystore => 'heap:/'}.merge(options) Rack::Cache.new(app, options) end -def mock_request(user_agent_key, env = {}) +def mock_request(user_agent_key, env = {}, path = '/') headers = { 'HTTP_USER_AGENT' => user_agent_string(user_agent_key) }.merge(env) - Rack::MockRequest.env_for('/', headers) + Rack::MockRequest.env_for(path, headers) end def random_etag Digest::MD5.hexdigest(Time.now.to_s) end