Permalink
Browse files

forward some methods to app

  • Loading branch information...
1 parent d74b339 commit cbe9a487b4667184af48df98efe1e64bdf48345a @rkh committed Feb 26, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/sinatra/test_helper.rb
@@ -1,6 +1,8 @@
require "sinatra/base"
require "sinatra/sugar"
require "rack/test"
+require "forwardable"
+require "monkey"
Sinatra::Base.set :environment, :test
@@ -9,6 +11,9 @@ module Sinatra
# This encapsulates general test helpers. See Bacon, RSpec, Test::Spec and Test::Unit for examples.
module TestHelper
include ::Rack::Test::Methods
+ extend Forwardable
+
+ def_delegators :app, :configure, :set, :enable, :disable, :use, :helpers, :register
attr_writer :app
def app(*options, &block)

0 comments on commit cbe9a48

Please sign in to comment.