This repository has been archived by the owner. It is now read-only.

update mocha dependency #19

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+8 −4
Split
View
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency('mocha', '0.12.7') # follow instructions in mock.rb to update
+ s.add_dependency('mocha', '0.13.0') # follow instructions in mock.rb to update
s.add_development_dependency('rake')
end
View
@@ -14,7 +14,7 @@
end
require 'test/unit'
-require 'mocha'
+require 'mocha/setup'
if defined?(MiniTest)
FailedAssertion = MiniTest::Assertion
@@ -2,7 +2,9 @@
require 'test_runner'
require 'bourne/api'
require 'bourne/mockery'
-require 'mocha/object'
+require 'mocha/object_methods'
+require 'mocha/module_methods'
+require 'mocha/class_methods'
class AssertReceivedTest < Test::Unit::TestCase
@@ -2,7 +2,9 @@
require 'test_runner'
require 'bourne/api'
require 'bourne/mockery'
-require 'mocha/object'
+require 'mocha/object_methods'
+require 'mocha/module_methods'
+require 'mocha/class_methods'
require 'matcher_helpers'
module HaveReceivedTestMethods