spec/support/helpers/env_helpers.rb in appsignal-1.4.0.beta.1 vs spec/support/helpers/env_helpers.rb in appsignal-2.0.0.beta.1
- old
+ new
@@ -1,8 +1,9 @@
module EnvHelpers
def http_request_env_with_data(args={})
+ path = args.delete(:path) || "/blog"
Rack::MockRequest.env_for(
- '/blog',
+ path,
:params => {
'controller' => 'blog_posts',
'action' => 'show',
'id' => '1'
}