test/unit/sinatra_app_tests.rb in deas-0.3.0 vs test/unit/sinatra_app_tests.rb in deas-0.4.0
- old
+ new
@@ -30,13 +30,16 @@
assert_equal Sinatra::Base, subject.superclass
end
should "call init procs when initialized" do
initialized = false
- @configuration.init_proc = proc{ initialized = true }
+ other_initialized = false
+ @configuration.init_procs << proc{ initialized = true }
+ @configuration.init_procs << proc{ other_initialized = true }
@sinatra_app = Deas::SinatraApp.new(@configuration)
assert_equal true, initialized
+ assert_equal true, other_initialized
end
should "call constantize! on all routes" do
assert_equal TestViewHandler, @route.handler_class
end