flexmock 0.9.0 → 1.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +325 -177
- data/Rakefile +22 -8
- data/TAGS +772 -669
- data/doc/releases/flexmock-1.0.0.rdoc +128 -0
- data/lib/flexmock.rb +1 -1
- data/lib/flexmock/argument_matchers.rb +16 -3
- data/lib/flexmock/argument_matching.rb +33 -0
- data/lib/flexmock/argument_types.rb +5 -1
- data/lib/flexmock/base.rb +1 -1
- data/lib/flexmock/composite.rb +3 -3
- data/lib/flexmock/core.rb +32 -2
- data/lib/flexmock/core_class_methods.rb +1 -1
- data/lib/flexmock/default_framework_adapter.rb +1 -1
- data/lib/flexmock/deprecated_methods.rb +1 -1
- data/lib/flexmock/errors.rb +1 -1
- data/lib/flexmock/expectation.rb +15 -13
- data/lib/flexmock/expectation_director.rb +1 -1
- data/lib/flexmock/explicit_needed.rb +39 -0
- data/lib/flexmock/mock_container.rb +8 -2
- data/lib/flexmock/noop.rb +1 -1
- data/lib/flexmock/ordering.rb +1 -1
- data/lib/flexmock/partial_mock.rb +12 -2
- data/lib/flexmock/rails.rb +1 -1
- data/lib/flexmock/recorder.rb +1 -1
- data/lib/flexmock/rspec.rb +5 -1
- data/lib/flexmock/rspec_spy_matcher.rb +74 -0
- data/lib/flexmock/spy_describers.rb +60 -0
- data/lib/flexmock/test_unit.rb +1 -1
- data/lib/flexmock/test_unit_assert_spy_called.rb +34 -0
- data/lib/flexmock/test_unit_integration.rb +3 -1
- data/lib/flexmock/undefined.rb +1 -1
- data/lib/flexmock/validators.rb +1 -1
- data/lib/flexmock/version.rb +4 -2
- data/test/assert_spy_called_test.rb +89 -0
- data/test/container_methods_test.rb +1 -1
- data/test/default_framework_adapter_test.rb +1 -1
- data/test/deprecated_methods_test.rb +1 -1
- data/test/examples_from_readme_test.rb +1 -1
- data/test/extended_should_receive_test.rb +1 -1
- data/test/naming_test.rb +1 -2
- data/test/new_instances_test.rb +1 -3
- data/test/partial_mock_test.rb +7 -1
- data/test/record_mode_test.rb +1 -1
- data/test/rspec_integration/integration_spec.rb +11 -3
- data/test/rspec_integration/spy_example_spec.rb +141 -0
- data/test/samples_test.rb +1 -1
- data/test/should_ignore_missing_test.rb +6 -2
- data/test/should_receive_test.rb +31 -2
- data/test/spys_test.rb +148 -0
- data/test/test_unit_integration/auto_test_unit_test.rb +1 -1
- data/test/tu_integration_test.rb +1 -1
- data/test/undefined_test.rb +1 -1
- metadata +16 -8
data/test/tu_integration_test.rb
CHANGED
data/test/undefined_test.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.
|
4
|
+
prerelease: 6
|
5
|
+
version: 1.0.0.beta.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jim Weirich
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
14
|
-
default_executable:
|
13
|
+
date: 2012-08-21 00:00:00 Z
|
15
14
|
dependencies: []
|
16
15
|
|
17
16
|
description: "\n FlexMock is a extremely simple mock object class compatible\n with the Test::Unit framework. Although the FlexMock's\n interface is simple, it is very flexible.\n "
|
@@ -43,12 +42,14 @@ extra_rdoc_files:
|
|
43
42
|
- doc/releases/flexmock-0.8.4.rdoc
|
44
43
|
- doc/releases/flexmock-0.8.5.rdoc
|
45
44
|
- doc/releases/flexmock-0.9.0.rdoc
|
45
|
+
- doc/releases/flexmock-1.0.0.rdoc
|
46
46
|
files:
|
47
47
|
- CHANGES
|
48
48
|
- Rakefile
|
49
49
|
- README.rdoc
|
50
50
|
- TAGS
|
51
51
|
- lib/flexmock/argument_matchers.rb
|
52
|
+
- lib/flexmock/argument_matching.rb
|
52
53
|
- lib/flexmock/argument_types.rb
|
53
54
|
- lib/flexmock/base.rb
|
54
55
|
- lib/flexmock/composite.rb
|
@@ -59,6 +60,7 @@ files:
|
|
59
60
|
- lib/flexmock/errors.rb
|
60
61
|
- lib/flexmock/expectation.rb
|
61
62
|
- lib/flexmock/expectation_director.rb
|
63
|
+
- lib/flexmock/explicit_needed.rb
|
62
64
|
- lib/flexmock/mock_container.rb
|
63
65
|
- lib/flexmock/noop.rb
|
64
66
|
- lib/flexmock/ordering.rb
|
@@ -67,13 +69,17 @@ files:
|
|
67
69
|
- lib/flexmock/rails.rb
|
68
70
|
- lib/flexmock/recorder.rb
|
69
71
|
- lib/flexmock/rspec.rb
|
72
|
+
- lib/flexmock/rspec_spy_matcher.rb
|
73
|
+
- lib/flexmock/spy_describers.rb
|
70
74
|
- lib/flexmock/test_unit.rb
|
75
|
+
- lib/flexmock/test_unit_assert_spy_called.rb
|
71
76
|
- lib/flexmock/test_unit_integration.rb
|
72
77
|
- lib/flexmock/undefined.rb
|
73
78
|
- lib/flexmock/validators.rb
|
74
79
|
- lib/flexmock/version.rb
|
75
80
|
- lib/flexmock.rb
|
76
81
|
- test/aliasing_test.rb
|
82
|
+
- test/assert_spy_called_test.rb
|
77
83
|
- test/container_methods_test.rb
|
78
84
|
- test/default_framework_adapter_test.rb
|
79
85
|
- test/demeter_mocking_test.rb
|
@@ -88,9 +94,11 @@ files:
|
|
88
94
|
- test/record_mode_test.rb
|
89
95
|
- test/redirect_error.rb
|
90
96
|
- test/rspec_integration/integration_spec.rb
|
97
|
+
- test/rspec_integration/spy_example_spec.rb
|
91
98
|
- test/samples_test.rb
|
92
99
|
- test/should_ignore_missing_test.rb
|
93
100
|
- test/should_receive_test.rb
|
101
|
+
- test/spys_test.rb
|
94
102
|
- test/test_setup.rb
|
95
103
|
- test/test_unit_integration/auto_test_unit_test.rb
|
96
104
|
- test/tu_integration_test.rb
|
@@ -117,7 +125,7 @@ files:
|
|
117
125
|
- doc/releases/flexmock-0.8.4.rdoc
|
118
126
|
- doc/releases/flexmock-0.8.5.rdoc
|
119
127
|
- doc/releases/flexmock-0.9.0.rdoc
|
120
|
-
|
128
|
+
- doc/releases/flexmock-1.0.0.rdoc
|
121
129
|
homepage: https://github.com/jimweirich/flexmock
|
122
130
|
licenses: []
|
123
131
|
|
@@ -139,13 +147,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
148
|
none: false
|
141
149
|
requirements:
|
142
|
-
- - "
|
150
|
+
- - ">"
|
143
151
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
152
|
+
version: 1.3.1
|
145
153
|
requirements: []
|
146
154
|
|
147
155
|
rubyforge_project:
|
148
|
-
rubygems_version: 1.
|
156
|
+
rubygems_version: 1.8.15
|
149
157
|
signing_key:
|
150
158
|
specification_version: 3
|
151
159
|
summary: Simple and Flexible Mock Objects for Testing
|