Permalink
Browse files

Skip strange 1.9.2 warning I'm getting on Travis CI.

  • Loading branch information...
1 parent bf8e5c9 commit eda62d765f800813b12ab759ebefa0e001756037 @myronmarston committed Oct 25, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 spec/capture_warnings.rb
View
@@ -31,6 +31,16 @@
end
end
+ # For some reason, I get a strange warning on 1.9.2 on Travis-CI but
+ # I can't repro locally:
+ # from /home/travis/builds/myronmarston/vcr/spec/monkey_pnet/http:
+ # warning: Content-Type did not set; using application/x-www-form-urlencoded
+ if RUBY_VERSION == '1.9.2' && ENV['CI']
+ vcr_warnings.reject! do |line|
+ line.include?('monkey_pnet')
+ end
+ end
+
if vcr_warnings.any?
puts
puts "-" * 30 + " VCR Warnings: " + "-" * 30

0 comments on commit eda62d7

Please sign in to comment.