Sha256: 849eb1551c962bd2213d59108b9c0982ac30b8f6905eb4d934defaebecde7e87

Contents?: true

Size: 561 Bytes

Versions: 27

Compression:

Stored size: 561 Bytes

Contents

ENV['RACK_ENV'] = 'test'
PADRINO_ROOT = File.dirname(__FILE__) unless defined?(PADRINO_ROOT)

require 'minitest/autorun'
require 'minitest/pride'
require 'rack/test'
require 'padrino-cache'

require 'ext/rack-test-methods'

class MiniTest::Spec
  include Rack::Test::Methods

  # Sets up a Sinatra::Base subclass defined with the block
  # given. Used in setup or individual spec methods to establish
  # the application.
  def mock_app(base=Padrino::Application, &block)
    @app = Sinatra.new(base, &block)
  end

  def app
    Rack::Lint.new(@app)
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
padrino-cache-0.15.3 test/helper.rb
padrino-cache-0.15.2 test/helper.rb
padrino-cache-0.15.1 test/helper.rb
padrino-cache-0.15.0 test/helper.rb
padrino-cache-0.14.4 test/helper.rb
padrino-cache-0.14.3 test/helper.rb
padrino-cache-0.12.9 test/helper.rb
padrino-cache-0.14.2 test/helper.rb
padrino-cache-0.13.3.4 test/helper.rb
padrino-cache-0.14.1.1 test/helper.rb
padrino-cache-0.14.1 test/helper.rb
padrino-cache-0.14.0.2 test/helper.rb
padrino-cache-0.14.0.1 test/helper.rb
padrino-cache-0.14.0 test/helper.rb
padrino-cache-0.14.0.rc2 test/helper.rb
padrino-cache-0.14.0.rc1 test/helper.rb
padrino-cache-0.13.3.3 test/helper.rb
padrino-cache-0.13.3.2 test/helper.rb
padrino-cache-0.13.3.1 test/helper.rb
padrino-cache-0.13.3 test/helper.rb