diff --git a/.travis.yml b/.travis.yml index 0d7fa84898..e6f4a23970 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,8 @@ rvm: - 1.8.7 - 1.9.2 - 1.9.3 - - jruby + - jruby-18mode + - jruby-19mode - rbx - ree script: "bundle exec rake test features" diff --git a/features/step_definitions/command_line_steps.rb b/features/step_definitions/command_line_steps.rb index af6eb782b2..799be3a459 100644 --- a/features/step_definitions/command_line_steps.rb +++ b/features/step_definitions/command_line_steps.rb @@ -256,7 +256,7 @@ Then /^the image ([^ ]+) has a size of (\d+)x(\d+)$/ do |file, width, height| # see http://snippets.dzone.com/posts/show/805 - IO.read(file)[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i] + open(file, "rb").read[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i] end Then /^I should see the following lines of output:$/ do |table| diff --git a/test/integrations/sprites_test.rb b/test/integrations/sprites_test.rb index 3284f99535..217682d699 100644 --- a/test/integrations/sprites_test.rb +++ b/test/integrations/sprites_test.rb @@ -34,7 +34,7 @@ def map_files(glob) end def image_size(file) - IO.read(map_location(file))[0x10..0x18].unpack('NN') + open(map_location(file), "rb").read[0x10..0x18].unpack('NN') end def image_md5(file)