Sha256: eeff97682d287208a4fa22a7ab1f629840f5526c3b283124402f087aef4cdd99

Contents?: true

Size: 290 Bytes

Versions: 41

Compression:

Stored size: 290 Bytes

Contents

ENV['RACK_ENV'] = 'test'

require 'rspec'
require 'rack/test'

class ErrorRackApp
  attr_reader :last_env

  def initialize
    @last_env = {}
  end

  def call(env)
    @last_env = env
    [501, {}, 'fake app']
  end
end


RSpec.configure do |conf|
  conf.include Rack::Test::Methods
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
routemaster-drain-3.7.1 spec/support/rack_test.rb
routemaster-drain-3.7.0 spec/support/rack_test.rb
routemaster-drain-3.6.8 spec/support/rack_test.rb
routemaster-drain-3.6.7 spec/support/rack_test.rb
routemaster-drain-3.6.6 spec/support/rack_test.rb
routemaster-drain-3.6.5 spec/support/rack_test.rb
routemaster-drain-3.6.4 spec/support/rack_test.rb
routemaster-drain-3.6.3 spec/support/rack_test.rb
routemaster-drain-3.6.2 spec/support/rack_test.rb
routemaster-drain-3.6.1 spec/support/rack_test.rb
routemaster-drain-3.6.0 spec/support/rack_test.rb
routemaster-drain-3.5.1 spec/support/rack_test.rb
routemaster-drain-3.5.0 spec/support/rack_test.rb
routemaster-drain-3.4.0 spec/support/rack_test.rb
routemaster-drain-3.3.0 spec/support/rack_test.rb
routemaster-drain-3.2.0 spec/support/rack_test.rb
routemaster-drain-3.1.0 spec/support/rack_test.rb
routemaster-drain-3.0.3 spec/support/rack_test.rb
routemaster-drain-3.0.2 spec/support/rack_test.rb
routemaster-drain-3.0.1 spec/support/rack_test.rb