test/helpers_test.rb in sinatra-1.3.5 vs test/helpers_test.rb in sinatra-1.3.6
- old
+ new
@@ -432,10 +432,13 @@
assert !env['rack.session.options'].include?(:session_secret)
'ok'
end
end
- get '/'
+ # Silence warnings since Rack::Session::Cookie complains about the non-present session secret
+ silence_warnings do
+ get '/'
+ end
assert_body 'ok'
end
it 'accepts an options hash' do
mock_app do