Permalink
Browse files

change to use different parameter by RUBY_VERSION

  • Loading branch information...
1 parent 403ecce commit cd2dc86397613bb3043218f255aa70225d699323 @niku committed Apr 16, 2012
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 cd2dc86

Please sign in to comment.