Skip to content

Commit

Permalink
Test requirement fix (closes #9276) [lazyatom]
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Sep 22, 2007
1 parent a5fde99 commit 6ccf503
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionmailer/test/abstract_unit.rb
Expand Up @@ -31,9 +31,9 @@ def self.start(*args)

# Wrap tests that use Mocha and skip if unavailable.
def uses_mocha(test_name)
require 'mocha'
gem 'mocha', ">=0.5"
require 'stubba'
yield
rescue LoadError
$stderr.puts "Skipping #{test_name} tests. `gem install mocha` and try again."
rescue Gem::LoadError
$stderr.puts "Skipping #{test_name} tests (Mocha >= 0.5 is required). `gem install mocha` and try again."
end

0 comments on commit 6ccf503

Please sign in to comment.