test/unit/sinatra_app_tests.rb in deas-0.10.0 vs test/unit/sinatra_app_tests.rb in deas-0.11.0

- old
+ new

@@ -24,26 +24,15 @@ end @sinatra_app = Deas::SinatraApp.new(@configuration) end subject{ @sinatra_app } - should "be a kind of Sinatra::Base" do - assert_equal Sinatra::Base, subject.superclass + should "ensure its config is valid" do + assert @configuration.valid? end - should "call init procs when initialized" do - initialized = false - 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 + should "be a kind of Sinatra::Base" do + assert_equal Sinatra::Base, subject.superclass end should "have it's configuration set based on the server configuration" do subject.settings.tap do |settings| assert_equal 'staging', settings.environment