Skip to content

Commit

Permalink
Using mocha for mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
ymendel committed May 8, 2008
1 parent 91b87e0 commit 3f14ca4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -6,5 +6,18 @@
require 'spec'
end

# this is my favorite way to require ever
begin
require 'mocha'
rescue LoadError
require 'rubygems'
gem 'mocha'
require 'mocha'
end

Spec::Runner.configure do |config|
config.mock_with :mocha
end

$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'timely'

0 comments on commit 3f14ca4

Please sign in to comment.