Skip to content

HTTPS clone URL

Subversion checkout URL

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