mocha 0.10.5 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING.rdoc +1 -1
- data/README.rdoc +6 -4
- data/RELEASE.rdoc +12 -0
- data/Rakefile +29 -60
- data/doc/Mocha.html +112 -0
- data/doc/Mocha/API.html +898 -0
- data/doc/Mocha/ClassMethods.html +246 -0
- data/doc/Mocha/Configuration.html +471 -0
- data/doc/Mocha/Expectation.html +2570 -0
- data/doc/Mocha/Mock.html +830 -0
- data/doc/Mocha/ObjectMethods.html +668 -0
- data/doc/Mocha/ParameterMatchers.html +2715 -0
- data/doc/Mocha/ParameterMatchers/AllOf.html +137 -0
- data/doc/Mocha/ParameterMatchers/AnyOf.html +137 -0
- data/doc/Mocha/ParameterMatchers/AnyParameters.html +136 -0
- data/doc/Mocha/ParameterMatchers/Anything.html +136 -0
- data/doc/Mocha/ParameterMatchers/Base.html +419 -0
- data/doc/Mocha/ParameterMatchers/Equals.html +137 -0
- data/doc/Mocha/ParameterMatchers/HasEntries.html +137 -0
- data/doc/Mocha/ParameterMatchers/HasEntry.html +137 -0
- data/doc/Mocha/ParameterMatchers/HasKey.html +137 -0
- data/doc/Mocha/ParameterMatchers/HasValue.html +137 -0
- data/doc/Mocha/ParameterMatchers/Includes.html +137 -0
- data/doc/Mocha/ParameterMatchers/InstanceOf.html +137 -0
- data/doc/Mocha/ParameterMatchers/IsA.html +136 -0
- data/doc/Mocha/ParameterMatchers/KindOf.html +137 -0
- data/doc/Mocha/ParameterMatchers/Not.html +137 -0
- data/doc/Mocha/ParameterMatchers/Optionally.html +136 -0
- data/doc/Mocha/ParameterMatchers/QueryStringMatches.html +136 -0
- data/doc/Mocha/ParameterMatchers/RegexpMatches.html +137 -0
- data/doc/Mocha/ParameterMatchers/RespondsWith.html +137 -0
- data/doc/Mocha/ParameterMatchers/YamlEquivalent.html +137 -0
- data/doc/Mocha/Sequence.html +133 -0
- data/doc/Mocha/StateMachine.html +510 -0
- data/doc/Mocha/StateMachine/State.html +125 -0
- data/doc/Mocha/StateMachine/StatePredicate.html +125 -0
- data/doc/Mocha/StubbingError.html +134 -0
- data/doc/Mocha/UnexpectedInvocation.html +124 -0
- data/doc/_index.html +481 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.COPYING.html +72 -0
- data/doc/file.MIT-LICENSE.html +86 -0
- data/doc/file.README.html +153 -0
- data/doc/file.RELEASE.html +933 -0
- data/doc/file.misc.html +108 -0
- data/doc/file.mocha.html +90 -0
- data/doc/file.stubba.html +129 -0
- data/doc/file_list.html +67 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +153 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +510 -0
- data/doc/top-level-namespace.html +105 -0
- data/lib/mocha/any_instance_method.rb +16 -11
- data/lib/mocha/api.rb +120 -106
- data/lib/mocha/argument_iterator.rb +6 -6
- data/lib/mocha/backtrace_filter.rb +1 -1
- data/lib/mocha/cardinality.rb +21 -21
- data/lib/mocha/central.rb +8 -8
- data/lib/mocha/change_state_side_effect.rb +5 -5
- data/lib/mocha/class_method.rb +14 -19
- data/lib/mocha/configuration.rb +47 -37
- data/lib/mocha/deprecation.rb +8 -8
- data/lib/mocha/exception_raiser.rb +7 -7
- data/lib/mocha/expectation.rb +173 -77
- data/lib/mocha/expectation_error.rb +2 -2
- data/lib/mocha/expectation_list.rb +11 -11
- data/lib/mocha/in_state_ordering_constraint.rb +5 -5
- data/lib/mocha/inspect.rb +8 -8
- data/lib/mocha/instance_method.rb +1 -17
- data/lib/mocha/integration.rb +9 -9
- data/lib/mocha/integration/mini_test/assertion_counter.rb +9 -9
- data/lib/mocha/integration/mini_test/exception_translation.rb +6 -6
- data/lib/mocha/integration/mini_test/version_13.rb +6 -6
- data/lib/mocha/integration/mini_test/version_140.rb +6 -6
- data/lib/mocha/integration/mini_test/version_141.rb +6 -6
- data/lib/mocha/integration/mini_test/version_142_to_172.rb +7 -7
- data/lib/mocha/integration/mini_test/version_200.rb +7 -7
- data/lib/mocha/integration/test_unit/assertion_counter.rb +10 -10
- data/lib/mocha/integration/test_unit/gem_version_200.rb +6 -6
- data/lib/mocha/integration/test_unit/gem_version_201_to_202.rb +6 -6
- data/lib/mocha/integration/test_unit/ruby_version_185_and_below.rb +6 -6
- data/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb +6 -6
- data/lib/mocha/is_a.rb +1 -1
- data/lib/mocha/logger.rb +6 -6
- data/lib/mocha/method_matcher.rb +7 -7
- data/lib/mocha/mock.rb +85 -48
- data/lib/mocha/mockery.rb +47 -33
- data/lib/mocha/module_method.rb +2 -2
- data/lib/mocha/multiple_yields.rb +9 -9
- data/lib/mocha/names.rb +18 -18
- data/lib/mocha/no_yields.rb +7 -7
- data/lib/mocha/object.rb +104 -75
- data/lib/mocha/parameter_matchers.rb +3 -3
- data/lib/mocha/parameter_matchers/all_of.rb +22 -12
- data/lib/mocha/parameter_matchers/any_of.rb +23 -12
- data/lib/mocha/parameter_matchers/any_parameters.rb +15 -8
- data/lib/mocha/parameter_matchers/anything.rb +20 -11
- data/lib/mocha/parameter_matchers/base.rb +35 -27
- data/lib/mocha/parameter_matchers/equals.rb +23 -12
- data/lib/mocha/parameter_matchers/has_entries.rb +22 -12
- data/lib/mocha/parameter_matchers/has_entry.rb +31 -13
- data/lib/mocha/parameter_matchers/has_key.rb +21 -11
- data/lib/mocha/parameter_matchers/has_value.rb +21 -11
- data/lib/mocha/parameter_matchers/includes.rb +15 -5
- data/lib/mocha/parameter_matchers/instance_of.rb +23 -12
- data/lib/mocha/parameter_matchers/is_a.rb +23 -12
- data/lib/mocha/parameter_matchers/kind_of.rb +23 -12
- data/lib/mocha/parameter_matchers/not.rb +22 -12
- data/lib/mocha/parameter_matchers/object.rb +5 -3
- data/lib/mocha/parameter_matchers/optionally.rb +24 -12
- data/lib/mocha/parameter_matchers/query_string.rb +14 -3
- data/lib/mocha/parameter_matchers/regexp_matches.rb +21 -11
- data/lib/mocha/parameter_matchers/responds_with.rb +17 -6
- data/lib/mocha/parameter_matchers/yaml_equivalent.rb +16 -6
- data/lib/mocha/parameters_matcher.rb +8 -8
- data/lib/mocha/pretty_parameters.rb +7 -7
- data/lib/mocha/return_values.rb +11 -11
- data/lib/mocha/sequence.rb +23 -14
- data/lib/mocha/single_return_value.rb +7 -7
- data/lib/mocha/single_yield.rb +9 -9
- data/lib/mocha/standalone.rb +1 -1
- data/lib/mocha/state_machine.rb +61 -46
- data/lib/mocha/stubbing_error.rb +8 -5
- data/lib/mocha/thrower.rb +2 -2
- data/lib/mocha/unexpected_invocation.rb +9 -6
- data/lib/mocha/version.rb +1 -1
- data/lib/mocha/yield_parameters.rb +10 -10
- data/lib/mocha_standalone.rb +1 -1
- data/mocha.gemspec +4 -7
- data/test/acceptance/acceptance_test_helper.rb +10 -10
- data/test/acceptance/api_test.rb +20 -20
- data/test/acceptance/bug_18914_test.rb +12 -12
- data/test/acceptance/bug_21465_test.rb +6 -6
- data/test/acceptance/bug_21563_test.rb +5 -5
- data/test/acceptance/exception_rescue_test.rb +1 -1
- data/test/acceptance/expected_invocation_count_test.rb +17 -17
- data/test/acceptance/failure_messages_test.rb +13 -13
- data/test/acceptance/minitest_test.rb +39 -39
- data/test/acceptance/mocha_example_test.rb +26 -26
- data/test/acceptance/mocha_test_result_test.rb +13 -13
- data/test/acceptance/mock_test.rb +5 -5
- data/test/acceptance/mock_with_initializer_block_test.rb +5 -5
- data/test/acceptance/mocked_methods_dispatch_test.rb +4 -4
- data/test/acceptance/multiple_expectations_failure_message_test.rb +2 -2
- data/test/acceptance/optional_parameters_test.rb +5 -5
- data/test/acceptance/parameter_matcher_test.rb +18 -18
- data/test/acceptance/partial_mocks_test.rb +9 -9
- data/test/acceptance/raise_exception_test.rb +1 -1
- data/test/acceptance/return_value_test.rb +5 -5
- data/test/acceptance/sequence_test.rb +29 -29
- data/test/acceptance/states_test.rb +17 -17
- data/test/acceptance/stub_any_instance_method_test.rb +13 -13
- data/test/acceptance/stub_class_method_defined_on_active_record_association_proxy_test.rb +7 -7
- data/test/acceptance/stub_everything_test.rb +5 -5
- data/test/acceptance/stub_instance_method_defined_on_singleton_class_test.rb +1 -1
- data/test/acceptance/stub_module_method_test.rb +17 -17
- data/test/acceptance/stub_test.rb +5 -5
- data/test/acceptance/stubba_example_test.rb +24 -24
- data/test/acceptance/stubba_test_result_test.rb +11 -11
- data/test/acceptance/stubbing_error_backtrace_test.rb +6 -6
- data/test/acceptance/stubbing_frozen_object_test.rb +88 -0
- data/test/acceptance/stubbing_method_unnecessarily_test.rb +9 -9
- data/test/acceptance/stubbing_nil_test.rb +59 -0
- data/test/acceptance/stubbing_non_existent_any_instance_method_test.rb +13 -13
- data/test/acceptance/stubbing_non_existent_class_method_test.rb +15 -15
- data/test/acceptance/stubbing_non_existent_instance_method_test.rb +14 -14
- data/test/acceptance/stubbing_non_public_any_instance_method_test.rb +13 -13
- data/test/acceptance/stubbing_non_public_class_method_test.rb +12 -12
- data/test/acceptance/stubbing_non_public_instance_method_test.rb +12 -12
- data/test/acceptance/stubbing_on_non_mock_object_test.rb +9 -9
- data/test/acceptance/stubbing_same_class_method_on_parent_and_child_classes_test.rb +35 -0
- data/test/acceptance/throw_test.rb +1 -1
- data/test/deprecation_disabler.rb +1 -1
- data/test/execution_point.rb +7 -7
- data/test/method_definer.rb +1 -1
- data/test/mini_test_result.rb +21 -21
- data/test/simple_counter.rb +5 -5
- data/test/test_helper.rb +1 -1
- data/test/test_runner.rb +22 -24
- data/test/test_unit_result.rb +20 -0
- data/test/unit/any_instance_method_test.rb +28 -32
- data/test/unit/array_inspect_test.rb +3 -3
- data/test/unit/backtrace_filter_test.rb +3 -3
- data/test/unit/cardinality_test.rb +12 -12
- data/test/unit/central_test.rb +18 -18
- data/test/unit/change_state_side_effect_test.rb +12 -12
- data/test/unit/class_method_test.rb +33 -91
- data/test/unit/date_time_inspect_test.rb +4 -4
- data/test/unit/exception_raiser_test.rb +5 -5
- data/test/unit/expectation_list_test.rb +7 -7
- data/test/unit/expectation_test.rb +66 -66
- data/test/unit/hash_inspect_test.rb +4 -4
- data/test/unit/in_state_ordering_constraint_test.rb +13 -13
- data/test/unit/method_matcher_test.rb +3 -3
- data/test/unit/mock_test.rb +40 -40
- data/test/unit/mockery_test.rb +25 -25
- data/test/unit/multiple_yields_test.rb +2 -2
- data/test/unit/no_yields_test.rb +2 -2
- data/test/unit/object_inspect_test.rb +4 -4
- data/test/unit/object_test.rb +15 -15
- data/test/unit/parameter_matchers/all_of_test.rb +6 -6
- data/test/unit/parameter_matchers/any_of_test.rb +6 -6
- data/test/unit/parameter_matchers/anything_test.rb +5 -5
- data/test/unit/parameter_matchers/has_entries_test.rb +10 -10
- data/test/unit/parameter_matchers/has_entry_test.rb +13 -13
- data/test/unit/parameter_matchers/has_key_test.rb +11 -11
- data/test/unit/parameter_matchers/has_value_test.rb +12 -12
- data/test/unit/parameter_matchers/includes_test.rb +4 -4
- data/test/unit/parameter_matchers/not_test.rb +6 -6
- data/test/unit/parameter_matchers/regexp_matches_test.rb +9 -9
- data/test/unit/parameter_matchers/responds_with_test.rb +6 -6
- data/test/unit/parameter_matchers/stub_matcher.rb +4 -4
- data/test/unit/parameter_matchers/yaml_equivalent_test.rb +6 -6
- data/test/unit/parameters_matcher_test.rb +16 -16
- data/test/unit/return_values_test.rb +5 -5
- data/test/unit/sequence_test.rb +10 -10
- data/test/unit/single_return_value_test.rb +3 -3
- data/test/unit/single_yield_test.rb +2 -2
- data/test/unit/state_machine_test.rb +19 -19
- data/test/unit/string_inspect_test.rb +2 -2
- data/test/unit/thrower_test.rb +1 -1
- data/test/unit/yield_parameters_test.rb +11 -11
- metadata +113 -101
@@ -2,10 +2,10 @@ require File.expand_path('../../test_helper', __FILE__)
|
|
2
2
|
require 'mocha/inspect'
|
3
3
|
|
4
4
|
class StringInspectTest < Test::Unit::TestCase
|
5
|
-
|
5
|
+
|
6
6
|
def test_should_replace_escaped_quotes_with_single_quote
|
7
7
|
string = "my_string"
|
8
8
|
assert_equal "'my_string'", string.mocha_inspect
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
end
|
data/test/unit/thrower_test.rb
CHANGED
@@ -6,14 +6,14 @@ require 'mocha/single_yield'
|
|
6
6
|
require 'mocha/multiple_yields'
|
7
7
|
|
8
8
|
class YieldParametersTest < Test::Unit::TestCase
|
9
|
-
|
9
|
+
|
10
10
|
include Mocha
|
11
|
-
|
11
|
+
|
12
12
|
def test_should_return_null_yield_parameter_group_by_default
|
13
13
|
yield_parameters = YieldParameters.new
|
14
14
|
assert yield_parameters.next_invocation.is_a?(NoYields)
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def test_should_return_single_yield_parameter_group
|
18
18
|
yield_parameters = YieldParameters.new
|
19
19
|
yield_parameters.add(1, 2, 3)
|
@@ -21,7 +21,7 @@ class YieldParametersTest < Test::Unit::TestCase
|
|
21
21
|
assert parameter_group.is_a?(SingleYield)
|
22
22
|
assert_equal [1, 2, 3], parameter_group.parameters
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def test_should_keep_returning_single_yield_parameter_group
|
26
26
|
yield_parameters = YieldParameters.new
|
27
27
|
yield_parameters.add(1, 2, 3)
|
@@ -33,7 +33,7 @@ class YieldParametersTest < Test::Unit::TestCase
|
|
33
33
|
assert parameter_group.is_a?(SingleYield)
|
34
34
|
assert_equal [1, 2, 3], parameter_group.parameters
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
def test_should_return_consecutive_single_yield_parameter_groups
|
38
38
|
yield_parameters = YieldParameters.new
|
39
39
|
yield_parameters.add(1, 2, 3)
|
@@ -45,7 +45,7 @@ class YieldParametersTest < Test::Unit::TestCase
|
|
45
45
|
assert parameter_group.is_a?(SingleYield)
|
46
46
|
assert_equal [4, 5], parameter_group.parameters
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
def test_should_return_multiple_yield_parameter_group
|
50
50
|
yield_parameters = YieldParameters.new
|
51
51
|
yield_parameters.multiple_add([1, 2, 3], [4, 5])
|
@@ -53,7 +53,7 @@ class YieldParametersTest < Test::Unit::TestCase
|
|
53
53
|
assert parameter_group.is_a?(MultipleYields)
|
54
54
|
assert_equal [[1, 2, 3], [4, 5]], parameter_group.parameter_groups
|
55
55
|
end
|
56
|
-
|
56
|
+
|
57
57
|
def test_should_keep_returning_multiple_yield_parameter_group
|
58
58
|
yield_parameters = YieldParameters.new
|
59
59
|
yield_parameters.multiple_add([1, 2, 3], [4, 5])
|
@@ -65,7 +65,7 @@ class YieldParametersTest < Test::Unit::TestCase
|
|
65
65
|
assert parameter_group.is_a?(MultipleYields)
|
66
66
|
assert_equal [[1, 2, 3], [4, 5]], parameter_group.parameter_groups
|
67
67
|
end
|
68
|
-
|
68
|
+
|
69
69
|
def test_should_return_consecutive_multiple_yield_parameter_groups
|
70
70
|
yield_parameters = YieldParameters.new
|
71
71
|
yield_parameters.multiple_add([1, 2, 3], [4, 5])
|
@@ -77,7 +77,7 @@ class YieldParametersTest < Test::Unit::TestCase
|
|
77
77
|
assert parameter_group.is_a?(MultipleYields)
|
78
78
|
assert_equal [[6, 7], [8, 9, 0]], parameter_group.parameter_groups
|
79
79
|
end
|
80
|
-
|
80
|
+
|
81
81
|
def test_should_return_consecutive_single_and_multiple_yield_parameter_groups
|
82
82
|
yield_parameters = YieldParameters.new
|
83
83
|
yield_parameters.add(1, 2, 3)
|
@@ -89,5 +89,5 @@ class YieldParametersTest < Test::Unit::TestCase
|
|
89
89
|
assert parameter_group.is_a?(MultipleYields)
|
90
90
|
assert_equal [[4, 5, 6], [7, 8]], parameter_group.parameter_groups
|
91
91
|
end
|
92
|
-
|
93
|
-
end
|
92
|
+
|
93
|
+
end
|
metadata
CHANGED
@@ -1,109 +1,69 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mocha
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.11.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 10
|
9
|
-
- 5
|
10
|
-
version: 0.10.5
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- James Mead
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2012-04-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: metaclass
|
16
|
+
requirement: &70343855815280 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 29
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 0
|
32
|
-
- 1
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 0.0.1
|
34
22
|
type: :runtime
|
35
|
-
name: metaclass
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: *70343855815280
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &70343855813960 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
48
33
|
type: :development
|
49
|
-
name: rake
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
34
|
prerelease: false
|
53
|
-
|
35
|
+
version_requirements: *70343855813960
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: introspection
|
38
|
+
requirement: &70343855813500 !ruby/object:Gem::Requirement
|
54
39
|
none: false
|
55
|
-
requirements:
|
40
|
+
requirements:
|
56
41
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
hash: 29
|
59
|
-
segments:
|
60
|
-
- 0
|
61
|
-
- 0
|
62
|
-
- 1
|
42
|
+
- !ruby/object:Gem::Version
|
63
43
|
version: 0.0.1
|
64
44
|
type: :development
|
65
|
-
name: introspection
|
66
|
-
version_requirements: *id003
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
45
|
prerelease: false
|
69
|
-
|
46
|
+
version_requirements: *70343855813500
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: yard
|
49
|
+
requirement: &70343855813120 !ruby/object:Gem::Requirement
|
70
50
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 3
|
77
|
-
- 1
|
78
|
-
version: "3.1"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
79
55
|
type: :development
|
80
|
-
name: rdoc
|
81
|
-
version_requirements: *id004
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
56
|
prerelease: false
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
hash: 9
|
90
|
-
segments:
|
91
|
-
- 0
|
92
|
-
- 1
|
93
|
-
version: "0.1"
|
94
|
-
type: :development
|
95
|
-
name: coderay
|
96
|
-
version_requirements: *id005
|
97
|
-
description: Mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes.
|
57
|
+
version_requirements: *70343855813120
|
58
|
+
description: Mocking and stubbing library with JMock/SchMock syntax, which allows
|
59
|
+
mocking and stubbing of methods on real (non-mock) classes.
|
98
60
|
email: mocha-developer@googlegroups.com
|
99
61
|
executables: []
|
100
|
-
|
101
62
|
extensions: []
|
102
|
-
|
103
|
-
extra_rdoc_files:
|
63
|
+
extra_rdoc_files:
|
104
64
|
- README.rdoc
|
105
65
|
- COPYING.rdoc
|
106
|
-
files:
|
66
|
+
files:
|
107
67
|
- .gemtest
|
108
68
|
- COPYING.rdoc
|
109
69
|
- Gemfile
|
@@ -111,6 +71,60 @@ files:
|
|
111
71
|
- README.rdoc
|
112
72
|
- RELEASE.rdoc
|
113
73
|
- Rakefile
|
74
|
+
- doc/Mocha.html
|
75
|
+
- doc/Mocha/API.html
|
76
|
+
- doc/Mocha/ClassMethods.html
|
77
|
+
- doc/Mocha/Configuration.html
|
78
|
+
- doc/Mocha/Expectation.html
|
79
|
+
- doc/Mocha/Mock.html
|
80
|
+
- doc/Mocha/ObjectMethods.html
|
81
|
+
- doc/Mocha/ParameterMatchers.html
|
82
|
+
- doc/Mocha/ParameterMatchers/AllOf.html
|
83
|
+
- doc/Mocha/ParameterMatchers/AnyOf.html
|
84
|
+
- doc/Mocha/ParameterMatchers/AnyParameters.html
|
85
|
+
- doc/Mocha/ParameterMatchers/Anything.html
|
86
|
+
- doc/Mocha/ParameterMatchers/Base.html
|
87
|
+
- doc/Mocha/ParameterMatchers/Equals.html
|
88
|
+
- doc/Mocha/ParameterMatchers/HasEntries.html
|
89
|
+
- doc/Mocha/ParameterMatchers/HasEntry.html
|
90
|
+
- doc/Mocha/ParameterMatchers/HasKey.html
|
91
|
+
- doc/Mocha/ParameterMatchers/HasValue.html
|
92
|
+
- doc/Mocha/ParameterMatchers/Includes.html
|
93
|
+
- doc/Mocha/ParameterMatchers/InstanceOf.html
|
94
|
+
- doc/Mocha/ParameterMatchers/IsA.html
|
95
|
+
- doc/Mocha/ParameterMatchers/KindOf.html
|
96
|
+
- doc/Mocha/ParameterMatchers/Not.html
|
97
|
+
- doc/Mocha/ParameterMatchers/Optionally.html
|
98
|
+
- doc/Mocha/ParameterMatchers/QueryStringMatches.html
|
99
|
+
- doc/Mocha/ParameterMatchers/RegexpMatches.html
|
100
|
+
- doc/Mocha/ParameterMatchers/RespondsWith.html
|
101
|
+
- doc/Mocha/ParameterMatchers/YamlEquivalent.html
|
102
|
+
- doc/Mocha/Sequence.html
|
103
|
+
- doc/Mocha/StateMachine.html
|
104
|
+
- doc/Mocha/StateMachine/State.html
|
105
|
+
- doc/Mocha/StateMachine/StatePredicate.html
|
106
|
+
- doc/Mocha/StubbingError.html
|
107
|
+
- doc/Mocha/UnexpectedInvocation.html
|
108
|
+
- doc/_index.html
|
109
|
+
- doc/class_list.html
|
110
|
+
- doc/css/common.css
|
111
|
+
- doc/css/full_list.css
|
112
|
+
- doc/css/style.css
|
113
|
+
- doc/file.COPYING.html
|
114
|
+
- doc/file.MIT-LICENSE.html
|
115
|
+
- doc/file.README.html
|
116
|
+
- doc/file.RELEASE.html
|
117
|
+
- doc/file.misc.html
|
118
|
+
- doc/file.mocha.html
|
119
|
+
- doc/file.stubba.html
|
120
|
+
- doc/file_list.html
|
121
|
+
- doc/frames.html
|
122
|
+
- doc/index.html
|
123
|
+
- doc/js/app.js
|
124
|
+
- doc/js/full_list.js
|
125
|
+
- doc/js/jquery.js
|
126
|
+
- doc/method_list.html
|
127
|
+
- doc/top-level-namespace.html
|
114
128
|
- examples/misc.rb
|
115
129
|
- examples/mocha.rb
|
116
130
|
- examples/stubba.rb
|
@@ -258,7 +272,9 @@ files:
|
|
258
272
|
- test/acceptance/stubba_test.rb
|
259
273
|
- test/acceptance/stubba_test_result_test.rb
|
260
274
|
- test/acceptance/stubbing_error_backtrace_test.rb
|
275
|
+
- test/acceptance/stubbing_frozen_object_test.rb
|
261
276
|
- test/acceptance/stubbing_method_unnecessarily_test.rb
|
277
|
+
- test/acceptance/stubbing_nil_test.rb
|
262
278
|
- test/acceptance/stubbing_non_existent_any_instance_method_test.rb
|
263
279
|
- test/acceptance/stubbing_non_existent_class_method_test.rb
|
264
280
|
- test/acceptance/stubbing_non_existent_instance_method_test.rb
|
@@ -266,6 +282,7 @@ files:
|
|
266
282
|
- test/acceptance/stubbing_non_public_class_method_test.rb
|
267
283
|
- test/acceptance/stubbing_non_public_instance_method_test.rb
|
268
284
|
- test/acceptance/stubbing_on_non_mock_object_test.rb
|
285
|
+
- test/acceptance/stubbing_same_class_method_on_parent_and_child_classes_test.rb
|
269
286
|
- test/acceptance/throw_test.rb
|
270
287
|
- test/acceptance/unstubbing_test.rb
|
271
288
|
- test/deprecation_disabler.rb
|
@@ -275,6 +292,7 @@ files:
|
|
275
292
|
- test/simple_counter.rb
|
276
293
|
- test/test_helper.rb
|
277
294
|
- test/test_runner.rb
|
295
|
+
- test/test_unit_result.rb
|
278
296
|
- test/unit/any_instance_method_test.rb
|
279
297
|
- test/unit/array_inspect_test.rb
|
280
298
|
- test/unit/backtrace_filter_test.rb
|
@@ -322,43 +340,37 @@ files:
|
|
322
340
|
- test/unit/string_inspect_test.rb
|
323
341
|
- test/unit/thrower_test.rb
|
324
342
|
- test/unit/yield_parameters_test.rb
|
325
|
-
|
326
|
-
homepage: http://mocha.rubyforge.org
|
343
|
+
homepage: http://floehopper.github.com/mocha/
|
327
344
|
licenses: []
|
328
|
-
|
329
345
|
post_install_message:
|
330
|
-
rdoc_options:
|
346
|
+
rdoc_options:
|
331
347
|
- --title
|
332
348
|
- Mocha
|
333
349
|
- --main
|
334
350
|
- README.rdoc
|
335
351
|
- --line-numbers
|
336
|
-
require_paths:
|
352
|
+
require_paths:
|
337
353
|
- lib
|
338
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
354
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
339
355
|
none: false
|
340
|
-
requirements:
|
341
|
-
- -
|
342
|
-
- !ruby/object:Gem::Version
|
343
|
-
|
344
|
-
segments:
|
356
|
+
requirements:
|
357
|
+
- - ! '>='
|
358
|
+
- !ruby/object:Gem::Version
|
359
|
+
version: '0'
|
360
|
+
segments:
|
345
361
|
- 0
|
346
|
-
|
347
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
362
|
+
hash: 1290928967104068171
|
363
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
348
364
|
none: false
|
349
|
-
requirements:
|
350
|
-
- -
|
351
|
-
- !ruby/object:Gem::Version
|
352
|
-
|
353
|
-
segments:
|
354
|
-
- 0
|
355
|
-
version: "0"
|
365
|
+
requirements:
|
366
|
+
- - ! '>='
|
367
|
+
- !ruby/object:Gem::Version
|
368
|
+
version: '0'
|
356
369
|
requirements: []
|
357
|
-
|
358
370
|
rubyforge_project: mocha
|
359
|
-
rubygems_version: 1.
|
371
|
+
rubygems_version: 1.8.11
|
360
372
|
signing_key:
|
361
373
|
specification_version: 3
|
362
374
|
summary: Mocking and stubbing library
|
363
375
|
test_files: []
|
364
|
-
|
376
|
+
has_rdoc:
|