summary refs log tree commit
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-01-03 12:36:04 -0600
committerJoshua Peek <josh@joshpeek.com>2010-01-03 12:36:04 -0600
commitbbe3f10aaa6a925f4bcc4d722bf08b12ac291518 (patch)
treeffdd080efc7210f0c737c9f751e1430b227d80de
parentc6805fb93da30e0056b38e0fa6015c3d1bca5876 (diff)
downloadrack-bbe3f10aaa6a925f4bcc4d722bf08b12ac291518.tar.gz
Remove brittle spec that relies on unstable marshal format
-rw-r--r--test/spec_rack_session_cookie.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/spec_rack_session_cookie.rb b/test/spec_rack_session_cookie.rb
index 3be88b43..fba3f83b 100644
--- a/test/spec_rack_session_cookie.rb
+++ b/test/spec_rack_session_cookie.rb
@@ -46,16 +46,7 @@ context "Rack::Session::Cookie" do
         get("/", :fatal => true)
     }.should.raise(Rack::MockRequest::FatalWarning)
   end
-  
-  specify "creates a new cookie with integrity hash" do
-    res = Rack::MockRequest.new(Rack::Session::Cookie.new(incrementor, :secret => 'test')).get("/")
-    if RUBY_VERSION < "1.9"
-      res["Set-Cookie"].should.match("rack.session=BAh7BiIMY291bnRlcmkG%0A--1439b4d37b9d4b04c603848382f712d6fcd31088")
-    else
-      res["Set-Cookie"].should.match("rack.session=BAh7BkkiDGNvdW50ZXIGOg1lbmNvZGluZyINVVMtQVNDSUlpBg%3D%3D%0A--d7a6637b94d2728194a96c18484e1f7ed9074a83")
-    end
-  end
-  
+
   specify "loads from a cookie wih integrity hash" do
     res = Rack::MockRequest.new(Rack::Session::Cookie.new(incrementor, :secret => 'test')).get("/")
     cookie = res["Set-Cookie"]