Permalink
Browse files

Fix response spec.

  • Loading branch information...
1 parent d9eba49 commit eacd61bbdb8c7d83300ab95cc3e978d7557a5eaa @dbalatero dbalatero committed Oct 18, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 spec/typhoeus/response_spec.rb
@@ -109,6 +109,9 @@
# HTTP version/status line should be identical
orig_header_lines.shift.should == stub_header_lines.shift
+ # "XSS" gets downcased, so we have to fix it here.
+ orig_header_lines.each { |line| line.sub!('XSS', 'Xss') }
+
# we can't count on the header order being identical since ruby hashes are not always ordered
orig_header_lines.should =~ stub_header_lines
end

0 comments on commit eacd61b

Please sign in to comment.