Last active
December 16, 2015 01:59
-
-
Save bhenderson/5358818 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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