Permalink
Browse files

fix working on ruby19

  • Loading branch information...
niku committed Apr 24, 2012
1 parent b8e437c commit 5a2911a69bbbbafdcfbd297a0f7ecbbdd49d64e2
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/spec_helper.rb
View
@@ -49,7 +49,11 @@ def fixture_path(*name)
end
def fixture_value(*name)
- return File.read(fixture_path(*name))
+ if RUBY_VERSION =~ /^1\.8/
+ File.read(fixture_path(*name))
+ else
+ File.read(fixture_path(*name), :encoding => 'BINARY')
+ end
end
def write_fixture(name, value)

0 comments on commit 5a2911a

Please sign in to comment.