Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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