aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-13 16:40:11 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-13 16:40:11 +0000
commit2ca432a86623266c7f11a067a0dc87be6f509d6e (patch)
treed6bb1faa7325b010b2aab5caa8f372bca7b651b6 /spec/integration
parente70c9a5ca4cc2b739247658f895dba677390bcb4 (diff)
Insert cookie stripping at correct point in middleware stack.
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/cookie_stripping_spec.rb12
1 files changed, 12 insertions, 0 deletions
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
+