Skip to content

Commit

Permalink
Stubba is included in Mocha already
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jul 11, 2008
1 parent feb0898 commit 7d5c447
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actionmailer/test/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def self.start(*args)

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

0 comments on commit 7d5c447

Please sign in to comment.