about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/test_response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_response.rb b/test/test_response.rb
index 4659f32..8fb0832 100644
--- a/test/test_response.rb
+++ b/test/test_response.rb
@@ -62,7 +62,7 @@ class ResponseTest < Test::Unit::TestCase
     tmpf.close
 
     assert io.length > 0, "output didn't have data"
-    assert io.read =~ /#{contents}\Z/, "output doesn't end with file payload"
+    assert io.read[-contents.length..-1] == contents, "output doesn't end with file payload"
   end
 end