Permalink
Browse files

removing mocha because there is a much easier way to run the test

  • Loading branch information...
hcatlin committed Jan 11, 2011
1 parent af2091b commit e605b34f113c9eb952b607796cdb2127a921770c
Showing with 3 additions and 3 deletions.
  1. +0 −1 mini_magick.gemspec
  2. +3 −2 test/image_test.rb
View
@@ -16,5 +16,4 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.add_runtime_dependency('subexec', ['~> 0.0.4'])
- s.add_development_dependency('mocha', ['~> 0.9.9'])
end
View
@@ -1,6 +1,5 @@
require 'rubygems'
require 'test/unit'
-require 'mocha'
require 'pathname'
require 'stringio'
require File.expand_path('../../lib/mini_magick', __FILE__)
@@ -268,7 +267,9 @@ def test_throw_format_error
# it raises an appropriate error
def test_throw_animation_copy_after_format_error
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
image.format('png')
end

0 comments on commit e605b34

Please sign in to comment.