summary refs log tree commit
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-12-09 11:05:17 -0600
committerJoshua Peek <josh@joshpeek.com>2010-12-09 11:05:17 -0600
commitbff192e43593fd8eed6def7d0ff4a6416ac247b9 (patch)
tree90575f18d9ffdc9589320630d797cfcd261ee34a
parent85ca454e6143a3081d90e4546ccad602a4c3ad2e (diff)
downloadrack-bff192e43593fd8eed6def7d0ff4a6416ac247b9.tar.gz
Silence test warnings
-rw-r--r--test/spec_mock.rb2
-rw-r--r--test/spec_session_cookie.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/spec_mock.rb b/test/spec_mock.rb
index eaec655a..e008dac9 100644
--- a/test/spec_mock.rb
+++ b/test/spec_mock.rb
@@ -214,7 +214,7 @@ describe Rack::MockResponse do
     res.original_headers["Content-Type"].should.equal "text/yaml"
     res["Content-Type"].should.equal "text/yaml"
     res.content_type.should.equal "text/yaml"
-    res.content_length.should.be > 0
+    res.content_length.should.not.equal 0
     res.location.should.be.nil
   end
 
diff --git a/test/spec_session_cookie.rb b/test/spec_session_cookie.rb
index 8b40775a..e37141fd 100644
--- a/test/spec_session_cookie.rb
+++ b/test/spec_session_cookie.rb
@@ -87,8 +87,8 @@ describe Rack::Session::Cookie do
 
     app = Rack::Session::Cookie.new(session_id)
     res = Rack::MockRequest.new(app).get("/", "HTTP_COOKIE" => res["Set-Cookie"])
-    res.body.should.match /"session_id"=>/
-    res.body.should.match /"counter"=>1/
+    res.body.should.match(/"session_id"=>/)
+    res.body.should.match(/"counter"=>1/)
   end
 
   it "does not return a cookie if set to secure but not using ssl" do