diff options
author | James Tucker <jftucker@gmail.com> | 2011-08-21 16:06:28 -0700 |
---|---|---|
committer | Konstantin Haase <konstantin.mailinglists@googlemail.com> | 2011-09-07 10:26:39 -0700 |
commit | cfe6165bb6e80d7705a1f79cf5af88d02106ca8c (patch) | |
tree | 28efc70cad89206b246a3f7b966c72453c03b7c9 | |
parent | 90c4dcf9067938c36f466ecf7b9a93e1f52b960e (diff) | |
download | rack-cfe6165bb6e80d7705a1f79cf5af88d02106ca8c.tar.gz |
Fix for psych
-rw-r--r-- | test/spec_mock.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/spec_mock.rb b/test/spec_mock.rb index c8191a45..61fc56a5 100644 --- a/test/spec_mock.rb +++ b/test/spec_mock.rb @@ -175,7 +175,8 @@ describe Rack::MockRequest do env["QUERY_STRING"].should.equal "" env["PATH_INFO"].should.equal "/foo" env["CONTENT_TYPE"].should.equal "multipart/form-data; boundary=AaB03x" - env["mock.postdata"].length.should.equal 206 + # The gsub accounts for differences in YAMLs affect on the data. + env["mock.postdata"].gsub("\r", "").length.should.equal 206 end should "behave valid according to the Rack spec" do |