Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 270 lines (176 sloc) 8.641 kB
024002c @dchelimsky move post-2.11.1 enhancements in changelog
dchelimsky authored
1 ### dev
cf6cf5d @myronmarston Add 2.11.3 release info.
myronmarston authored
2 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.3...master)
c6da0f6 @dchelimsky changelog for 2.11.1 release
dchelimsky authored
3
067f13d @myronmarston Update changelog.
myronmarston authored
4 Enhancements
5
6 * Colorize diffs if the `--color` option is configured. (Alex Coplan)
7
cf6cf5d @myronmarston Add 2.11.3 release info.
myronmarston authored
8 ### 2.11.3 / 2012-09-04
d5e6e36 @myronmarston Fix full changelog URL.
myronmarston authored
9 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.2...v2.11.3)
cf6cf5d @myronmarston Add 2.11.3 release info.
myronmarston authored
10
b89b8c5 @myronmarston Fix and deprecate `expect { }.should` syntax.
myronmarston authored
11 Bug fixes
12
13 * Fix (and deprecate) `expect { }.should` syntax so that it works even
14 though it was never a documented or intended syntax. It worked as a
15 consequence of the implementation of `expect` in RSpec 2.10 and
16 earlier. (Myron Marston)
016aece @myronmarston Add missing changelog entry I forgot to add.
myronmarston authored
17 * Ensure #== is defined on build in matchers so that they can be composed.
18 For example:
19
20 expect {
21 user.emailed!
22 }.to change { user.last_emailed_at }.to be_within(1.second).of(Time.zone.now)
b89b8c5 @myronmarston Fix and deprecate `expect { }.should` syntax.
myronmarston authored
23
c897a47 @myronmarston Cherry-pick 2.11.2 release stuff from 2-11-maint branch.
myronmarston authored
24 ### 2.11.2 / 2012-07-25
25 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.1...v2.11.2)
26
147f710 @myronmarston Add change log entry for #160.
myronmarston authored
27 Bug fixes
28
29 * Define `should` and `should_not` on `Object` rather than `BasicObject`
30 on MacRuby. On MacRuby, `BasicObject` is defined but is not the root
31 of the object hierarchy. (Gabriel Gilder)
32
024002c @dchelimsky move post-2.11.1 enhancements in changelog
dchelimsky authored
33 ### 2.11.1 / 2012-07-08
34 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.0...v2.11.1)
35
147f710 @myronmarston Add change log entry for #160.
myronmarston authored
36 Bug fixes
c6da0f6 @dchelimsky changelog for 2.11.1 release
dchelimsky authored
37
38 * Constrain `actual` in `be_within` matcher to values that respond to `-` instead
39 of requiring a specific type.
40 * `Time`, for example, is a legit alternative.
41
45161a7 @dchelimsky bump to 2.11.0
dchelimsky authored
42 ### 2.11.0 / 2012-07-07
43 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.10.0...v2.11.0)
605a520 @justinko changelog
justinko authored
44
f9574db @myronmarston Update changelog.
myronmarston authored
45 Enhancements
46
47 * Expand `expect` syntax so that it supports expections on bare values
48 in addition to blocks (Myron Marston).
9793323 @myronmarston More changelog updates.
myronmarston authored
49 * Add configuration options to control available expectation syntaxes
50 (Myron Marston):
51 * `RSpec.configuration.expect_with(:rspec) { |c| c.syntax = :expect }`
52 * `RSpec.configuration.expect_with(:rspec) { |c| c.syntax = :should }`
53 * `RSpec.configuration.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }`
6a8c932 @myronmarston Update changelog.
myronmarston authored
54 * `RSpec.configuration.add_should_and_should_not_to Delegator`
f9574db @myronmarston Update changelog.
myronmarston authored
55
605a520 @justinko changelog
justinko authored
56 Bug fixes
57
58 * Allow only `Numeric` values to be the "actual" in the `be_within` matcher.
59 This prevents confusing error messages. (Su Zhang @zhangsu)
6a8c932 @myronmarston Update changelog.
myronmarston authored
60 * Define `should` and `should_not` on `BasicObject` rather than `Kernel`
61 on 1.9. This makes `should` and `should_not` work properly with
62 `BasicObject`-subclassed proxy objects like `Delegator`. (Myron
63 Marston)
605a520 @justinko changelog
justinko authored
64
77e1a09 @dchelimsky update changelog for 2.10 release
dchelimsky authored
65 ### 2.10.0 / 2012-05-03
66 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.9.1...v2.10.0)
2cfed80 @dchelimsky fix changelog
dchelimsky authored
67
2e0cdbc @dchelimsky Change start_with and end_with matchers to take varargs.
dchelimsky authored
68 Enhancements
69
70 * Add new `start_with` and `end_with` matchers (Jeremy Wadsack)
f9574db @myronmarston Update changelog.
myronmarston authored
71 * Add new matchers for specifying yields (Myron Marston):
20c7a3c @dchelimsky Fix Changelog formatting [ci skip]
dchelimsky authored
72 * `expect {...}.to yield_control`
73 * `expect {...}.to yield_with_args(1, 2, 3)`
74 * `expect {...}.to yield_with_no_args`
75 * `expect {...}.to yield_successive_args(1, 2, 3)`
f93ce4c @dchelimsky Changelog [ci skip]
dchelimsky authored
76 * `match_unless_raises` takes multiple exception args
2e0cdbc @dchelimsky Change start_with and end_with matchers to take varargs.
dchelimsky authored
77
2cfed80 @dchelimsky fix changelog
dchelimsky authored
78 Bug fixes
79
80 * Fix `be_within` matcher to be inclusive of delta.
780d4c2 @dchelimsky Changlog for #140
dchelimsky authored
81 * Fix message-specific specs to pass on Rubinius (John Firebaugh)
2cfed80 @dchelimsky fix changelog
dchelimsky authored
82
f31ae96 @dchelimsky bump to 2.9.1
dchelimsky authored
83 ### 2.9.1 / 2012-04-03
2cfed80 @dchelimsky fix changelog
dchelimsky authored
84 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.9.0...v2.9.1)
e12a2d9 @justinko Provide a helpful message if the diff between two objects is empty. F…
justinko authored
85
86 Bug fixes
87
88 * Provide a helpful message if the diff between two objects is empty.
ca5cc09 @dchelimsky Changelog for #128
dchelimsky authored
89 * Fix bug diffing single strings with multiline strings.
8f822b0 @dchelimsky changelog for #126
dchelimsky authored
90 * Fix for error with using custom matchers inside other custom matchers
91 (mirasrael)
ca5cc09 @dchelimsky Changelog for #128
dchelimsky authored
92 * Fix using execution context methods in nested DSL matchers (mirasrael)
e12a2d9 @justinko Provide a helpful message if the diff between two objects is empty. F…
justinko authored
93
fb77fca @dchelimsky bump to 2.9.0
dchelimsky authored
94 ### 2.9.0 / 2012-03-17
95 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.8.0...v2.9.0)
3d89aec @dchelimsky changelog for #103
dchelimsky authored
96
867260b @dchelimsky Changelog for #105 [ci skip]
dchelimsky authored
97 Enhancements
98
99 * Move built-in matcher classes to RSpec::Matchers::BuiltIn to reduce pollution
100 of RSpec::Matchers (which is included in every example).
101 * Autoload files with matcher classes to improve load time.
102
3d89aec @dchelimsky changelog for #103
dchelimsky authored
103 Bug fixes
104
0492d87 @dchelimsky formatting tweaks in the changelog
dchelimsky authored
105 * Align `respond_to?` and `method_missing` in DSL-defined matchers.
f4efada @dchelimsky Clear out user-defined instance variables between invocations of DSL-…
dchelimsky authored
106 * Clear out user-defined instance variables between invocations of DSL-defined
107 matchers.
65d3c4d @dchelimsky Dup the instance of a DSL generated matcher so its state is not changed
dchelimsky authored
108 * Dup the instance of a DSL generated matcher so its state is not changed by
109 subsequent invocations.
503ed29 @dchelimsky Changlog for #115
dchelimsky authored
110 * Treat expected args consistently across positive and negative expectations
111 (thanks to Ralf Kistner for the heads up)
3d89aec @dchelimsky changelog for #103
dchelimsky authored
112
04e55a8 @dchelimsky bump to 2.8.0
dchelimsky authored
113 ### 2.8.0 / 2012-01-04
6db8a2a @dchelimsky Changelog for last merge
dchelimsky authored
114
04e55a8 @dchelimsky bump to 2.8.0
dchelimsky authored
115 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.8.0.rc2...v2.8.0)
6db8a2a @dchelimsky Changelog for last merge
dchelimsky authored
116
117 Enhancements
118
119 * Better diff output for Hash (Philippe Creux)
b525e69 @dchelimsky Changelog for #102 [ci skip]
dchelimsky authored
120 * Eliminate Ruby warnings (Olek Janiszewski)
6db8a2a @dchelimsky Changelog for last merge
dchelimsky authored
121
28ca577 @dchelimsky prep for 2.8.0.rc2
dchelimsky authored
122 ### 2.8.0.rc2 / 2011-12-19
123
124 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.8.0.rc1...v2.8.0.rc2)
125
126 No changes for this release. Just releasing with the other rspec gems.
127
b53e358 @dchelimsky changelog
dchelimsky authored
128 ### 2.8.0.rc1 / 2011-11-06
a4f0fb5 @dchelimsky changelog
dchelimsky authored
129
b53e358 @dchelimsky changelog
dchelimsky authored
130 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.7.0...v2.8.0.rc1)
a4f0fb5 @dchelimsky changelog
dchelimsky authored
131
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
132 Enhancements
133
134 * Use classes for the built-in matchers (they're faster).
135 * Eliminate Ruby warnings (Matijs van Zuijlen)
a4f0fb5 @dchelimsky changelog
dchelimsky authored
136
32f2439 @dchelimsky update changelog for 2.7.0 release
dchelimsky authored
137 ### 2.7.0 / 2011-10-16
b4d38b4 @dchelimsky fix revisionist history
dchelimsky authored
138
32f2439 @dchelimsky update changelog for 2.7.0 release
dchelimsky authored
139 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.6.0...v2.7.0)
b4d38b4 @dchelimsky fix revisionist history
dchelimsky authored
140
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
141 Enhancements
142
143 * `HaveMatcher` converts argument using `to_i` (Alex Bepple & Pat Maddox)
144 * Improved failure message for the `have_xxx` matcher (Myron Marston)
145 * `HaveMatcher` supports `count` (Matthew Bellantoni)
146 * Change matcher dups `Enumerable` before the action, supporting custom
147 `Enumerable` types like `CollectionProxy` in Rails (David Chelimsky)
b4d38b4 @dchelimsky fix revisionist history
dchelimsky authored
148
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
149 Bug fixes
150
151 * Fix typo in `have(n).xyz` documentation (Jean Boussier)
152 * fix `safe_sort` for ruby 1.9.2 (`Kernel` now defines `<=>` for Object) (Peter
153 van Hardenberg)
1b5edc5 @dchelimsky changelog
dchelimsky authored
154
fad075c @dchelimsky prep for 2.6.0
dchelimsky authored
155 ### 2.6.0 / 2011-05-12
ac3c317 @dchelimsky prep for 2.6.0.rc5
dchelimsky authored
156
fad075c @dchelimsky prep for 2.6.0
dchelimsky authored
157 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.5.0...v2.6.0)
8813963 @dchelimsky changelog
dchelimsky authored
158
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
159 Enhancements
160
161 * `change` matcher accepts regexps (Robert Davis)
162 * better descriptions for `have_xxx` matchers (Magnus Bergmark)
163 * `range.should cover(*values)` (Anders Furseth)
e14e87f @dchelimsky Changlog
dchelimsky authored
164
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
165 Bug fixes
166
167 * Removed non-ascii characters that were choking rcov (Geoffrey Byers)
168 * change matcher dups arrays and hashes so their before/after states can be
169 compared correctly.
170 * Fix the order of inclusion of RSpec::Matchers in Test::Unit::TestCase and
171 MiniTest::Unit::TestCase to prevent a SystemStackError (Myron Marston)
8813963 @dchelimsky changelog
dchelimsky authored
172
3e4a46f @dchelimsky prep for 2.5 release
dchelimsky authored
173 ### 2.5.0 / 2011-02-05
f859a68 @dchelimsky add beginnings of History
dchelimsky authored
174
3e4a46f @dchelimsky prep for 2.5 release
dchelimsky authored
175 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.4.0...v2.5.0)
68fff16 @dchelimsky docs/changelog
dchelimsky authored
176
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
177 Enhancements
178
179 * `should exist` works with `exist?` or `exists?` (Myron Marston)
180 * `expect { ... }.not_to do_something` (in addition to `to_not`)
68fff16 @dchelimsky docs/changelog
dchelimsky authored
181
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
182 Documentation
183
184 * improved docs for raise_error matcher (James Almond)
f5ddd17 @dchelimsky Additional improvements to raise_error matcher docs.
dchelimsky authored
185
68f857b @dchelimsky prep for 2.4.0 release
dchelimsky authored
186 ### 2.4.0 / 2011-01-02
9059239 @dchelimsky more improvments to RDoc for change matcher
dchelimsky authored
187
68f857b @dchelimsky prep for 2.4.0 release
dchelimsky authored
188 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.3.0...v2.4.0)
189
190 No functional changes in this release, which was made to align with the
191 rspec-core-2.4.0 release.
9059239 @dchelimsky more improvments to RDoc for change matcher
dchelimsky authored
192
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
193 Enhancements
194
195 * improved RDoc for change matcher (Jo Liss)
9059239 @dchelimsky more improvments to RDoc for change matcher
dchelimsky authored
196
94a5730 @dchelimsky prep for 2.3.0 release
dchelimsky authored
197 ### 2.3.0 / 2010-12-12
1bcd0bc @dchelimsky history
dchelimsky authored
198
94a5730 @dchelimsky prep for 2.3.0 release
dchelimsky authored
199 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.2.1...v2.3.0)
1bcd0bc @dchelimsky history
dchelimsky authored
200
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
201 Enhancements
202
203 * diff strings when include matcher fails (Mike Sassak)
1bcd0bc @dchelimsky history
dchelimsky authored
204
16ca752 @dchelimsky prep for 2.2 release
dchelimsky authored
205 ### 2.2.0 / 2010-11-28
206
207 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.1.0...v2.2.0)
208
a1ef6b7 @dchelimsky bump to 2.1.0
dchelimsky authored
209 ### 2.1.0 / 2010-11-07
acbfcbe @dchelimsky history
dchelimsky authored
210
a1ef6b7 @dchelimsky bump to 2.1.0
dchelimsky authored
211 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.1...v2.1.0)
acbfcbe @dchelimsky history
dchelimsky authored
212
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
213 Enhancements
214
215 * `be_within(delta).of(expected)` matcher (Myron Marston)
216 * Lots of new Cucumber features (Myron Marston)
217 * Raise error if you try `should != expected` on Ruby-1.9 (Myron Marston)
218 * Improved failure messages from `throw_symbol` (Myron Marston)
acbfcbe @dchelimsky history
dchelimsky authored
219
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
220 Bug fixes
221
222 * Eliminate hard dependency on `RSpec::Core` (Myron Marston)
223 * `have_matcher` - use pluralize only when ActiveSupport inflections are indeed
224 defined (Josep M Bach)
225 * throw_symbol matcher no longer swallows exceptions (Myron Marston)
226 * fix matcher chaining to avoid name collisions (Myron Marston)
acbfcbe @dchelimsky history
dchelimsky authored
227
f532c20 @dchelimsky prep for 2.0.0
dchelimsky authored
228 ### 2.0.0 / 2010-10-10
6967fd6 @dchelimsky history
dchelimsky authored
229
f532c20 @dchelimsky prep for 2.0.0
dchelimsky authored
230 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.rc...v2.0.0)
6967fd6 @dchelimsky history
dchelimsky authored
231
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
232 Enhancements
233
234 * Add match_for_should_not method to matcher DSL (Myron Marston)
0d69b6f @dchelimsky history
dchelimsky authored
235
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
236 Bug fixes
237
238 * `respond_to` matcher works correctly with `should_not` with multiple methods
239 (Myron Marston)
240 * `include` matcher works correctly with `should_not` with multiple values
241 (Myron Marston)
6967fd6 @dchelimsky history
dchelimsky authored
242
add3597 @dchelimsky update history
dchelimsky authored
243 ### 2.0.0.rc / 2010-10-05
de19d98 @dchelimsky update history
dchelimsky authored
244
add3597 @dchelimsky update history
dchelimsky authored
245 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.beta.22...v2.0.0.rc)
de19d98 @dchelimsky update history
dchelimsky authored
246
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
247 Enhancements
248
249 * `require 'rspec/expectations'` in a T::U or MiniUnit suite (Josep M. Bach)
b3faf00 @dchelimsky update history
dchelimsky authored
250
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
251 Bug fixes
252
253 * change by 0 passes/fails correctly (Len Smith)
254 * Add description to satisfy matcher
de19d98 @dchelimsky update history
dchelimsky authored
255
51f64b1 @dchelimsky adjust history for beta.22 release
dchelimsky authored
256 ### 2.0.0.beta.22 / 2010-09-12
f859a68 @dchelimsky add beginnings of History
dchelimsky authored
257
51f64b1 @dchelimsky adjust history for beta.22 release
dchelimsky authored
258 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.beta.20...v2.0.0.beta.22)
f859a68 @dchelimsky add beginnings of History
dchelimsky authored
259
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
260 Enhancements
261
262 * diffing improvements
f859a68 @dchelimsky add beginnings of History
dchelimsky authored
263 * diff multiline strings
264 * don't diff single line strings
265 * don't diff numbers (silly)
266 * diff regexp + multiline string
267
3a931ab @dchelimsky fix changelog formatting
dchelimsky authored
268 Bug fixes
269 * `should[_not]` change now handles boolean values correctly
Something went wrong with that request. Please try again.