test/unit/sinatra_app_tests.rb in deas-0.17.0 vs test/unit/sinatra_app_tests.rb in deas-0.17.1
- old
+ new
@@ -1,17 +1,19 @@
require 'assert'
+require 'sinatra/base'
+require 'test/support/view_handlers'
+require 'deas/route_proxy'
require 'deas/route'
require 'deas/server'
require 'deas/sinatra_app'
-require 'sinatra/base'
-require 'test/support/view_handlers'
module Deas::SinatraApp
class BaseTests < Assert::Context
desc "Deas::SinatraApp"
setup do
- @route = Deas::Route.new(:get, '/something', 'TestViewHandler')
+ proxy = Deas::RouteProxy.new('TestViewHandler')
+ @route = Deas::Route.new(:get, '/something', proxy)
@configuration = Deas::Server::Configuration.new.tap do |c|
c.env = 'staging'
c.root = 'path/to/somewhere'
c.dump_errors = true
c.method_override = false