Skip to content
Browse files

updating mocha version from '0.13.0' to '0.13.1'

  • Loading branch information...
1 parent c5e01bc commit d7a8f48c4a01ae9ea0739918b45b0285fe0bb43a @ksylvest ksylvest committed with mike-burns Dec 4, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −1 bourne.gemspec
  2. +6 −0 test/unit/mock_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.13.0') # follow instructions in mock.rb to update
+ s.add_dependency('mocha', '0.13.1') # follow instructions in mock.rb to update
s.add_development_dependency('rake')
end
View
6 test/unit/mock_test.rb
@@ -218,6 +218,12 @@ def test_should_respond_to_expected_method
assert_equal true, mock.respond_to?(:method1)
end
+ def test_should_respond_to_expected_method_as_string
+ mock = build_mock
+ mock.expects(:method1)
+ assert_equal true, mock.respond_to?('method1')
+ end
+
def test_should_not_respond_to_unexpected_method
mock = build_mock
assert_equal false, mock.respond_to?(:method1)

0 comments on commit d7a8f48

Please sign in to comment.
Something went wrong with that request. Please try again.