Skip to content

Commit

Permalink
Encoding fix for RC screenshot spec for Ruby 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jarib committed Oct 18, 2013
1 parent 8471693 commit 879fcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/client/api/screenshot_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
page.capture_screenshot tempfile

File.exists?(tempfile).should be_true
File.open(tempfile, "r") do |io|
File.open(tempfile, "rb") do |io|
magic = io.read(4)
magic.should == "\211PNG"
end
Expand Down

0 comments on commit 879fcfd

Please sign in to comment.