test/unit/server_configuration_tests.rb in deas-0.17.0 vs test/unit/server_configuration_tests.rb in deas-0.17.1
- old
+ new
@@ -1,10 +1,11 @@
require 'assert'
require 'set'
require 'test/support/view_handlers'
require 'deas/exceptions'
require 'deas/template'
+require 'deas/route_proxy'
require 'deas/server'
class Deas::Server::Configuration
class BaseTests < Assert::Context
@@ -87,10 +88,11 @@
class ValidationTests < BaseTests
desc "when successfully validated"
setup do
@initialized = false
@other_initialized = false
- @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