diff --git a/test/base_test.rb b/test/base_test.rb index 7a5d1130..9cb41233 100644 --- a/test/base_test.rb +++ b/test/base_test.rb @@ -71,7 +71,7 @@ class BaseTest < Test::Unit::TestCase end it 'exposes the downstream app' do - middleware = TestMiddleware.new(app) + middleware = TestMiddleware.new!(app) assert_same app, middleware.app end diff --git a/test/request_test.rb b/test/request_test.rb index 784dc975..610f1a84 100644 --- a/test/request_test.rb +++ b/test/request_test.rb @@ -38,7 +38,7 @@ class RequestTest < Test::Unit::TestCase 'CONTENT_TYPE' => 'application/x-www-form-urlencoded', 'rack.input' => StringIO.new('foo=bar') ) - params = Sinatra::Base.new.send(:indifferent_hash).replace(request.params) + params = Sinatra::Base.new!.send(:indifferent_hash).replace(request.params) dumped = Marshal.dump(request.params) assert_equal 'bar', Marshal.load(dumped)['foo'] end diff --git a/test/settings_test.rb b/test/settings_test.rb index 99c66fda..b8c9788c 100644 --- a/test/settings_test.rb +++ b/test/settings_test.rb @@ -112,7 +112,7 @@ class SettingsTest < Test::Unit::TestCase end it 'is accessible from instances via #settings' do - assert_equal :foo, @base.new.settings.environment + assert_equal :foo, @base.new!.settings.environment end it 'is accessible from class via #settings' do diff --git a/test/sinatra_test.rb b/test/sinatra_test.rb index 39ea0f6b..a7fe1f37 100644 --- a/test/sinatra_test.rb +++ b/test/sinatra_test.rb @@ -12,6 +12,6 @@ class SinatraTest < Test::Unit::TestCase end it "responds to #template_cache" do - assert_kind_of Tilt::Cache, Sinatra::Base.new.template_cache + assert_kind_of Tilt::Cache, Sinatra::Base.new!.template_cache end end