spec/spec_controller_helper.rb in relevance-castronaut-0.5.4 vs spec/spec_controller_helper.rb in relevance-castronaut-0.6.0
- old
+ new
@@ -4,11 +4,11 @@
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../vendor/rack/lib')
require 'rack'
require 'sinatra'
require 'sinatra/test/unit'
-Sinatra::Application.default_options.merge!(
- :env => :test,
+Sinatra::Application.set(
+ :environment => :test,
:run => false,
:raise_errors => true,
:logging => false
)