OSDN Git Service

add rspec-rails
[praisedb/praisedb.git] / vendor / plugins / rspec-rails / History.rdoc
1 === Version 1.3.0 / 2010-01-11
2
3 * enhancements
4   * use stub() instead of stub!() in generators
5   * generate gem config in test.rb with 'script/generate rspec'
6
7 === Version 1.2.9 / 2009-10-05
8
9 * enhancements
10   * added route_to and be_routable matchers (Randy Harmon). Closes #843.
11   * Provide better failure message for render_template when redirected (Josh
12     Nichols). Closes #885.
13   * generated specs require 'spec_helper'
14
15 * bug fixes
16   * pass the correct args to super in controller#render depending on the rails
17     version (Lucas Carlson). Closes #865.
18   * use Rack::Utils.parse_query to convert query strings to hashes. Closes #872.
19   * errors correctly bubble up when a controller spec in isolation mode
20     requests a non-existent action/template
21     * no error if either action or template exist
22     * error if neither exist
23     * Closes #888.
24   * mock_model stubs destroyed? to return false
25
26 * removals
27   * spec_server has been removed in favor of spork.
28     * You can still use the --drb flag, but you've got to install the spork
29       gem.
30     * Windows users who cannot use the spork gem can install the spec_server
31       from http://github.com/dchelimsky/spec_server
32
33 === Version 1.2.7 / 2009-06-22
34
35 * enhancements
36   * alias :stub!, :stub so rspec-rails extensions of rspec stubs can use the
37     same syntax as rspec (core)
38   * integration specs (Ben Mabey and David Chelimsky)
39   * added support for references and belongs_to generated model specs (José
40     Valim). Closes #792.
41   * add discovery for autotest-rails to keep compatible with ZenTest-4.0.0
42     (Ryan Davis). Closes #838.
43   * controller specs in isolation mode don't care whether the file exists
44     anymore!
45
46 * bug fixes
47   * allow rspec-rails to work without ActiveRecord. Closes #810.
48   * fix bug with have() matcher failure message (Dave Giunta). Closes #818.
49   * fix bug where render_template('new') would pass if 'newer' was rendered
50     (or anything that started with 'new')
51   
52 * deprecations
53   * spec_server is now deprecated - use spork instead (gem install spork).
54     Closes #827.
55
56 === Version 1.2.6 / 2009-04-30
57
58 * bug fixes
59   * restored rake tasks for rspec[-rails] as plugins
60
61 === Version 1.2.5 / 2009-04-29
62
63 * enhancements
64   * support :xml and :strict config options for have_tag matcher (patch from
65     Peer Allan and Max Murphy). Closes #783.
66
67 * bug fixes
68   * Fixed a small typo that makes rake stats fail (José Valim). Closes #802.
69   * link_to and friends are available to ViewExampleGroup again
70     (J.B. Rainsberger). Closes #787.
71   * spec_server works correctly with rails 2.3 again (Neil Buckley). Closes
72     #759.
73
74 === Version 1.2.4 / 2009-03-13
75
76 No changes in this release, but aligns with the rspec-1.2.4 release. Someday
77 soon, this binding of rspec/rspec-rails versions needs to end!
78
79 === Version 1.2.3 / 2009-03-13
80
81 No changes in this release, but aligns with the rspec-1.2.3 release.
82
83 === Version 1.2.2 / 2009-03-22
84
85 No changes in this release, but aligns with the rspec-1.2.2 release.
86
87 === Version 1.2.1 / 2009-03-22
88
89 This is a bug-fix release, recommended for anybody who has already upgraded to
90 rspec-rails-1.2.0 or is upgrading to rails-2.3.2
91
92 See Upgrade.rdoc for information about upgrading to rspec-rails-1.2.1
93
94 * enhancements
95
96   * more cleanup of internals (reducing dependency on rspec-core)
97   * don't require config/environments more than once
98   * autotest includes spec/routing directory (Matt Peterson). Closes #739.
99   * display helpful messages when installing rspec-rails running
100     script/generate rspec
101     * thanks for Dr Nic for the pointers
102   * restored require 'rubygems' where needed
103     * export NO_RUBYGEMS=true if you don't use rubygems
104     
105 * bug fixes
106
107   * fix scoping issues in rspec-rails' own suite for ruby 1.9.1 (Matthias
108     Hennemeyer). Closes #717.
109   * rake stats no longer hides test directories. Closes #748.
110   * fixed regression that was introduced in 1.2 in which controller_name
111     failed to override the controller class passed to describe() (patches from
112     Aaron Gibralter and Zach Dennis). Closes #732.
113
114 === Version 1.2.0 / 2009-03-15
115
116 IMPORTANT: See Upgrade.rdoc for information about upgrading to rspec-rails-1.2.0
117
118 IMPORTANT: This release includes the following backwards-compatibility-breaking changes.
119
120 * rspec-rails supports rails 2.0.2, 2.1.2, 2.2.2 and 2.3.2
121   
122   * We are no longer supporting 1.x versions of rails.
123
124 * expect_render and stub_render have been removed.
125
126   * Both of these methods were deprecated in rspec-rails-1.1.5, released in Sept, 2008.
127   
128 * { route_for(args).should == "/path" } now delegates to assert_generates (in rails)
129
130   * see Upgrade.txt for more information
131   
132 * deprecations
133
134   * controller.use_rails_error_handling! is deprecated
135     * use rescue_action_in_public! (from rails) instead
136   
137 * enhancements
138
139   * Adding status codes to redirect_to matcher (Damian Janowski). Closes #570.
140   * Initialize current URL before executing any examples in a ViewExampleGroup (Wilson Bilkovich). Closes #654.
141   * Support query strings in params_from (Wilson Bilkovich). Closes #652.
142   * delegate route_for to assert_recognizes (less brittle)
143   * it { should be_valid } (Kakutani). Closes #665.
144   * controller is implicit subject in controller specs (Joe Ferris). #686.
145   * template is implicit subject in view specs (Joe Ferris). #686.
146   * redirect_to and render_template matchers can accept controller or response (Joe Ferris). Closes #686. 
147   * generated specs use declarative docstrings
148   * rspec_scaffold generator generates layout and stylesheet (per Rails-2.3)
149   * add bypass_rescue for controller specs
150   * infer template path from the first arg passed to describe in view specs
151   * separate routing specs (in spec/routing)
152   
153 * bug fixes
154
155   * you no longer *have* to load ActionMailer to get specs to run. Closes #650.
156   * query_params are now parsed by Rack::Utils.parse_query in redirect_to matcher. Closes #684.
157   * cleaned up spec_server (there was a bunch of pre-rails 2.0 material). Closes #685.
158   * rspec's rake tasks are not loaded when running "rake gems" or any of its subtasks
159   * only warn when rspec is not installed when trying to invoke an rspec rake task
160   * support 2 arg version of ActionController::Base#render (reported by Nathan Wilmes)
161   * rake spec:server:start doesn't choke if there is no tmp directory
162   * force cache_classes = false when running with spec_server. Closes #287.
163   * keep spec_server working against edge rails (Jonathan Tron). Closes #685.
164   * create lib/tasks if not present when running script/generate rspec. Closes #687.
165   * fixed regression (and added spec so it won't regress again) where
166     render => :inline didn't render unless integrate_views was set
167   * fixed nil.with_output_buffer bug in helper specs. Closes #719.
168
169 === Version 1.1.12 / 2009-01-11
170
171 * 2 deprecations
172
173   * TestResponse#[] is deprecated if you're using Rails <= 2.2.x and removed if you're using Rails 2.3
174   * add_stubs(model, {:method => value}) is deprecated. Use model.stub!(:method => value) instead.
175
176 * 2 major enhancements
177
178   * support controller and action path params in view specs (Mike Vincent).
179   * use ActiveSupport::TestCase when available, else Test::Unit::TestCase - supports Rails 1.2.6 (Brandon Keepers). Closes #620.
180   * support form tag helpers in helpers (Ivo Dancet). Closes #641.
181
182 * 3 minor enhancements
183
184   * improve rdoc for render_template (Patch from Andrew Premdas). Fixes #571.
185   * use more liberal globs to allow for specs in symlinked dirs (Martin Luder). Closes #361.
186   * Enable loading fixtures from arbitrary locations (Jacek Becela). Closes #464.
187   
188 * 7 bug fixes
189
190   * Attempt to load application_controller before falling back to application (Geoff Garside). Closes #626.
191   * Include _id and reduce quoting of default values in view specs (Steen Lehmann). Closes #598.
192   * Record calls to render and check rendered[:template] and rendered[:partial] for edge rails (> v2.2.2). Closes #633.
193   * config.gem 'rspec' can't be unpacked. Closes #629.
194   * spec_server not working with Rails 2.2.2 (Andreas Wolff). Closes #631.
195   * redirect_to doesn't work with http method constrained urls (Maxim Kulkin). Closes #648.
196   * rescue_with declarations are no longer by-passed (Brandon Keepers). #85
197
198 === Version 1.1.11 / 2008-10-24
199
200 * No changes to rspec-rails - release to align with bug-fix release in rspec ... again :(
201
202 === Version 1.1.10 / 2008-10-24
203
204 * No changes to rspec-rails - release to align with bug-fix release in rspec
205
206 === Version 1.1.9 / 2008-10-20
207
208 * 4 bug fixes
209
210   * require 'rubygems' in script/spec
211   * fix failure message for error_on and errors_on (Patch from Mike Vincent). Fixes #566.
212   * fix issues that arise in view spec if passing actual template name to render (Patch from Mike Vincent). Fixes #551.
213   * fixed bug accessing assigns from helper examples
214
215 === Version 1.1.8 / 2008-10-03
216
217 * 2 bug fixes
218
219   * correctly handle assigns that are false. Fixes #552.
220   * ensure that NotYetImplemented examples report as pending (fixed in rspec, not rspec-rails). Fixes #553.
221   
222 === Version 1.1.7 / 2008-10-02
223
224 * 1 bug fix
225
226   * depend on the correct version of rspec
227
228 === Version 1.1.6 / 2008-10-02
229
230 * 1 bug fix
231
232   * fixed regression where values assigned to the assigns hash were not accessible from the example (#549)
233
234 === Version 1.1.5 / 2008-09-28
235
236 IMPORTANT: use 'script/autospec' (or just 'autospec' if you have the rspec gem
237 installed) instead of 'autotest'. We changed the way autotest discovers rspec
238 so the autotest executable won't automatically load rspec anymore. This allows
239 rspec to live side by side other spec frameworks without always co-opting
240 autotest through autotest's discovery mechanism.
241
242 ALSO IMPORTANT: Rails v2.1.1 changed assert_select_rjs such that it doesn't
243 always fail when it should. Please see
244 http://rails.lighthouseapp.com/projects/8994/tickets/982.
245
246 * Generated route specs have shorter names, making it less painful to modify their implementation
247 * Add conditional so Rails 2.1.0 doesn't warn about cache_template_extensions (patch from James Herdman)
248 * Fixed stub_model examples to work with Rails 2.1.0 (the code was fine, just the examples needed patching)
249 * use hoe for build/release
250 * reworked generated examples for rspec_scaffold - thanks to Mikel Lindsaar and Dan Manges for their feedback
251 * bye, bye translator
252 * Added proxy to cookies so you can set them in examples the same way you set them in controllers
253 * Added script/autospec so you can run autospec without installing the gem
254 * Support --skip-fixture in the rspec_model generator (patches from Alex Tomlins and Niels Ganser)
255 * Add mock_model#as_new_record (patch from Zach Dennis)
256 * mock(:null_object=>true) plays nice with HTML (patch from Gerrit Kaiser)
257 * Suppress a deprecation notice in Rails 2.1 (James Herdman)
258 * quiet deprecation warning on inflector (RSL)
259 * rspec-rails gem (Ben Mabey)
260 * updated generated code examples
261 * Make rspec_model generator honour --skip-fixtures tag (Niels Ganser, Alex Tomlins)
262 * Fix to create new models with attributes in command line (Nicolas)
263 * fix to_param in mock_model with stubbed id incorrectly returning autogenerated id (Adam Meehan)
264 * Call Rail's TestCase setup/teardown callbacks (Jonathan del Strother)
265 * Only run TestUnitTesting once (Jonathan del Strother)
266 * use require_dependency instead of require (Brandon Keepers)
267 * Fixed a problem caused by controller action names getting out of sync between rspec-dev and rspec-rails for speccing (Matt Patterson)
268 * don't mutate hash passed to mock_model (Reg Vos)
269
270 === Version 1.1.4
271
272 Maintenance release.
273
274 * Moved mock_model and stub_model to their own module: Spec::Rails::Mocks
275 * Setting mock_model object id with stubs hash - patch from Adam Meehan
276 * Added as_new_record to stub_model e.g. stub_model(Foo).as_new_record
277 * Improved stub_model such that new_record? does "the right thing"
278 * Patch from Pat Maddox to get integrate_views to work in nested example groups.
279 * Patch from Pat Maddox to get controller_name to work in nested example groups.
280 * Patch from Corey Haines to add include_text matcher
281 * Added stub_model method which creates a real model instance with :id stubbed and data access prohibited.
282 * Applied patch from Pat Maddox to handle redirect_to w/ SSL. Closes #320.
283 * Added #helper and #assigns to helper specs.
284 * Applied patch from Bryan Helmkamp to tweak format of generated spec.opts to be more obvious. Closes #162.
285 * Tweaked list of exceptions (ignores) for autotest
286 * Applied patch from Rick Olson to get rspec_on_rails working with rails edge (>= 8862)
287 * Applied patch from Wincent Colaiuta to invert sense of "spec --diff". Closes #281.
288 * Allow any type of render in view specs. Closes #57.
289 * Applied patch from Ian White to get rspec working with edge rails (8804). Closes #271.
290 * Applied patch from Jon Strother to have spec_server reload fixtures. Closes #344.