From 2ca432a86623266c7f11a067a0dc87be6f509d6e Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Wed, 13 Nov 2013 16:40:11 +0000 Subject: Insert cookie stripping at correct point in middleware stack. --- spec/integration/cookie_stripping_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/integration/cookie_stripping_spec.rb (limited to 'spec/integration') diff --git a/spec/integration/cookie_stripping_spec.rb b/spec/integration/cookie_stripping_spec.rb new file mode 100644 index 000000000..897899fd5 --- /dev/null +++ b/spec/integration/cookie_stripping_spec.rb @@ -0,0 +1,12 @@ +require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') +require File.expand_path(File.dirname(__FILE__) + '/alaveteli_dsl') + +describe 'when making stripping cookies' do + + it 'should not set a cookie when no significant session data is set' do + get 'country_message' + response.headers['Set-Cookie'].should be_blank + end + +end + -- cgit v1.2.3