Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Mocha 0.10.5 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn authored and Gabe Berke-Williams committed Mar 9, 2012
1 parent 5a39f66 commit 286d8f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -2,13 +2,13 @@ PATH
remote: .
specs:
bourne (1.1.1)
mocha (= 0.10.4)
mocha (= 0.10.5)

GEM
remote: http://rubygems.org/
specs:
metaclass (0.0.1)
mocha (0.10.4)
mocha (0.10.5)
metaclass (~> 0.0.1)
rake (0.9.2.2)

Expand Down
2 changes: 1 addition & 1 deletion bourne.gemspec
Expand Up @@ -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.10.4')
s.add_dependency('mocha', '= 0.10.5')

s.add_development_dependency('rake')
end
8 changes: 4 additions & 4 deletions test/unit/mock_test.rb
Expand Up @@ -20,7 +20,7 @@ def test_should_build_and_store_expectations
mock = build_mock
expectation = mock.expects(:method1)
assert_not_nil expectation
assert_equal [expectation], mock.expectations.to_a
assert_equal [expectation], mock.__expectations__.to_a
end

def test_should_not_stub_everything_by_default
Expand Down Expand Up @@ -67,7 +67,7 @@ def test_should_create_and_add_expectations
mock = build_mock
expectation1 = mock.expects(:method1)
expectation2 = mock.expects(:method2)
assert_equal [expectation1, expectation2].to_set, mock.expectations.to_set
assert_equal [expectation1, expectation2].to_set, mock.__expectations__.to_set
end

def test_should_pass_backtrace_into_expectation
Expand All @@ -88,7 +88,7 @@ def test_should_create_and_add_stubs
mock = build_mock
stub1 = mock.stubs(:method1)
stub2 = mock.stubs(:method2)
assert_equal [stub1, stub2].to_set, mock.expectations.to_set
assert_equal [stub1, stub2].to_set, mock.__expectations__.to_set
end

def test_should_invoke_expectation_and_return_result
Expand Down Expand Up @@ -325,7 +325,7 @@ def test_should_record_invocations
args = [1, 2]
mock = Mock.new(method)
expectation = FakeExpectation.new
mock.expectations.add expectation
mock.__expectations__.add expectation
mock.send(method, *args)
assert_equal args, expectation.args
end
Expand Down

0 comments on commit 286d8f9

Please sign in to comment.