Permalink
Browse files

update mocha dependency

  • Loading branch information...
1 parent 99c62b8 commit a23f6dd7498d5a1243e0f168f558af2d274bd2f5 Francesco Rodriguez committed Nov 18, 2012
Showing with 8 additions and 4 deletions.
  1. +1 −1 bourne.gemspec
  2. +1 −1 test/test_helper.rb
  3. +3 −1 test/unit/assert_received_test.rb
  4. +3 −1 test/unit/have_received_test.rb
View
2 bourne.gemspec
@@ -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
2 test/test_helper.rb
@@ -14,7 +14,7 @@
end
require 'test/unit'
-require 'mocha'
+require 'mocha/setup'
if defined?(MiniTest)
FailedAssertion = MiniTest::Assertion
View
4 test/unit/assert_received_test.rb
@@ -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
View
4 test/unit/have_received_test.rb
@@ -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

0 comments on commit a23f6dd

Please sign in to comment.