Sha256: 0654c6df8e5b98d06d822d79e4731963bd6e45997374600df9c37b002ccbb3be

Contents?: true

Size: 753 Bytes

Versions: 79

Compression:

Stored size: 753 Bytes

Contents

module EnvHelpers
  def http_request_env_with_data(args={})
    Rack::MockRequest.env_for(
      '/blog',
      :params => {
        'controller' => 'blog_posts',
        'action' => 'show',
        'id' => '1'
      }
    ).merge(
      :controller => 'BlogPostsController',
      :action => 'show',
      :request_format => 'html',
      :request_method => "GET",
      :status => '200',
      :view_runtime => 500,
      :db_runtime => 500,
      :metadata => {:key => 'value'}
    ).merge(args)
  end

  def background_env_with_data(args={})
    {
      :class => 'BackgroundJob',
      :method => 'perform',
      :priority => 1,
      :attempts => 0,
      :queue => 'default',
      :queue_start => fixed_time - 10.0,
    }.merge(args)
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
appsignal-1.4.0.beta.1 spec/support/helpers/env_helpers.rb
appsignal-1.3.6 spec/support/helpers/env_helpers.rb
appsignal-1.3.6.beta.1 spec/support/helpers/env_helpers.rb
appsignal-1.3.5 spec/support/helpers/env_helpers.rb
appsignal-1.3.5.beta.1 spec/support/helpers/env_helpers.rb
appsignal-1.3.4 spec/support/helpers/env_helpers.rb
appsignal-1.3.3 spec/support/helpers/env_helpers.rb
appsignal-1.4.0.alpha.2 spec/support/helpers/env_helpers.rb
appsignal-1.4.0.alpha.1 spec/support/helpers/env_helpers.rb
appsignal-1.3.2 spec/support/helpers/env_helpers.rb
appsignal-1.3.1 spec/support/helpers/env_helpers.rb
appsignal-1.3.0 spec/support/helpers/env_helpers.rb
appsignal-1.3.0.beta.3 spec/support/helpers/env_helpers.rb
appsignal-1.3.0.beta.2 spec/support/helpers/env_helpers.rb
appsignal-1.3.0.beta.1 spec/support/helpers/env_helpers.rb
appsignal-1.2.5 spec/support/helpers/env_helpers.rb
appsignal-1.2.4 spec/support/helpers/env_helpers.rb
appsignal-1.2.4.beta.4 spec/support/helpers/env_helpers.rb
appsignal-1.2.4.beta.3 spec/support/helpers/env_helpers.rb
appsignal-1.2.4.beta.2 spec/support/helpers/env_helpers.rb