compat/sessions_test.rb in darkhelmet-sinatra-0.9.0.5 vs compat/sessions_test.rb in darkhelmet-sinatra-0.9.1

- old
+ new

@@ -19,10 +19,11 @@ assert !include?('Set-Cookie') end specify "should be able to store data accross requests" do set_option :sessions, true + set_option :environment, :not_test # necessary because sessions are disabled get '/foo' do session[:test] = true "asdf" end @@ -32,8 +33,10 @@ end get_it '/foo', :env => { :host => 'foo.sinatrarb.com' } assert ok? assert include?('Set-Cookie') + + set_option :environment, :test end end