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.0.0 spec/support/rack_test.rb
routemaster-drain-2.5.4 spec/support/rack_test.rb
routemaster-drain-2.5.3 spec/support/rack_test.rb
routemaster-drain-2.5.2 spec/support/rack_test.rb
routemaster-drain-2.5.1 spec/support/rack_test.rb
routemaster-drain-2.5.0 spec/support/rack_test.rb
routemaster-drain-2.4.4 spec/support/rack_test.rb
routemaster-drain-2.4.3 spec/support/rack_test.rb
routemaster-drain-2.4.2 spec/support/rack_test.rb
routemaster-drain-2.4.1 spec/support/rack_test.rb
routemaster-drain-2.4.0 spec/support/rack_test.rb
routemaster-drain-2.3.0 spec/support/rack_test.rb
routemaster-drain-2.2.2 spec/support/rack_test.rb
routemaster-drain-2.0.0 spec/support/rack_test.rb
routemaster-drain-1.1.0 spec/support/rack_test.rb
routemaster-drain-1.0.5 spec/support/rack_test.rb
routemaster-drain-1.0.4 spec/support/rack_test.rb
routemaster-drain-1.0.3 spec/support/rack_test.rb
routemaster-drain-1.0.2 spec/support/rack_test.rb
routemaster-drain-1.0.1 spec/support/rack_test.rb