-
Notifications
You must be signed in to change notification settings - Fork 26
/
CHANGES
236 lines (152 loc) · 6.08 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
= Changes for FlexMock
== Version 1.0.0
* Added spy support.
* Added base class mocking restrictions.
* Using singleton_methods to get list of singleton methods (rather
than methods(false))
* Correctly handling mocking methods that were meta-programmed with
method_missing.
== Version 0.9.0
* Ruby 1.9.3 compatibility changes.
== Version 0.8.5
* Fixed warning about a void context.
* hsh() argument matcher now reports its matching constraints in error
messages.
== Version 0.8.4
* Added support for rails 2.2.x in should_render_view.
== Version 0.8.3
* Fixed a bug where the by_default option was not completely honored
in some edge cases.
== Version 0.8.2
* Added workaround for compatibility issues with RSpec on Rails.
== Version 0.8.1
* Additional fix for Rails 2.0.2
* Added Joe O'Brien's patch to allow view stubbing in Rails 2.0
* Added Evan Phoenix's patch to remove allocate from default
allocators in new_instances (for Rubinius compatibility).
== Version 0.8.0
* Added by_default
* Added undefined behavior
* Mock methods are added to partial mocks only if they are not
previously defined. This should reduce the need for safe mode.
* respond_to? on mocks now accepts multiple arguments. This eases
mocking in rails a little bit.
* Added experimental view mocking for rails.
== Version 0.7.2
* Changed initial model Id to 10000.
* Added test suggested for RSpec Mocks, just to make sure we were good too.
== Version 0.7.1
* Updated install.rb to handle non-root destination directories via
DESTDIR.
* Fixed operator bug introduced in 0.7.0.
== Version 0.7.0
* Added +and_yield+ as an expectation clause.
* Inspect on Mocks now yield a more consise description.
* Global ordering across all mocks in a container is now allowed.
* Added support for Demeter chain mocking.
* Deprecated a number of mock_* methods.
== Version 0.6.4
* Renamed flexmodel(...) to flexmock(:model, ...) because visually
they were too similar.
== Version 0.6.3
* Added flexmodel() for better support of mocking ActiveRecord models.
* Fixed comment for singleton?
* Fixed coverage report for the partial mocking class.
* Fixed bug when partial mock objects reported they respond to a
method but they actually didn't.
* The flexmock() method now _always_ returns a combination domain/mock
object. For partial mocks, this implies that the domain object now
has mock support methods on it (e.g. should_receive).
* Safe mode for partials was introduced for the small number of cases
where mock support methods in the domain object would cause
problems.
* Internally renamed PartialMock to PartialMockProxy.
== Version 0.6.2
* flexmock() with a block now always returns the domain object.
flexmock() without a block returns the mock object. Note that for
normal mocks, the domain and mock objects are the same. For partial
mocks, the mock is separate from the domain object.
* Added +and_raise+ to the list of expection specifications.
== Version 0.6.1
* Fixed bug that prevented mocks from mocking field assignment operators.
* Fixed bug that prevented partial mocks from being ordered.
== Version 0.6.0
* Dropped class interception.
* Refactored into more granular classes.
* Added RSpec integration.
* Added hash expectations to flexmock() and should_expect().
* Integrated partial mocks into the flexmock() methods.
* Allow non-block configuration of new_instances.
== Version 0.5.1
* Changed the name of any_instance to new_instances.
Deprecated any_instance.
* Added ability to stub any class method in new_instances.
* Added RCov task
* Reworked original behavior hooks to use method aliasing rather than method
procs.
* Fixed bug in stubbing File class methods.
== Version 0.5.0
* Added any_instance stubbing to class objects.
== Version 0.4.5
* Fixed version typo in 0.4.4 (internally claimed to be 0.4.3.1)
== Version 0.4.4
* Added block support to flexstub.
== Version 0.4.3
* Fixed bug where non-direct class methods were not properly handled.
== Version 0.4.2
* Fixed bug where multiple stubs of a class method were not
properly restored.
== Version 0.4.1
* Removed include of Test::Unit::Assertions from Expectations.
* Fixed mocking of kernel methods.
== Version 0.4.0
* Added stubbing for mocking methods of existing objects.
* Added multiple return values for the +and_returns+ method.
* Added block initialization to the flexmock method.
== Version 0.3.2
* Fixed bug when mock is used as a replacement class in class
interception.
== Version 0.3.1
* Fixed some warnings regarding uninitialized variables.
* Added (very) simple class interception.
* Added the mock_factory method to go along with class interception.
* When using Test::Unit integration, avoid mock verification if the
test has already failed for some reason.
== Version 0.3.0
* Added Test::Unit integration.
== Version 0.2.1
* Added strict mode in record mode interface to facility using known
good algorithms for comparison testing.
* Improved the docs and examples. Fixed garbled first example in
README.
== Version 0.2.0
* Added record mode for building expectations.
* Fixed a bunch of documentation.
== Version 0.1.7
* Bumped version because 0.1.6 was uploaded to the wrong Rubyforge area.
== Version 0.1.6
* Added a proc based matcher for arguments (using keyword +on+).
== Version 0.1.5
* Fixed the overzealous argument matching when String is given as an
argument qualifier to +should_receive+.
== Version 0.1.4
* Added eq and any methods for argument matching.
* Added tests for the "first match" argument matching policy.
== Version 0.1.3
* Improved the definition of ordered so that it takes group names
instead of explicit order numbers. This make the code easier to
write and the API easier to understand.
== Version 0.1.2
* Fixed homepage in gem spec.
* Removed autorequire from gemspec.
* Fixed README to be automatically updated with FlexMock Version
== Version 0.1.1
* Added responds_to? and method support.
* Added JMock style expectations.
== Version 0.0.3
* Changed to a GEM package.
== Version 0.0.2
* Updated the documentation.
* Fixed the install script.
== Version 0.0.1
* Initial Version