forked from rspec/rspec.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.Changelog.html
1218 lines (1218 loc) · 59 KB
/
file.Changelog.html
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
File: Changelog
— Documentation by YARD 0.9.28
</title>
<link rel="stylesheet" href="/documentation/6.0/rspec-rails/css/style.css" type="text/css" />
<link rel="stylesheet" href="/documentation/6.0/rspec-rails/css/common.css" type="text/css" />
<link rel="stylesheet" href="/documentation/6.0/rspec-rails/css/rspec.css" type="text/css" />
<script type="text/javascript">
pathId = "Changelog";
relpath = '';
</script>
<script type="text/javascript" charset="utf-8" src="/documentation/6.0/rspec-rails/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="/documentation/6.0/rspec-rails/js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="file_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="_index.html">Index</a> »
<span class="title">File: Changelog</span>
</div>
<div id="search">
<a class="full_list_link" id="class_list_link"
href="class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><div id='filecontents'><h3 id="development">Development</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v6.0.0...6-0-maintenance">Full Changelog</a></p>
<h3 id="6-0-1-2022-10-18">6.0.1 / 2022-10-18</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v6.0.0...6.0.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Prevent tagged logged support in Rails 7 calling <code>#name</code>. (Jon Rowe, #2625)</li>
</ul>
<h3 id="6-0-0-2022-10-10">6.0.0 / 2022-10-10</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v5.1.2...6.0.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Support Rails 7</li>
<li>Template tweaks to remove instance variables from generated specs. (Takuma Ishikawa, #2599)</li>
<li>Generators now respects default path configuration option. (@vivekmiyani, #2508)</li>
</ul>
<p>Breaking Changes:</p>
<ul>
<li>Drop support for Rails below 6.1</li>
<li>Drop support for Ruby below 2.5 (following supported versions of Rails 6.1)</li>
<li>Change the order of <code>after_teardown</code> from <code>after</code> to <code>around</code> in system
specs to improve compatibility with extensions and Capybara. (Tim Diggins, #2596)</li>
</ul>
<p>Deprecations:</p>
<ul>
<li>Deprecates integration spec generator (<code>rspec:integration</code>)
which was an alias of request spec generator (<code>rspec:request</code>)
(Luka Lüdicke, #2374)</li>
</ul>
<h3 id="5-1-2-2022-04-24">5.1.2 / 2022-04-24</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v5.1.1...v5.1.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix controller scaffold templates parameter name. (Taketo Takashima, #2591)</li>
<li>Include generator specs in the inferred list of specs. (Jason Karns, #2597)</li>
</ul>
<h3 id="5-1-1-2022-03-07">5.1.1 / 2022-03-07</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v5.1.0...v5.1.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Properly handle global id serialised arguments in <code>have_enqueued_mail</code>.
(Jon Rowe, #2578)</li>
</ul>
<h3 id="5-1-0-2022-01-26">5.1.0 / 2022-01-26</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v5.0.3...v5.1.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Make the API request scaffold template more consistent and compatible with
Rails 6.1. (Naoto Hamada, #2484)</li>
<li>Change the scaffold <code>rails_helper.rb</code> template to use <code>require_relative</code>.
(Jon Dufresne, #2528)</li>
</ul>
<h3 id="5-0-3-2022-01-26">5.0.3 / 2022-01-26</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v5.0.2...v5.0.3">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Properly name params in controller and request spec templates when
using the <code>--model-name</code> parameter. (@kenzo-tanaka, #2534)</li>
<li>Fix parameter matching with mail delivery job and
ActionMailer::MailDeliveryJob. (Fabio Napoleoni, #2516, #2546)</li>
<li>Fix Rails 7 <code>have_enqueued_mail</code> compatibility (Mikael Henriksson, #2537, #2546)</li>
</ul>
<h3 id="5-0-2-2021-08-14">5.0.2 / 2021-08-14</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v5.0.1...v5.0.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Prevent generated job specs from duplicating <code>_job</code> in filenames.
(Nick Flückiger, #2496)</li>
<li>Fix <code>ActiveRecord::TestFixture#uses_transaction</code> by using example description
to replace example name rather than example in our monkey patched
<code>run_in_transaction?</code> method. (Stan Lo, #2495)</li>
<li>Prevent keyword arguments being lost when methods are invoked dynamically
in controller specs. (Josh Cheek, #2509, #2514)</li>
</ul>
<h3 id="5-0-1-2021-03-18">5.0.1 / 2021-03-18</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v5.0.0...v5.0.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Limit multibyte example descriptions when used in system tests for #method_name
which ends up as screenshot names etc. (@y-yagi, #2405, #2487)</li>
</ul>
<h3 id="5-0-0-2021-03-09">5.0.0 / 2021-03-09</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v4.1.1...v5.0.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Support new #file_fixture_path and new fixture test support code. (Jon Rowe, #2398)</li>
<li>Support for Rails 6.1. (Benoit Tigeot, Jon Rowe, Phil Pirozhkov, and more #2398)</li>
</ul>
<p>Breaking Changes:</p>
<ul>
<li>Drop support for Rails below 5.2.</li>
</ul>
<h3 id="4-1-1-2021-03-09">4.1.1 / 2021-03-09</h3>
<p>Bug Fixes:</p>
<ul>
<li>Remove generated specs when destroying a generated controller.
(@Naokimi, #2475)</li>
</ul>
<h3 id="4-1-0-2021-03-06">4.1.0 / 2021-03-06</h3>
<p>Enhancements:</p>
<ul>
<li>Issue a warning when using job matchers with <code>#at</code> mismatch on <code>usec</code> precision.
(Jon Rowe, #2350)</li>
<li>Generated request specs now have a bare <code>_spec</code> suffix instead of <code>request_spec</code>.
(Eloy Espinaco, Luka Lüdicke, #2355, #2356, #2378)</li>
<li>Generated scaffold now includes engine route helpers when inside a mountable engine.
(Andrew W. Lee, #2372)</li>
<li>Improve request spec "controller" scafold when no action is specified.
(Thomas Hareau, #2399)</li>
<li>Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, #2423)</li>
<li>Prevent collisions with <code>let(:name)</code> for Rails 6.1 and <code>let(:method_name)</code> on older
Rails. (Benoit Tigeot, #2461)</li>
</ul>
<h3 id="4-0-2-2020-12-26">4.0.2 / 2020-12-26</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Indent all extra failure lines output from system specs. (Alex Robbin, #2321)</li>
<li>Generated request spec for update now uses the correct let. (Paul Hanyzewski, #2344)</li>
<li>Return <code>true</code>/<code>false</code> from predicate methods in config rather than raw values.
(Phil Pirozhkov, Jon Rowe, #2353, #2354)</li>
<li>Remove old #fixture_path feature detection code which broke under newer Rails.
(Koen Punt, Jon Rowe, #2370)</li>
<li>Fix an error when <code>use_active_record</code> is <code>false</code> (Phil Pirozhkov, #2423)</li>
</ul>
<h3 id="4-0-1-2020-05-16">4.0.1 / 2020-05-16</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v4.0.0...v4.0.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Remove warning when calling <code>driven_by</code> in system specs. (Aubin Lorieux, #2302)</li>
<li>Fix comparison of times for <code>#at</code> in job matchers. (Jon Rowe, Markus Doits, #2304)</li>
<li>Allow <code>have_enqueued_mail</code> to match when a sub class of <code>ActionMailer::DeliveryJob</code>
is set using <code><Class>.delivery_job=</code>. (Atsushi Yoshida #2305)</li>
<li>Restore Ruby 2.2.x compatibility. (Jon Rowe, #2332)</li>
<li>Add <code>required_ruby_version</code> to gem spec. (Marc-André Lafortune, #2319, #2338)</li>
</ul>
<h3 id="4-0-0-2020-03-24">4.0.0 / 2020-03-24</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)</li>
<li>Adds support for JRuby on Rails 5.2 and 6</li>
<li>Add support for parameterised mailers (Ignatius Reza, #2125)</li>
<li>Add ActionMailbox spec helpers and test type (James Dabbs, #2119)</li>
<li>Add ActionCable spec helpers and test type (Vladimir Dementyev, #2113)</li>
<li>Add support for partial args when using <code>have_enqueued_mail</code>
(Ignatius Reza, #2118, #2125)</li>
<li>Add support for time arguments for <code>have_enqueued_job</code> (@alpaca-tc, #2157)</li>
<li>Improve path parsing in view specs render options. (John Hawthorn, #2115)</li>
<li>Add routing spec template as an option for generating controller specs.
(David Revelo, #2134)</li>
<li>Add argument matcher support to <code>have_enqueued_*</code> matchers. (Phil Pirozhkov, #2206)</li>
<li>Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)</li>
<li>Add <code>have_been_performed</code>/<code>have_performed_job</code>/<code>perform_job</code> ActiveJob
matchers (Isaac Seymour, #1785)</li>
<li>Default to generating request specs rather than controller specs when
generating a controller (Luka Lüdicke, #2222)</li>
<li>Allow <code>ActiveJob</code> matchers <code>#on_queue</code> modifier to take symbolic queue names. (Nils Sommer, #2283)</li>
<li>The scaffold generator now generates request specs in preference to controller specs.
(Luka Lüdicke, #2288)</li>
<li>Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)</li>
<li> Set <code>ActionDispatch::SystemTesting::Server.silence_puma = true</code> when running system specs.
(ta1kt0me, Benoit Tigeot, #2289)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li><code>EmptyTemplateHandler.call</code> now needs to support an additional argument in
Rails 6. (Pavel Rosický, #2089)</li>
<li>Suppress warning from <code>SQLite3Adapter.represent_boolean_as_integer</code> which is
deprecated. (Pavel Rosický, #2092)</li>
<li><code>ActionView::Template#formats</code> has been deprecated and replaced by
<code>ActionView::Template#format</code>(Seb Jacobs, #2100)</li>
<li>Replace <code>before_teardown</code> as well as <code>after_teardown</code> to ensure screenshots
are generated correctly. (Jon Rowe, #2164)</li>
<li><code>ActionView::FixtureResolver#hash</code> has been renamed to <code>ActionView::FixtureResolver#data</code>.
(Penelope Phippen, #2076)</li>
<li>Prevent <code>driven_by(:selenium)</code> being called due to hook precedence.
(Takumi Shotoku, #2188)</li>
<li>Prevent a <code>WrongScopeError</code> being thrown during loading fixtures on Rails
6.1 development version. (Edouard Chin, #2215)</li>
<li>Fix Mocha mocking support with <code>should</code>. (Phil Pirozhkov, #2256)</li>
<li>Restore previous conditional check for setting <code>default_url_options</code> in feature
specs, prevents a <code>NoMethodError</code> in some scenarios. (Eugene Kenny, #2277)</li>
<li>Allow changing <code>ActiveJob::Base.queue_adapter</code> inside a system spec.
(Jonathan Rochkind, #2242)</li>
<li><code>rails generate generator</code> command now creates related spec file (Joel Azemar, #2217)</li>
<li>Relax upper <code>capybara</code> version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)</li>
<li>Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)</li>
</ul>
<p>Breaking Changes:</p>
<ul>
<li>Drops support for Rails below 5.0</li>
<li>Drops support for Ruby below 2.3</li>
</ul>
<h3 id="3-9-1-2020-03-10">3.9.1 / 2020-03-10</h3>
<p><a href="http://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #2117)</li>
</ul>
<h3 id="3-9-0-2019-10-08">3.9.0 / 2019-10-08</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0">Full Changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Use <code>__dir__</code> instead of <code>__FILE__</code> in generated <code>rails_helper.rb</code> where
supported. (OKURA Masafumi, #2048)</li>
<li>Add <code>have_enqueued_mail</code> matcher as a "super" matcher to the <code>ActiveJob</code> matchers
making it easier to match on <code>ActiveJob</code> delivered emails. (Joel Lubrano, #2047)</li>
<li>Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #1933)</li>
<li>Add generator for generator specs. (@ConSou, #2085)</li>
<li>Add option to generate routes when generating controller specs. (David Revelo, #2134)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Make the <code>ActiveJob</code> matchers fail when multiple jobs are queued for negated
matches. e.g. <code>expect { job; job; }.to_not have_enqueued_job</code>.
(Emric Istanful, #2069)</li>
</ul>
<h3 id="3-8-3-2019-10-03">3.8.3 / 2019-10-03</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.8.2...v3.8.3">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Namespaced fixtures now generate a <code>/</code> separated path rather than an <code>_</code>.
(@nxlith, #2077)</li>
<li>Check the arity of <code>errors</code> before attempting to use it to generate the <code>be_valid</code>
error message. (Kevin Kuchta, #2096)</li>
</ul>
<h3 id="3-8-2-2019-01-13">3.8.2 / 2019-01-13</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix issue with generator for preview specs where <code>Mailer</code> would be duplicated
in the name. (Kohei Sugi, #2037)</li>
<li>Fix the request spec generator to handle namespaced files. (Kohei Sugi, #2057)</li>
<li>Further truncate system test filenames to handle cases when extra words are
prepended. (Takumi Kaji, #2058)</li>
<li>Backport: Make the <code>ActiveJob</code> matchers fail when multiple jobs are queued
for negated matches. e.g. `expect { job; job; }.to_not have_enqueued_job
(Emric Istanful, #2069)</li>
</ul>
<h3 id="3-8-1-2018-10-23">3.8.1 / 2018-10-23</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix <code>NoMethodError: undefined method 'strip'</code> when using a <code>Pathname</code> object
as the fixture file path. (Aaron Kromer, #2026)</li>
<li>When generating feature specs, do not duplicate namespace in the path name.
(Laura Paakkinen, #2034)</li>
<li>Prevent <code>ActiveJob::DeserializationError</code> from being issued when <code>ActiveJob</code>
matchers de-serialize arguments. (@aymeric-ledorze, #2036)</li>
</ul>
<h3 id="3-8-0-2018-08-04">3.8.0 / 2018-08-04</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Improved message when migrations are pending in the default <code>rails_helper.rb</code>
(Koichi ITO, #1924)</li>
<li><code>have_http_status</code> matcher now supports Rails 5.2 style response symbols
(Douglas Lovell, #1951)</li>
<li>Change generated Rails helper to match Rails standards for Rails.root
(Alessandro Rodi, #1960)</li>
<li>At support for asserting enqueued jobs have no wait period attached.
(Brad Charna, #1977)</li>
<li>Cache instances of <code>ActionView::Template</code> used in <code>stub_template</code> resulting
in increased performance due to less allocations and setup. (Simon Coffey, #1979)</li>
<li>Rails scaffold generator now respects longer namespaces (e.g. api/v1/<thing>).
(Laura Paakkinen, #1958)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Escape quotation characters when producing method names for system spec
screenshots. (Shane Cavanaugh, #1955)</li>
<li>Use relative path for resolving fixtures when <code>fixture_path</code> is not set.
(Laurent Cobos, #1943)</li>
<li>Allow custom template resolvers in view specs. (@ahorek, #1941)</li>
</ul>
<h3 id="3-7-2-2017-11-20">3.7.2 / 2017-11-20</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.7.1...v3.7.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Delay loading system test integration until used. (Jon Rowe, #1903)</li>
<li>Ensure specs using the aggregate failures feature take screenshots on failure.
(Matt Brictson, #1907)</li>
</ul>
<h3 id="3-7-1-2017-10-18">3.7.1 / 2017-10-18</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)</li>
</ul>
<h3 id="3-7-0-2017-10-17">3.7.0 / 2017-10-17</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Prevent "template not rendered" log message from erroring in threaded
environments. (Samuel Cochran, #1831)</li>
<li>Correctly generate job name in error message. (Wojciech Wnętrzak, #1814)</li>
</ul>
<p>Enhancements:</p>
<ul>
<li>Allow <code>be_a_new(...).with(...)</code> matcher to accept matchers for
attribute values. (Britni Alexander, #1811)</li>
<li>Only configure RSpec Mocks if it is fully loaded. (James Adam, #1856)</li>
<li>Integrate with <code>ActionDispatch::SystemTestCase</code>. (Sam Phippen, #1813)</li>
</ul>
<h3 id="3-6-0-2017-05-04">3.6.0 / 2017-05-04</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Add compatibility for Rails 5.1. (Sam Phippen, Yuichiro Kaneko, #1790)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fix scaffold generator so that it does not generate broken controller specs
on Rails 3.x and 4.x. (Yuji Nakayama, #1710)</li>
</ul>
<h3 id="3-6-0-beta2-2016-12-12">3.6.0.beta2 / 2016-12-12</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Improve failure output of ActiveJob matchers by listing queued jobs.
(Wojciech Wnętrzak, #1722)</li>
<li>Load <code>spec_helper.rb</code> earlier in <code>rails_helper.rb</code> by default.
(Kevin Glowacz, #1795)</li>
</ul>
<h3 id="3-6-0-beta1-2016-10-09">3.6.0.beta1 / 2016-10-09</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Add support for <code>rake notes</code> in Rails <code>>= 5.1</code>. (John Meehan, #1661)</li>
<li>Remove <code>assigns</code> and <code>assert_template</code> from scaffold spec generators (Josh
Justice, #1689)</li>
<li>Add support for generating scaffolds for api app specs. (Krzysztof Zych, #1685)</li>
</ul>
<h3 id="3-5-2-2016-08-26">3.5.2 / 2016-08-26</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Stop unnecessarily loading <code>rspec/core</code> from <code>rspec/rails</code> to avoid
IRB context warning. (Myron Marston, #1678)</li>
<li>Deserialize arguments within ActiveJob matchers correctly.
(Wojciech Wnętrzak, #1684)</li>
</ul>
<h3 id="3-5-1-2016-07-08">3.5.1 / 2016-07-08</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Only attempt to load <code>ActionDispatch::IntegrationTest::Behavior</code> on Rails 5,
and above; Prevents possible <code>TypeError</code> when an existing <code>Behaviour</code> class
is defined. (#1660, Betesh).</li>
</ul>
<h3 id="3-5-0-2016-07-01">3.5.0 / 2016-07-01</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.5.0.beta4...v3.5.0">Full Changelog</a></p>
<p><strong>No user facing changes since beta4</strong></p>
<h3 id="3-5-0-beta4-2016-06-05">3.5.0.beta4 / 2016-06-05</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.5.0.beta3...v3.5.0.beta4">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Add support for block when using <code>with</code> on <code>have_enqueued_job</code>. (John Schroeder, #1578)</li>
<li>Add support for <code>file_fixture(...)</code>. (Wojciech Wnętrzak, #1587)</li>
<li>Add support for <code>setup</code> and <code>teardown</code> with blocks (Miklós Fazekas, #1598)</li>
<li>Add <code>enqueue_job</code> alias for <code>have_enqueued_job</code>, support <code>once</code>/<code>twice</code>/
<code>thrice</code>, add <code>have_been_enqueued</code> matcher to support use without blocks.
(Sergey Alexandrovich, #1613)</li>
</ul>
<p>Bug fixes:</p>
<ul>
<li>Prevent asset helpers from taking precedence over route helpers. (Prem Sichanugrist, #1496)</li>
<li>Prevent <code>NoMethodError</code> during failed <code>have_rendered</code> assertions on weird templates.
(Jon Rowe, #1623).</li>
</ul>
<h3 id="3-5-0-beta3-2016-04-02">3.5.0.beta3 / 2016-04-02</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Add support for Rails 5 Beta 3 (Sam Phippen, Benjamin Quorning, Koen Punt, #1589, #1573)</li>
</ul>
<p>Bug fixes:</p>
<ul>
<li>Support custom resolvers when preventing views from rendering.
(Jon Rowe, Benjamin Quorning, #1580)</li>
</ul>
<h3 id="3-5-0-beta2-2016-03-10">3.5.0.beta2 / 2016-03-10</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Include <code>ActionDispatch::IntegrationTest::Behavior</code> in request spec
example groups when on Rails 5, allowing integration test helpers
to be used in request specs. (Scott Bronson, #1560)</li>
</ul>
<p>Bug fixes:</p>
<ul>
<li>Make it possible to use floats in auto generated (scaffold) tests.
(Alwahsh, #1550)</li>
</ul>
<h3 id="3-5-0-beta1-2016-02-06">3.5.0.beta1 / 2016-02-06</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Add a <code>--singularize</code> option for the feature spec generator (Felicity McCabe,
#1503)</li>
<li>Prevent leaking TestUnit methods in Rails 4+ (Fernando Seror Garcia, #1512)</li>
<li>Add support for Rails 5 (Sam Phippen, #1492)</li>
</ul>
<p>Bug fixes:</p>
<ul>
<li>Make it possible to write nested specs within helper specs on classes that are
internal to helper classes. (Sam Phippen, Peter Swan, #1499).</li>
<li>Warn if a fixture method is called from a <code>before(:context)</code> block, instead of
crashing with a <code>undefined method for nil:NilClass</code>. (Sam Phippen, #1501)</li>
<li>Expose path to view specs (Ryan Clark, Sarah Mei, Sam Phippen, #1402)</li>
<li>Prevent installing Rails 3.2.22.1 on Ruby 1.8.7. (Jon Rowe, #1540)</li>
<li>Raise a clear error when <code>have_enqueued_job</code> is used with non-test
adapter. (Wojciech Wnętrzak, #1489)</li>
</ul>
<h3 id="3-4-2-2016-02-02">3.4.2 / 2016-02-02</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Cache template resolvers during path lookup to prevent performance
regression from #1535. (Andrew White, #1544)</li>
</ul>
<h3 id="3-4-1-2016-01-25">3.4.1 / 2016-01-25</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix no method error when rendering templates with explicit <code>:file</code>
parameters for Rails version <code>4.2.5.1</code>. (Andrew White, Sam Phippen, #1535)</li>
</ul>
<h3 id="3-4-0-2015-11-11">3.4.0 / 2015-11-11</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Improved the failure message for <code>have_rendered</code> matcher on a redirect
response. (Alex Egan, #1440)</li>
<li>Add configuration option to filter out Rails gems from backtraces.
(Bradley Schaefer, #1458)</li>
<li>Enable resolver cache for view specs for a large speed improvement
(Chris Zetter, #1452)</li>
<li>Add <code>have_enqueued_job</code> matcher for checking if a block has queued jobs.
(Wojciech Wnętrzak, #1464)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fix another load order issued which causes an undefined method <code>fixture_path</code> error
when loading rspec-rails after a spec has been created. (Nikki Murray, #1430)</li>
<li>Removed incorrect surrounding whitespace in the rspec-rails backtrace
exclusion pattern for its own <code>lib</code> code. (Jam Black, #1439)</li>
</ul>
<h3 id="3-3-3-2015-07-15">3.3.3 / 2015-07-15</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix issue with generators caused by <code>Rails.configuration.hidden_namespaces</code>
including symbols. (Dan Kohn, #1414)</li>
</ul>
<h3 id="3-3-2-2015-06-18">3.3.2 / 2015-06-18</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix regression that caused stubbing abstract ActiveRecord model
classes to trigger internal errors in rails due the the verifying
double lifecycle wrongly calling <code>define_attribute_methods</code> on the
abstract AR class. (Jon Rowe, #1396)</li>
</ul>
<h3 id="3-3-1-2015-06-14">3.3.1 / 2015-06-14</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix regression that caused stubbing ActiveRecord model classes to
trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)</li>
</ul>
<h3 id="3-3-0-2015-06-12">3.3.0 / 2015-06-12</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Add support for PATCH to route specs created via scaffold. (Igor Zubkov, #1336)</li>
<li>Improve controller and routing spec calls to <code>routes</code> by using <code>yield</code>
instead of <code>call</code>. (Anton Davydov, #1308)</li>
<li>Add support for <code>ActiveJob</code> specs as standard <code>RSpec::Rails::RailsExampleGoup</code>s
via both <code>type: :job</code> and inferring type from spec directory <code>spec/jobs</code>.
(Gabe Martin-Dempesy, #1361)</li>
<li>Include <code>RSpec::Rails::FixtureSupport</code> into example groups using metadata
<code>use_fixtures: true</code>. (Aaron Kromer, #1372)</li>
<li>Include <code>rspec:request</code> generator for generating request specs; this is an
alias of <code>rspec:integration</code> (Aaron Kromer, #1378)</li>
<li>Update <code>rails_helper</code> generator with a default check to abort the spec run
when the Rails environment is production. (Aaron Kromer, #1383)</li>
</ul>
<h3 id="3-2-3-2015-06-06">3.2.3 / 2015-06-06</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix regression with the railtie resulting in undefined method <code>preview_path=</code>
on Rails 3.x and 4.0 (Aaron Kromer, #1388)</li>
</ul>
<h3 id="3-2-2-2015-06-03">3.2.2 / 2015-06-03</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix auto-including of generic <code>Helper</code> object for view specs sitting in the
<code>app/views</code> root (David Daniell, #1289)</li>
<li>Remove pre-loading of ActionMailer in the Railtie (Aaron Kromer, #1327)</li>
<li>Fix undefined method <code>need_auto_run=</code> error when using Ruby 2.1 and Rails 3.2
without the test-unit gem (Orien Madgwick, #1350)</li>
<li>Fix load order issued which causes an undefined method <code>fixture_path</code> error
when loading rspec-rails after a spec has been created. (Aaron Kromer, #1372)</li>
</ul>
<h3 id="3-2-1-2015-02-23">3.2.1 / 2015-02-23</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Add missing <code>require</code> to RSpec generator root fixing an issue where Rail's
autoload does not find it in some environments. (Aaron Kromer, #1305)</li>
<li><code>be_routable</code> matcher now has the correct description. (Tony Ta, #1310)</li>
<li>Fix dependency to allow Rails 4.2.x patches / pre-releases (Lucas Mazza, #1318)</li>
<li>Disable the <code>test-unit</code> gem's autorunner on projects running Rails < 4.1 and
Ruby < 2.2 (Aaron Kromer, #1320)</li>
</ul>
<h3 id="3-2-0-2015-02-03">3.2.0 / 2015-02-03</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Include generator for <code>ActionMailer</code> mailer previews (Takashi Nakagawa, #1185)</li>
<li>Configure the <code>ActionMailer</code> preview path via a Railtie (Aaron Kromer, #1236)</li>
<li>Show all RSpec generators when running <code>rails generate</code> (Eliot Sykes, #1248)</li>
<li>Support Ruby 2.2 with Rails 3.2 and 4.x (Aaron Kromer, #1264, #1277)</li>
<li>Improve <code>instance_double</code> to support verifying dynamic column methods defined
by <code>ActiveRecord</code> (Jon Rowe, #1238)</li>
<li>Mirror the use of Ruby 1.9 hash syntax for the <code>type</code> tags in the spec
generators on Rails 4. (Michael Stock, #1292)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fix <code>rspec:feature</code> generator to use <code>RSpec</code> namespace preventing errors when
monkey-patching is disabled. (Rebecca Skinner, #1231)</li>
<li>Fix <code>NoMethodError</code> caused by calling <code>RSpec.feature</code> when Capybara is not
available or the Capybara version is < 2.4.0. (Aaron Kromer, #1261)</li>
<li>Fix <code>ArgumentError</code> when using an anonymous controller which inherits an
outer group's anonymous controller. (Yuji Nakayama, #1260)</li>
<li>Fix "Test is not a class (TypeError)" error when using a custom <code>Test</code> class
in Rails 4.1 and 4.2. (Aaron Kromer, #1295)</li>
</ul>
<h3 id="3-1-0-2014-09-04">3.1.0 / 2014-09-04</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Switch to using the <code>have_http_status</code> matcher in spec generators. (Aaron Kromer, #1086)</li>
<li>Update <code>rails_helper</code> generator to allow users to opt-in to auto-loading
<code>spec/support</code> files instead of forcing it upon them. (Aaron Kromer, #1137)</li>
<li>Include generator for <code>ActiveJob</code>. (Abdelkader Boudih, #1155)</li>
<li>Improve support for non-ActiveRecord apps by not loading ActiveRecord related
settings in the generated <code>rails_helper</code>. (Aaron Kromer, #1150)</li>
<li>Remove Ruby warnings as a suggested configuration. (Aaron Kromer, #1163)</li>
<li>Improve the semantics of the controller spec for scaffolds. (Griffin Smith, #1204)</li>
<li>Use <code>#method</code> syntax in all generated controller specs. (Griffin Smith, #1206)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, #1142)</li>
</ul>
<h3 id="3-0-2-2014-07-21">3.0.2 / 2014-07-21</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Suppress warning in <code>SetupAndTeardownAdapter</code>. (André Arko, #1085)</li>
<li>Remove dependency on Rubygems. (Andre Arko & Doc Riteze, #1099)</li>
<li>Standardize controller spec template style. (Thomas Kriechbaumer, #1122)</li>
</ul>
<h3 id="3-0-1-2014-06-02">3.0.1 / 2014-06-02</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1">Full Changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix missing require in <code>rails g rspec:install</code>. (Sam Phippen, #1058)</li>
</ul>
<h3 id="3-0-0-2014-06-01">3.0.0 / 2014-06-01</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0">Full Changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Separate RSpec configuration in generated <code>spec_helper</code> from Rails setup
and associated configuration options. Moving Rails specific settings and
options to <code>rails_helper</code>. (Aaron Kromer)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fix an issue with fixture support when <code>ActiveRecord</code> isn't loaded. (Jon Rowe)</li>
</ul>
<h3 id="3-0-0-rc1-2014-05-18">3.0.0.rc1 / 2014-05-18</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.0.0.beta2...v3.0.0.rc1">Full Changelog</a></p>
<p>Breaking Changes for 3.0.0:</p>
<ul>
<li>Extracts the <code>mock_model</code> and <code>stub_model</code> methods to the
<code>rspec-activemodel-mocks</code> gem. (Thomas Holmes)</li>
<li>Spec types are no longer inferred by location, they instead need to be
explicitly tagged. The old behaviour is enabled by
<code>config.infer_spec_type_from_file_location!</code>, which is still supplied
in the default generated <code>spec_helper.rb</code>. (Xavier Shay, Myron Marston)</li>
<li><code>controller</code> macro in controller specs no longer mutates
<code>:described_class</code> metadata. It still overrides the subject and sets
the controller, though. (Myron Marston)</li>
<li>Stop depending on or requiring <code>rspec-collection_matchers</code>. Users who
want those matchers should add the gem to their Gemfile and require it
themselves. (Myron Marston)</li>
<li>Removes runtime dependency on <code>ActiveModel</code>. (Rodrigo Rosenfeld Rosas)</li>
</ul>
<p>Enhancements:</p>
<ul>
<li>Supports Rails 4.x reference attribute ids in generated scaffold for view
specs. (Giovanni Cappellotto)</li>
<li>Add <code>have_http_status</code> matcher. (Aaron Kromer)</li>
<li>Add spec type metadata to generator templates. (Aaron Kromer)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fix an inconsistency in the generated scaffold specs for a controller. (Andy Waite)</li>
<li>Ensure <code>config.before(:all, type: <type>)</code> hooks run before groups
of the given type, even when the type is inferred by the file
location. (Jon Rowe, Myron Marston)</li>
<li>Switch to parsing params with <code>Rack::Utils::parse_nested_query</code> to match Rails.
(Tim Watson)</li>
<li>Fix incorrect namespacing of anonymous controller routes. (Aaron Kromer)</li>
</ul>
<h3 id="3-0-0-beta2-2014-02-17">3.0.0.beta2 / 2014-02-17</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v3.0.0.beta1...v3.0.0.beta2">Full Changelog</a></p>
<p>Breaking Changes for 3.0.0:</p>
<ul>
<li>Removes the <code>--webrat</code> option for the request spec generator (Andy Lindeman)</li>
<li>Methods from <code>Capybara::DSL</code> (e.g., <code>visit</code>) are no longer available in
controller specs. It is more appropriate to use capybara in feature specs
(<code>spec/features</code>) instead. (Andy Lindeman)</li>
<li><code>infer_base_class_for_anonymous_controllers</code> is
enabled by default. (Thomas Holmes)</li>
<li>Capybara 2.2.0 or above is required for feature specs. (Andy Lindeman)</li>
</ul>
<p>Enhancements:</p>
<ul>
<li>Improve <code>be_valid</code> matcher for non-ActiveModel::Errors implementations (Ben Hamill)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Use <code>__send__</code> rather than <code>send</code> to prevent naming collisions (Bradley Schaefer)</li>
<li>Supports Rails 4.1. (Andy Lindeman)</li>
<li>Routes are drawn correctly for anonymous controllers with abstract
parents. (Billy Chan)</li>
<li>Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)</li>
<li>Anonymous controllers inherit from <code>ActionController::Base</code> if <code>ApplicationController</code>
is not present. (Jon Rowe)</li>
<li>Require <code>rspec/collection_matchers</code> when <code>rspec/rails</code> is required. (Yuji Nakayama)</li>
</ul>
<h3 id="3-0-0-beta1-2013-11-07">3.0.0.beta1 / 2013-11-07</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.99.0...v3.0.0.beta1">Full Changelog</a></p>
<p>Breaking Changes for 3.0.0:</p>
<ul>
<li>Extracts <code>autotest</code> and <code>autotest-rails</code> support to <code>rspec-autotest</code> gem.
(Andy Lindeman)</li>
</ul>
<h3 id="2-99-0-2014-06-01">2.99.0 / 2014-06-01</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.99.0.rc1...v2.99.0">Full Changelog</a></p>
<p>No changes. Just taking it out of pre-release.</p>
<h3 id="2-99-0-rc1-2014-05-18">2.99.0.rc1 / 2014-05-18</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.99.0.beta2...v2.99.0.rc1">Full Changelog</a></p>
<p>Deprecations</p>
<ul>
<li>Deprecates <code>stub_model</code> and <code>mock_model</code> in favor of the
<code>rspec-activemodel-mocks</code> gem. (Thomas Holmes)</li>
<li>Issue a deprecation to instruct users to configure
<code>config.infer_spec_type_from_file_location!</code> during the
upgrade process since spec type inference is opt-in in 3.0.
(Jon Rowe)</li>
<li>Issue a deprecation when <code>described_class</code> is accessed in a controller
example group that has used the <code>controller { }</code> macro to generate an
anonymous controller class, since in 2.x, <code>described_class</code> would
return that generated class but in 3.0 it will continue returning the
class passed to <code>describe</code>. (Myron Marston)</li>
</ul>
<h3 id="2-99-0-beta2-2014-02-17">2.99.0.beta2 / 2014-02-17</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.99.0.beta1...v2.99.0.beta2">Full Changelog</a></p>
<p>Deprecations:</p>
<ul>
<li>Deprecates the <code>--webrat</code> option to the scaffold and request spec generator (Andy Lindeman)</li>
<li>Deprecates the use of <code>Capybara::DSL</code> (e.g., <code>visit</code>) in controller specs.
It is more appropriate to use capybara in feature specs (<code>spec/features</code>)
instead. (Andy Lindeman)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Use <code>__send__</code> rather than <code>send</code> to prevent naming collisions (Bradley Schaefer)</li>
<li>Supports Rails 4.1. (Andy Lindeman)</li>
<li>Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)</li>
<li>Anonymous controllers inherit from <code>ActionController::Base</code> if <code>ApplicationController</code>
is not present. (Jon Rowe)</li>
</ul>
<h3 id="2-99-0-beta1-2013-11-07">2.99.0.beta1 / 2013-11-07</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.99.0.beta1">Full Changelog</a></p>
<p>Deprecations:</p>
<ul>
<li>Deprecates autotest integration in favor of the <code>rspec-autotest</code> gem. (Andy
Lindeman)</li>
</ul>
<p>Enhancements:</p>
<ul>
<li>Supports Rails 4.1 and Minitest 5. (Patrick Van Stee)</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fixes "warning: instance variable @orig_routes not initialized" raised by
controller specs when <code>--warnings</code> are enabled. (Andy Lindeman)</li>
<li>Where possible, check against the version of ActiveRecord, rather than
Rails. It is possible to use some of rspec-rails without all of Rails.
(Darryl Pogue)</li>
<li>Explicitly depends on <code>activemodel</code>. This allows libraries that do not bring
in all of <code>rails</code> to use <code>rspec-rails</code>. (John Firebaugh)</li>
</ul>
<h3 id="2-14-1-2013-12-29">2.14.1 / 2013-12-29</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1">full changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fixes "warning: instance variable @orig_routes not initialized" raised by
controller specs when <code>--warnings</code> are enabled. (Andy Lindeman)</li>
<li>Where possible, check against the version of ActiveRecord, rather than
Rails. It is possible to use some of rspec-rails without all of Rails.
(Darryl Pogue)</li>
<li>Supports Rails 4.1 and Minitest 5. (Patrick Van Stee, Andy Lindeman)</li>
<li>Explicitly depends on <code>activemodel</code>. This allows libraries that do not bring
in all of <code>rails</code> to use <code>rspec-rails</code>. (John Firebaugh)</li>
<li>Use <code>__send__</code> rather than <code>send</code> to prevent naming collisions (Bradley Schaefer)</li>
</ul>
<h3 id="2-14-0-2013-07-06">2.14.0 / 2013-07-06</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0">Full Changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Rake tasks do not define methods that might interact with other libraries.
(Fujimura Daisuke)</li>
<li>Reverts fix for out-of-order <code>let</code> definitions in controller specs after the
issue was fixed upstream in rspec-core. (Andy Lindeman)</li>
<li>Fixes deprecation warning when using <code>expect(Model).to have(n).records</code> with
Rails 4. (Andy Lindeman)</li>
</ul>
<h3 id="2-14-0-rc1-2013-05-27">2.14.0.rc1 / 2013-05-27</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1">Full Changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Prelimiarily support Rails 4.1 by updating adapters to support Minitest 5.0.
(Andy Lindeman)</li>
</ul>
<p>Bug fixes</p>
<ul>
<li><code>rake stats</code> runs correctly when spec files exist at the top level of the
spec/ directory. (Benjamin Fleischer)</li>
</ul>
<h3 id="2-13-2-2013-05-18">2.13.2 / 2013-05-18</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2">Full Changelog</a></p>
<p>Bug fixes</p>
<ul>
<li><code>let</code> definitions may override methods defined in modules brought in via
<code>config.include</code> in controller specs. Fixes regression introduced in 2.13.
(Andy Lindeman, Jon Rowe)</li>
<li>Code that checks Rails version numbers is more robust in cases where Rails is
not fully loaded. (Andy Lindeman)</li>
</ul>
<p>Enhancements</p>
<ul>
<li>Document how the spec/support directory works. (Sam Phippen)</li>
</ul>
<h3 id="2-13-1-2013-04-27">2.13.1 / 2013-04-27</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1">Full Changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>View specs are no longer generated if no template engine is specified (Kevin
Glowacz)</li>
<li><code>ActionController::Base.allow_forgery_protection</code> is set to its original
value after each example. (Mark Dimas)</li>
<li><code>patch</code> is supported in routing specs. (Chris Your)</li>
<li>Routing assertions are supported in controller specs in Rails 4. (Andy
Lindeman)</li>
<li>Fix spacing in the install generator template (Taiki ONO)</li>
</ul>
<h3 id="2-13-0-2013-02-23">2.13.0 / 2013-02-23</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0">Full Changelog</a></p>
<p>Enhancements</p>
<ul>
<li><code>be_valid</code> matcher includes validation error messages. (Tom Scott)</li>
<li>Adds cucumber scenario showing how to invoke an anonymous controller's
non-resourceful actions. (Paulo Luis Franchini Casaretto)</li>
<li>Null template handler is used when views are stubbed. (Daniel Schierbeck)</li>
<li>The generated <code>spec_helper.rb</code> in Rails 4 includes a check for pending
migrations. (Andy Lindeman)</li>
<li>Adds <code>rake spec:features</code> task. (itzki)</li>
<li>Rake tasks are automatically generated for each spec/ directory.
(Rudolf Schmidt)</li>
</ul>
<h3 id="2-12-2-2013-01-12">2.12.2 / 2013-01-12</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2">Full Changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Reverts earlier fix where anonymous controllers defined the <code>_routes</code> method
to support testing of redirection and generation of URLs from other contexts.
The implementation ended up breaking the ability to refer to non-anonymous
routes in the context of the controller under test.</li>
<li>Uses <code>assert_select</code> correctly in view specs generated by scaffolding. (Andy
Lindeman)</li>
</ul>
<h3 id="2-12-1-2013-01-07">2.12.1 / 2013-01-07</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1">Full Changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Operates correctly when ActiveRecord is only partially loaded (e.g., with
older versions of Mongoid). (Eric Marden)</li>
<li><code>expect(subject).to have(...).errors_on</code> operates correctly for
ActiveResource models where <code>valid?</code> does not accept an argument. (Yi Wen)</li>
<li>Rails 4 support for routing specs. (Andy Lindeman)</li>
<li>Rails 4 support for <code>ActiveRecord::Relation</code> and the <code>=~</code> operator matcher.
(Andy Lindeman)</li>
<li>Anonymous controllers define <code>_routes</code> to support testing of redirection
and generation of URLs from other contexts. (Andy Lindeman)</li>
</ul>
<h3 id="2-12-0-2012-11-12">2.12.0 / 2012-11-12</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0">Full Changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Support validation contexts when using <code>#errors_on</code> (Woody Peterson)</li>
<li>Include RequestExampleGroup in groups in spec/api</li>
</ul>
<p>Bug fixes</p>
<ul>
<li>Add <code>should</code> and <code>should_not</code> to <code>CollectionProxy</code> (Rails 3.1+) and
<code>AssociationProxy</code> (Rails 3.0). (Myron Marston)</li>
<li><code>controller.controller_path</code> is set correctly for view specs in Rails 3.1+.
(Andy Lindeman)</li>
<li>Generated specs support module namespacing (e.g., in a Rails engine).
(Andy Lindeman)</li>
<li><code>render</code> properly infers the view to be rendered in Rails 3.0 and 3.1
(John Firebaugh)</li>
<li>AutoTest mappings involving config/ work correctly (Brent J. Nordquist)</li>
<li>Failures message for <code>be_new_record</code> are more useful (Andy Lindeman)</li>
</ul>
<h3 id="2-11-4-2012-10-14">2.11.4 / 2012-10-14</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4">Full Changelog</a></p>
<p>Capybara-2.0 integration support:</p>
<ul>
<li>include RailsExampleGroup in spec/features (necessary when there is no AR)</li>
<li>include Capybara::DSL and Capybara::RSpecMatchers in spec/features</li>
</ul>
<p>See <a href="https://github.com/jnicklas/capybara/pull/809">https://github.com/jnicklas/capybara/pull/809</a>
and <a href="https://rubydoc.info/gems/rspec-rails/file/Capybara.md">https://rubydoc.info/gems/rspec-rails/file/Capybara.md</a>
for background.</p>
<p>2.11.1, .2, .3 were yanked due to errant documentation.</p>
<h3 id="2-11-0-2012-07-07">2.11.0 / 2012-07-07</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0">Full Changelog</a></p>
<p>Enhancements</p>
<ul>
<li>The generated <code>spec/spec_helper.rb</code> sets <code>config.order = "random"</code> so that
specs run in random order by default.</li>
<li>rename <code>render_template</code> to <code>have_rendered</code> (and alias to <code>render_template</code>
for backward compatibility)</li>
<li>The controller spec generated with <code>rails generate scaffold namespaced::model</code>
matches the spec generated with <code>rails generate scaffold namespaced/model</code>
(Kohei Hasegawa)</li>
</ul>
<p>Bug fixes</p>
<ul>
<li>"uninitialized constant" errors are avoided when using using gems like
<code>rspec-rails-uncommitted</code> that define <code>Rspec::Rails</code> before <code>rspec-rails</code>
loads (Andy Lindeman)</li>
</ul>
<h3 id="2-10-1-2012-05-03">2.10.1 / 2012-05-03</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1">Full Changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>fix regression introduced in 2.10.0 that broke integration with Devise
(<a href="https://github.com/rspec/rspec-rails/issues/534">https://github.com/rspec/rspec-rails/issues/534</a>)</li>
<li>remove generation of helper specs when running the scaffold generator, as
Rails already does this (Jack Dempsey)</li>
</ul>
<h3 id="2-10-0-2012-05-03">2.10.0 / 2012-05-03</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0">Full Changelog</a></p>
<p>Bug fixes</p>
<ul>
<li><code>render_views</code> called in a spec can now override the config setting. (martinsvalin)</li>
<li>Fix <code>render_views</code> for anonymous controllers on 1.8.7. (hudge, mudge)</li>
<li>Eliminate use of deprecated <code>process_view_paths</code></li>
<li>Fix false negatives when using <code>route_to</code> matcher with <code>should_not</code></li>
<li><code>controller</code> is no longer nil in <code>config.before</code> hooks</li>
<li>Change <code>request.path_parameters</code> keys to symbols to match real Rails
environment (Nathan Broadbent)</li>
<li>Silence deprecation warnings in pre-2.9 generated view specs (Jonathan del
Strother)</li>
</ul>
<h3 id="2-9-0-2012-03-17">2.9.0 / 2012-03-17</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0">Full Changelog</a></p>
<p>Enhancements</p>
<ul>
<li>add description method to RouteToMatcher (John Wulff)</li>
<li>Run "db:test:clone_structure" instead of "db:test:prepare" if Active Record's
schema format is ":sql". (Andrey Voronkov)</li>
</ul>
<p>Bug fixes</p>
<ul>
<li><code>mock_model(XXX).as_null_object.unknown_method</code> returns self again</li>
<li>Generated view specs use different IDs for each attribute.</li>
</ul>
<h3 id="2-8-1-2012-01-04">2.8.1 / 2012-01-04</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1">Full Changelog</a></p>
<p>NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility with
stub_model in rspec-rails. This release fixes that issue, but it means that
you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
3.2.0.rc2.</p>
<ul>
<li>Bug fixes
<ul>
<li>Explicitly stub valid? in stub_model. Fixes stub_model for rails versions
>= 3.2.0.rc2.</li>
</ul></li>
</ul>
<h3 id="2-8-0-2012-01-04">2.8.0 / 2012-01-04</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0">Full Changelog</a></p>
<ul>
<li>Enhancements
<ul>
<li>Eliminate deprecation warnings in generated view specs in Rails 3.2</li>
<li>Ensure namespaced helpers are included automatically (Evgeniy Dolzhenko)</li>
<li>Added cuke scenario documenting which routes are generated for anonymous
controllers (Alan Shields)</li>
</ul></li>
</ul>
<h3 id="2-8-0-rc2-2011-12-19">2.8.0.rc2 / 2011-12-19</h3>
<p><a href="https://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2">Full Changelog</a></p>
<ul>
<li><p>Enhancements</p>
<ul>
<li>Add session hash to generated controller specs (Thiago Almeida)</li>
<li>Eliminate deprecation warnings about InstanceMethods modules in Rails 3.2</li>
</ul></li>
<li><p>Bug fixes</p>
<ul>
<li>Stub attribute accessor after <code>respond_to?</code> call on mocked model (Igor
Afonov)</li>
</ul></li>
</ul>
<h3 id="2-8-0-rc1-2011-11-06">2.8.0.rc1 / 2011-11-06</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1">Full Changelog</a></p>
<ul>
<li><p>Enhancements</p>
<ul>
<li>Removed unnecessary "config.mock_with :rspec" from spec_helper.rb (Paul
Annesley)</li>
</ul></li>
<li><p>Changes</p>
<ul>
<li>No API changes for rspec-rails in this release, but some internals
changed to align with rspec-core-2.8</li>
</ul></li>
<li><p><a href="https://github.com/rspec/rspec-core/blob/master/Changelog.md">rspec-core</a></p></li>
<li><p><a href="https://github.com/rspec/rspec-expectations/blob/master/Changelog.md">rspec-expectations</a></p></li>
<li><p><a href="https://github.com/rspec/rspec-mocks/blob/master/Changelog.md">rspec-mocks</a></p></li>
</ul>
<h3 id="2-7-0-2011-10-16">2.7.0 / 2011-10-16</h3>
<p><a href="https://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0">Full Changelog</a></p>