Sha256: 7b0bd48fcc1f26543f907324357d3d640305e1bfbaf29f235449476229137ce5
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
ENV['RACK_ENV'] = 'test' PADRINO_ROOT = File.dirname(__FILE__) unless defined?(PADRINO_ROOT) require 'minitest/autorun' require 'minitest/pride' require 'i18n' require 'json' require 'builder' require 'rack/test' require 'yaml' require 'padrino-core' require 'ext/minitest-spec' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
padrino-core-0.16.0.pre3 | test/helper.rb |
padrino-core-0.16.0.pre2 | test/helper.rb |