Permalink
Browse files

still needs work to fix test on windows

  • Loading branch information...
1 parent 77b1006 commit 07d6ca90e114fcb5381dde10b4cd5773b5286350 @2potatocakes 2potatocakes committed Dec 20, 2011
Showing with 8 additions and 2 deletions.
  1. +4 −1 mini_magick.gemspec
  2. +4 −1 test/image_test.rb
View
@@ -16,5 +16,8 @@ Gem::Specification.new do |s|
s.files = Dir['README.rdoc', 'VERSION', 'MIT-LICENSE', 'Rakefile', 'lib/**/*']
s.test_files = Dir['test/**/*']
s.require_paths = ["lib"]
- s.add_runtime_dependency('subexec', ['~> 0.2.0'])
+ s.add_runtime_dependency('subexec', ['~> 0.2.1'])
+
+ s.add_development_dependency('rake')
+ s.add_development_dependency('test-unit')
end
View
@@ -231,7 +231,10 @@ def test_simple_composite
c.gravity "center"
end
#TODO - need to write test that works cross platform
- #This test will only work on Linux
+ #I thought the following would work but there is a 4 byte difference between the files.
+ #Not sure if it's caused from this test breaking for the right reason though..
+ #assert File.identical?(result.path, COMP_IMAGE_PATH)
+ #This following test will only work on Linux
assert `diff -s #{result.path} #{COMP_IMAGE_PATH}`.include?("identical") unless RUBY_PLATFORM =~ /mswin|mingw|cygwin/
end

0 comments on commit 07d6ca9

Please sign in to comment.