diff options
-rw-r--r-- | test/test_response.rb | 2 |
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 |