Sha256: 4897da9134df8e8ddc11081505cce3acc033fe1fe36c0daed3de3675c82468a6

Contents?: true

Size: 716 Bytes

Versions: 51

Compression:

Stored size: 716 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,
    ).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

51 entries across 51 versions & 1 rubygems

Version Path
appsignal-0.12.rc.12 spec/support/helpers/env_helpers.rb
appsignal-0.12.rc.11 spec/support/helpers/env_helpers.rb
appsignal-0.12.rc.10 spec/support/helpers/env_helpers.rb
appsignal-0.12.rc.9 spec/support/helpers/env_helpers.rb
appsignal-0.12.rc.8 spec/support/helpers/env_helpers.rb
appsignal-0.12.rc.7 spec/support/helpers/env_helpers.rb
appsignal-0.12.rc.6 spec/support/helpers/env_helpers.rb
appsignal-0.12.rc.5 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.54 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.53 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.52 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.51 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.50 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.49 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.48 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.47 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.46 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.45 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.44 spec/support/helpers/env_helpers.rb
appsignal-0.12.beta.43 spec/support/helpers/env_helpers.rb