Skip to content

Commit

Permalink
Changed File.open() mode to fix failure in png_suite_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Nov 4, 2010
1 parent 48ba0d5 commit 8ca46b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/png_suite_spec.rb
Expand Up @@ -37,7 +37,7 @@

it "should decode #{File.basename(file)} (color mode: #{color_mode}, bit depth: #{bit_depth}) exactly the same as the reference image" do
decoded = ChunkyPNG::Canvas.from_file(file)
File.open(reference, 'rb:binary') { |f| decoded.to_rgba_stream.should == f.read }
File.open(reference, 'rb') { |f| decoded.to_rgba_stream.should == f.read }
end
end
end
Expand Down

0 comments on commit 8ca46b3

Please sign in to comment.