Skip to content

Instantly share code, notes, and snippets.

@bhenderson
Last active December 16, 2015 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhenderson/5358818 to your computer and use it in GitHub Desktop.
Save bhenderson/5358818 to your computer and use it in GitHub Desktop.
gem install image_science -v 1.2.3
gem install image_science -v 1.2.4
export INLINEDIR=/tmp/.ruby_inline
ruby -e "gem 'image_science', '1.2.3'; require './test_inline.rb'"
ruby -e "gem 'image_science', '1.2.4'; require './test_inline.rb'"
rm -rf /tmp/.ruby_inline
ruby -e "gem 'image_science', '1.2.4'; require './test_inline.rb'"
ruby -e "gem 'image_science', '1.2.3'; require './test_inline.rb'"
require 'minitest/autorun'
require 'image_science'
p ImageScience::VERSION
class TestNewInlineDir < MiniTest::Unit::TestCase
def test_orientation
data = File.new("test/portrait.jpg").binmode.read
ImageScience.with_image_from_memory data do |img|
assert_equal 50, img.height
assert_equal 38, img.width
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment