Skip to content

Commit

Permalink
removing mocha because there is a much easier way to run the test
Browse files Browse the repository at this point in the history
  • Loading branch information
HamptonMakes committed Jan 11, 2011
1 parent af2091b commit e605b34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion mini_magick.gemspec
Expand Up @@ -16,5 +16,4 @@ Gem::Specification.new do |s|
s.require_path = 'lib' s.require_path = 'lib'


s.add_runtime_dependency('subexec', ['~> 0.0.4']) s.add_runtime_dependency('subexec', ['~> 0.0.4'])
s.add_development_dependency('mocha', ['~> 0.9.9'])
end end
5 changes: 3 additions & 2 deletions test/image_test.rb
@@ -1,6 +1,5 @@
require 'rubygems' require 'rubygems'
require 'test/unit' require 'test/unit'
require 'mocha'
require 'pathname' require 'pathname'
require 'stringio' require 'stringio'
require File.expand_path('../../lib/mini_magick', __FILE__) require File.expand_path('../../lib/mini_magick', __FILE__)
Expand Down Expand Up @@ -268,7 +267,9 @@ def test_throw_format_error
# it raises an appropriate error # it raises an appropriate error
def test_throw_animation_copy_after_format_error def test_throw_animation_copy_after_format_error
image = Image.open(ANIMATION_PATH) image = Image.open(ANIMATION_PATH)
FileUtils.stubs(:copy_file).raises(Errno::ENOENT) def FileUtils.copy_file
raise Errno::ENOENT
end
assert_raises MiniMagick::Error do assert_raises MiniMagick::Error do
image.format('png') image.format('png')
end end
Expand Down

0 comments on commit e605b34

Please sign in to comment.