File: CHANGES.html

package info (click to toggle)
jruby1.0 1.0.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 28,004 kB
  • ctags: 33,860
  • sloc: ruby: 166,858; java: 90,218; yacc: 1,572; xml: 708; sh: 700; makefile: 53; ansic: 19
file content (1519 lines) | stat: -rw-r--r-- 40,524 bytes parent folder | download
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>File: CHANGES</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



  <div id="fileHeader">
    <h1>CHANGES</h1>
    <table class="header-table">
    <tr class="top-aligned-row">
      <td><strong>Path:</strong></td>
      <td>CHANGES
      </td>
    </tr>
    <tr class="top-aligned-row">
      <td><strong>Last Update:</strong></td>
      <td>Thu Nov 01 10:35:26 CDT 2007</td>
    </tr>
    </table>
  </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <h2>Version 1.0.8</h2>
<p>
Another bugfix release - this time to resolve the version mismatch
</p>
<h2>Version 1.0.7</h2>
<p>
Quick bugfix release to ensure that you don&#8216;t have to have the rspec
gem installed in order to use autotest with rspec_on_rails.
</p>
<ul>
<li>Fixed [13015] autotest gives failure in &#8216;spec_command&#8217; after
upgrade 1.0.5 to 1.0.6

</li>
</ul>
<h2>Version 1.0.6</h2>
<p>
The &quot;holy cow, batman, it&#8216;s been a long time since we released
and there are a ton of bug fixes, patches and even new features&quot;
release.
</p>
<p>
Warning: Spec::Rails users: In fixing 11508, we&#8216;ve removed the
raise_controller_errors method. As long as you follow the upgrade
instructions and run &#8216;script/generate rspec&#8217; you&#8216;ll be
fine, but if you skip this step you need to manually go into spec_helper.rb
and remove the call to that method (if present - it might not be if you
haven&#8216;t upgraded in a while).
</p>
<p>
Warning: Implementors of custom formatters. Formatters will now be sent an
Example object instead of just a <a
href="../classes/String.html">String</a> for example_started,
example_passed and example_failed. In certain scenarios (Spec::Ui with
Spec::Distributed), the formatter must ask the Example for its sequence
number instead of keeping track of a sequence number internal to the
formatter. Most of you shouldn&#8216;t need to upgrade your formatters
though - the Example#to_s method returns the example name/description, so
you should be able to use the passed Example instance as if it were a <a
href="../classes/String.html">String</a>.
</p>
<ul>
<li>Applied [12986] <a href="../classes/Autotest.html">Autotest</a> Specs +
Refactoring (Patch from Scott Tayler)

</li>
<li>Added a close method to formatters, which allows them to gracefully close
streams.

</li>
<li>Applied [12935] Remove requirement that mocha must be installed as a gem
when used as mocking framework. (Patch from Ryan Kinderman).

</li>
<li>Fixed [12893] RSpec&#8216;s <a href="../classes/Autotest.html">Autotest</a>
should work with rspec&#8216;s trunk

</li>
<li>Fixed [12865] Partial mock error when object has an @options instance var

</li>
<li>Applied [12701] Allow checking of content captured with content_for in view
specs (Patch from Jens Krmer)

</li>
<li>Applied [12817] Cannot include same shared behaviour when required with
absolute paths (Patch from Ian Leitch)

</li>
<li>Applied [12719] rspec_on_rails should not include pagination helper (Patch
from Matthijs Langenberg)

</li>
<li>Fixed [12714] helper spec not finding rails core helpers

</li>
<li>Applied [12611] should_not redirect_to implementation (Patch from Yurii
Rashkovskii)

</li>
<li>Applied [12682] Not correctly aliasing original &#8216;stub!&#8217; and
&#8216;should_receive&#8217; methods for ApplicationController (Patch from
Matthijs Langenberg)

</li>
<li>Disabled controller.should_receive(:render) and controller.stub!(:render).
Use expect_render or stub_render instead.

</li>
<li>Applied [12484] Allow a Behaviour&#8216;s Description to flow through to
the Formatter (Patch from Bob Cotton)

</li>
<li>Fixed [12448] The spec:plugins rake task from rspec_on_rails should ignore
specs from the rspec_on_rails plugin

</li>
<li>Applied [12300] rr integration (patch from Kyle Hargraves)

</li>
<li>Implemented [12284] mock_with :rr (integration with RR mock framework: <a
href="http://rubyforge.org/projects/pivotalrb">rubyforge.org/projects/pivotalrb</a>/)

</li>
<li>Applied [12237] (tiny) added full path to mate in switch_command (Patch
from Carl Porth)

</li>
<li>Formatters will now be sent an Example object instead of just a <a
href="../classes/String.html">String</a> for certain methods

</li>
<li>All <a href="../classes/Spec/Rake/SpecTask.html">Spec::Rake::SpecTask</a>
attributes can now be procs, which allows for lazy evaluation.

</li>
<li>Changed the Spec::Ui interfaces slightly. See examples.

</li>
<li>Applied [12174] mishandling of paths with spaces in spec_mate
switch_command (Patch from Carl Porth)

</li>
<li>Implemented [8315] File &quot;Go to&#8230;&quot; functionality

</li>
<li>Applied [11917] Cleaner Spec::Ui error for failed Selenium connection
(Patch from Ian Dees)

</li>
<li>Applied [11888] rspec_on_rails spews out warnings when assert_select is
used with an XML response (Patch from Ian Leitch)

</li>
<li>Applied [12010] Nicer failure message formatting (Patch from Wincent
Colaiuta)

</li>
<li>Applied [12156] smooth open mate patch (Patch from Ienaga Eiji)

</li>
<li>Applied [10577] Rails with Oracle breaks 0.9.2. (Patch from Sinclair Bain)

</li>
<li>Fixed [12079] auto-generated example name incomplete: should have 1 error
on .&#8230;]

</li>
<li>Applied [12066] Docfix for mocks/mocks.page (Patch from Kyle Hargraves)

</li>
<li>Fixed [11891] script/generate rspec_controller fails to create appropriate
views (from templates) on edge rails

</li>
<li>Applied [11921] Adds the correct controller_name from
derived_controller_name() to the ViewExampleController (Patch from Eloy
Duran)

</li>
<li>Fixed [11903] config.include with behaviour_type &#8216;hash&#8217; does
not work

</li>
<li>Examples without blocks and pending is now reported with a P instead of a *

</li>
<li>Pending blocks that now pass are rendered blue

</li>
<li>New behaviour for after: If an after block raises an error, the other ones
will still run instead of bailing at the first.

</li>
<li>Made it possible to run spec from RSpec.tmbundle with &#8212;drb against a
Rails spec_server.

</li>
<li>Applied [11868] Add ability for pending to optionally hold a failing block
and to fail when it passes (Patch from Bob Cotton)

</li>
<li>Fixed [11843] watir_behaviour missing from spec_ui gem

</li>
<li>Added &#8216;switch between source and spec file&#8217; command in
Spec::Mate (based on code from Ruy Asan)

</li>
<li>Applied [11509] Documentation - RSpec requires hpricot

</li>
<li>Applied [11807] Daemonize spec_server and rake tasks to manage them. (patch
from Kyosuke MOROHASHI)

</li>
<li>Added pending(message) method

</li>
<li>Fixed [11777] should render_template doesn&#8216;t check paths correctly

</li>
<li>Fixed [11749] Use of &#8216;rescue =&gt; e&#8217; does not catch all
exceptions

</li>
<li>Fixed [11793] should raise_error(&#8216;with a message&#8217;) does not
work correctly

</li>
<li>Fixed [11774] Mocks should respond to :kind_of? in the same way they
respond to :is_a?

</li>
<li>Fixed [11508] Exceptions are not raised for Controller Specs (removed
experimental raise_controller_errors)

</li>
<li>Applied [11615] Partial mock methods give ambiguous failures when given a
method name as a <a href="../classes/String.html">String</a> (Patch from
Jay Phillips)

</li>
<li>Fixed [11545] Rspec doesn&#8216;t handle should_receive on ActiveRecord
associations (Patch from Ian White)

</li>
<li>Fixed [11514] configuration.use_transactional_fixtures is ALWAYS true,
regardless of assignment

</li>
<li>Improved generated RESTful controller examples to cover both successful and
unsuccessful POST and PUT

</li>
<li>Changed TextMate snippets for controllers to pass controller class names to
describe rather than controller_name.

</li>
<li>Changed TextMate snippets for mocks to use no_args() and any_args() instead
of the deprecated Symbols.

</li>
<li>Applied [11500] Documentation: no rails integration specs in 1.0

</li>
<li>Renamed SpecMate&#8216;s shortcuts for running all examples and focused
examples to avoid conflicts (CMD-d and CMD-i)

</li>
<li>Added a TextMate snippet for custom matchers, lifted from Geoffrey
Grosenbach&#8216;s RSpec peepcode show.

</li>
<li>The translator translates mock constraints to the new matchers that were
introduced in 1.0.4

</li>
<li>Documented environment variables for <a
href="../classes/Spec/Rake/SpecTask.html">Spec::Rake::SpecTask</a>. Renamed
SPECOPTS and RCOVOPTS to SPEC_OPTS and RCOV_OPTS.

</li>
<li>Fixed [10534] Windows: undefined method &#8216;controller_name&#8216;

</li>
</ul>
<h2>Version 1.0.5</h2>
<p>
Bug fixes. <a href="../classes/Autotest.html">Autotest</a> plugin tweaks.
</p>
<ul>
<li>Fixed [11378] fix to 10814 broke drb (re-opened 10814)

</li>
<li>Fixed [11223] Unable to access flash from rails helper specs

</li>
<li>Fixed [11337] autotest runs specs redundantly

</li>
<li>Fixed [11258] windows: autotest won&#8216;t run

</li>
<li>Applied [11253] Tweaks to autotest file mappings (Patch from Wincent
Colaiuta)

</li>
<li>Applied [11252] Should be able to re-load file containing shared behaviours
without raising an exception (Patch from Wincent Colaiuta)

</li>
<li>Fixed [11247] standalone autotest doesn&#8216;t work because of unneeded
autotest.rb

</li>
<li>Applied [11221] <a href="../classes/Autotest.html">Autotest</a> support
does not work w/o Rails Gem installed (Patch from Josh Knowles)

</li>
</ul>
<h2>Version 1.0.4</h2>
<p>
The getting ready for JRuby release.
</p>
<ul>
<li>Fixed [11181] behaviour_type scoping of config.before(:each) is not working

</li>
<li>added mock argument constraint matchers (anything(), boolean(),
an_instance_of(Type)) which work with rspec or mocha

</li>
<li>added mock argument constraint matchers (any_args(), no_args()) which only
work with rspec

</li>
<li>deprecated rspec&#8216;s symbol mock argument constraint matchers
(:any_args, :no_args, :anything, :boolean, :numeric, :string)

</li>
<li>Added tarball of rspec_on_rails to the release build to support folks
working behind a firewall that blocks svn access.

</li>
<li>Fixed [11137] rspec incorrectly handles flash after resetting the session

</li>
<li>Fixed [11143] Views code for ActionController::Base#render broke between
1.0.0 and 1.0.3 on Rails Edge r6731

</li>
<li>Added raise_controller_errors for controller examples in Spec::Rails

</li>
</ul>
<h2>Version 1.0.3</h2>
<p>
Bug fixes.
</p>
<ul>
<li>Fixed [11104] Website uses old specify notation

</li>
<li>Applied [11101] StringHelpers.starts_with?(prefix) assumes a string
parameter for <em>prefix</em>

</li>
<li>Removed &#8216;rescue nil&#8217; which was hiding errors in controller
examples.

</li>
<li>Fixed [11075] controller specs fail when using mocha without
integrated_views

</li>
<li>Fixed problem with redirect_to failing incorrectly against edge rails.

</li>
<li>Fixed [11082] RspecResourceGenerator should be RspecScaffoldGenerator

</li>
<li>Fixed [10959] Focused Examples do not work for Behaviour defined with
constant with modules

</li>
</ul>
<h2>Version 1.0.2</h2>
<p>
This is just to align the version numbers in rspec and rspec_on_rails.
</p>
<h2>Version 1.0.1</h2>
<p>
This is a maintenance release with mostly cleaning up, and one minor
enhancement - Modules are automatically included when described directly.
</p>
<ul>
<li>Renamed Spec::Rails&#8217; rspec_resource generator to rspec_scaffold.

</li>
<li>Removed Spec::Rails&#8217; be_feed matcher since it&#8216;s based on
assert_select_feed which is not part of Rails (despite that docs for
assert_select_encoded says it is).

</li>
<li>describe(SomeModule) will include that module in the examples. Like for
Spec::Rails helpers, but now also in core.

</li>
<li>Header in HTML report will be yellow instead of red if there is one failed
example

</li>
<li>Applied [10951] Odd instance variable name in rspec_model template (patch
from Kyle Hargraves)

</li>
<li>Improved integration with autotest (Patches from Ryan Davis and David
Goodland)

</li>
<li>Some small fixes to make all specs run on JRuby.

</li>
</ul>
<h2>Version 1.0.0</h2>
<p>
The stake in the ground release. This represents a commitment to the API as
it is. No significant backwards compatibility changes in the API are
expected after this release.
</p>
<ul>
<li>Fixed [10923] have_text matcher does not support should_not

</li>
<li>Fixed [10673] should &gt; and should &gt;= broken

</li>
<li>Applied [10921] Allow verify_rcov to accept greater than threshold coverage
%&#8217;s via configuration

</li>
<li>Applied [10920] Added support for not implemented examples (Patch from Chad
Humphries and Ken Barker)

</li>
<li>Patch to allow not implemented examples. This works by not providing a
block to the example. (Patch from Chad Humphries, Ken Barker)

</li>
<li>Yanked support for Rails 1.1.6 in Spec::Rails

</li>
<li>RSpec.tmbundle uses CMD-SHIFT-R to run focused examples now.

</li>
<li>Spec::Rails now bundles a spec:rcov task by default (suggestion from Kurt
Schrader)

</li>
<li>Fixed [10814] Runner loads shared code, test cases require them again

</li>
<li>Fixed [10753] Global before and after

</li>
<li>Fixed [10774] Allow before and after to be specified in config II

</li>
<li>Refactored Spec::Ui examples to use new global before and after blocks.

</li>
<li>Added instructions about how to get Selenium working with Spec::Ui
(spec_ui/examples/selenium/README.txt)

</li>
<li>Fixed [10805] selenium.rb missing from gem?

</li>
<li>Added rdocs explaining how to deal with errors in Rails&#8217; controller
actions

</li>
<li>Applied [10770] Finer grained includes.

</li>
<li>Fixed [10747] Helper methods defined in shared specs are not visible when
shared spec is used

</li>
<li>Fixed [10748] Shared descriptions in separate files causes &#8216;already
exists&#8217; error

</li>
<li>Applied [10698] Running with &#8212;drb executes specs twice (patch from
Ruy Asan)

</li>
<li>Fixed [10871] 0.9.4 - Focussed spec runner fails to run specs in
descriptions with type and string when there is no leading space in the
string

</li>
</ul>
<h2>Version 0.9.4</h2>
<p>
This release introduces massive improvements to Spec::Ui - the user
interface functional testing extension to RSpec. There are also some minor
bug fixes to the RSpec core.
</p>
<ul>
<li>Massive improvements to Spec::Ui. Complete support for all Watir&#8216;s
ie.xxx(how, what) methods. Inline screenshots and HTML.

</li>
<li>Reactivated &#8212;timeout, which had mysteriously been deactivated in a
recent release.

</li>
<li>Fixed [10669] <a href="../classes/Kernel.html#M000369">Kernel#describe</a>
override does not cover <a
href="../classes/Kernel.html#M000370">Kernel#context</a>

</li>
<li>Applied [10636] Added spec for OptionParser in Runner (Patch from Scott
Taylor)

</li>
<li>Added [10516] should_include should be able to accept multiple items

</li>
<li>Applied [10631] redirect_to matcher doesn&#8216;t respect request.host
(Patch from Tim Lucas)

</li>
<li>Each formatter now flushes their own IO. This is to avoid buffering of
output.

</li>
<li>Fixed [10670] IVarProxy#delete raises exception when instance variable does
not exist

</li>
</ul>
<h2>Version 0.9.3</h2>
<p>
This is a bugfix release.
</p>
<ul>
<li>Fixed [10594] Failing Custom Matcher show NAME NOT GENERATED description

</li>
<li>describe(SomeType, &quot;message&quot;) will not add a space:
&quot;SomeType#message&quot; (likewise for &#8217;.&#8217;)

</li>
<li>describe(SomeType, &quot;message&quot;) will have a decription with a
space: &quot;SomeType message&quot;

</li>
<li>Applied [10566] prepend_before and prepend_after callbacks

</li>
<li>Applied [10567] Call setup and teardown using before and after callbacks

</li>
</ul>
<h2>Version 0.9.2</h2>
<p>
This is a quick maintenance release.
</p>
<ul>
<li>Added some website love

</li>
<li>Fixed [10542] reverse predicate matcher syntax

</li>
<li>Added a spec:translate Rake task to make 0.9 translation easier with <a
href="../classes/Spec.html">Spec</a>:Rails

</li>
<li>Better translation of should_redirect_to

</li>
<li>Fixed &#8212;colour support for Windows. This is a regression that was
introduced in 0.9.1

</li>
<li>Applied [10460] Make SpecRunner easier to instantiate without using
commandline args

</li>
</ul>
<h2>Version 0.9.1</h2>
<p>
This release introduces describe and it (aliased as context and specify for
backwards compatibility). This allows you to express specs like this:
</p>
<pre>
  describe SomeClass do # Creates a Behaviour
    it &quot;should do something&quot; do # Creates an Example
    end
  end
</pre>
<p>
The command line features four new options that give you more control over
what specs are being run and in what order. This can be used to verify that
your specs are independent (by running in opposite order with
&#8212;reverse). It can also be used to cut down feedback time by running
the most recently modified specs first (&#8212;loadby mtime
&#8212;reverse).
</p>
<p>
Further, &#8212;example replaces the old &#8212;spec option, and it can now
take a file name of spec names as an alternative to just a spec name. The
&#8212;format failing_examples:file.txt option allows you to output an
&#8212;example compatible file, which makes it possible to only rerun the
specs that failed in the last run. Spec::Rails uses all of these four
options by default to optimise your RSpec experience.
</p>
<p>
There is now a simple configuration model. For Spec::Rails, you do
something like this:
</p>
<pre>
  Spec::Runner.configure do |config|
    config.use_transactional_fixtures = true
    config.use_instantiated_fixtures  = false
    config.fixture_path = RAILS_ROOT + '/spec/fixtures'
  end
</pre>
<p>
You can now use mocha or flexmock with RSpec if you prefer either to
RSpec&#8216;s own mock framework. Just put this:
</p>
<pre>
  Spec::Runner.configure do |config|
    config.mock_with :mocha
  end
</pre>
<p>
or this:
</p>
<pre>
  Spec::Runner.configure do |config|
    config.mock_with :flexmock
  end
</pre>
<p>
in a file that is loaded before your specs. You can also configure included
modules and predicate_matchers:
</p>
<pre>
  Spec::Runner.configure do |config|
    config.include SomeModule
    config.predicate_matchers[:does_something?] = :do_something
  end
</pre>
<p>
See <a href="../classes/Spec/DSL/Behaviour.html">Spec::DSL::Behaviour</a>
for more on predicate_matchers
</p>
<ul>
<li>Sugar FREE!

</li>
<li>Added [10434 ] Please Make -s synonymous with -e for autotest compat. This
is temporary until autotest uses -e instead of -s.

</li>
<li>Fixed [10133] custom predicate matchers

</li>
<li>Applied [10473] Add should exist (new matcher) - Patch from Bret Pettichord

</li>
<li>Added another formatter: failing_behaviours. Writes the names of the
failing behaviours for use with &#8212;example.

</li>
<li>Applied [10315] Patch to fix pre_commit bug 10313 - pre_commit_rails:
doesn&#8216;t always build correctly (Patch from Antii Tarvainen)

</li>
<li>Applied [10245] Patch to HTML escape the behavior name when using HTML
Formatter (Patch from Josh Knowles)

</li>
<li>Applied [10410] redirect_to does not behave consistently with regards to
query string parameter ordering (Patch from Nicholas Evans)

</li>
<li>Applied [9605] Patch for ER 9472, shared behaviour (Patch by Bob Cotton)

</li>
<li>The &#8217;&#8212;format rdoc&#8217; option no longer causes a dry-run by
default. &#8212;dry-run must be used explicitly.

</li>
<li>It&#8216;s possible to specify the output file in the &#8212;format option
(See explanation in &#8212;help)

</li>
<li>Several &#8212;format options may be specified to output several formats in
one run.

</li>
<li>The &#8212;out option is gone. Use &#8212;format html:path/to/my.html
instead (or similar).

</li>
<li>Spec::Runner::Formatter::BaseTextFormatter#initialize only takes one
argument - an IO. dry_run and color are setters.

</li>
<li>Made Spec::Ui <b>much</b> easier to install. It will be released
separately. Check out trunk/spec_ui/examples

</li>
<li>HTML reports now include a syntax highlighted snippet of the source code
where the spec failed (needs the syntax gem)

</li>
<li>Added [10262] Better Helper testing of Erb evaluation block helpers

</li>
<li>Added [9735] support flexmock (thanks to Jim Weirich for his modifications
to flexmock to support this)

</li>
<li>Spec::Rails controller specs will no longer let mock exception ripple
through to the response.

</li>
<li>Fixed [9260] IvarProxy does not act like a hash.

</li>
<li>Applied [9458] The rspec_scaffold generator does not take into account
class nesting (Patch from Steve Tendon)

</li>
<li>Applied [9132] Rakefile spec:doc can fail without preparing database (Patch
from Steve Ross)

</li>
<li>Applied [9678] Custom runner command line switch, and multi-threaded runner
(Patch from Bob Cotton)

</li>
<li>Applied [9926] Rakefile - RSPEC_DEPS constant as an Array of Hashes instead
of an Array of Arrays (Patch from Scott Taylor)

</li>
<li>Applied [9925] Changed &quot;.rhtml&quot; to &quot;template&quot; in REST
spec generator (Patch from Scott Taylor)

</li>
<li>Applied [9852] Patch for RSpec&#8216;s Website using Webgen 0.4.2 (Patch
from Scott Taylor)

</li>
<li>Fixed [6523] Run rspec on rails without a db

</li>
<li>Fixed [9295] rake spec should run anything in the spec directory (not just
rspec&#8216;s standard dirs)

</li>
<li>Added [9786] infer controller and helper names from the described type

</li>
<li>Fixed [7795] form_tag renders action=&#8217;/view_spec&#8217; in view specs

</li>
<li>Fixed [9767] rspec_on_rails should not define rescue_action on controllers

</li>
<li>Fixed [9421] &#8212;line doesn&#8216;t work with behaviours that use class
names

</li>
<li>Fixed [9760] rspec generators incompatible with changes to edge rails

</li>
<li>Added [9786] infer controller and helper names from the described type

</li>
<li>Applied a simplified version of [9282] Change to allow running specs from
textmate with rspec installed as a rails plugin (and no rspec gem
installed)

</li>
<li>Applied [9700] Make Spec::DSL::Example#name public / Add a &#8212;timeout
switch. A great way to prevent specs from getting slow.

</li>
<li>In Rails, script/generate rspec will generate a spec.opts file that
optimises faster/more efficient running of specs.

</li>
<li>Added [9522] support using rspec&#8216;s expectations with test/unit

</li>
<li>Moved rspec_on_rails up to the project root, simplifying the download url

</li>
<li>Fixed [8103] RSpec not installing spec script correctly.

</li>
<li>The &#8212;spec option is replaced by the &#8212;example option.

</li>
<li>The &#8212;loadby option no longer supports a file argument. Use
&#8212;example file_name instead.

</li>
<li>The &#8212;example option can now take a file name as an argument. The file
should contain example names.

</li>
<li>Internal classes are named Behaviour/Example (rather than
Context/Specification).

</li>
<li>You can now use mocha by saying config.mock_with :mocha in a spec_helper

</li>
<li>before_context_eval is replaced by before_eval.

</li>
<li>Applied [9509] allow spaced options in spec.opts

</li>
<li>Applied [9510] Added File for Ruby 1.8.6

</li>
<li>Applied [9511] Clarification to README file in spec/

</li>
<li>Moved all of the Spec::Rails specs down to the plugins directory - now you
can run the specs after you install.

</li>
<li>Updated RSpec.tmbundle to the 0.9 syntax and replaced context/specify with
describe/it.

</li>
<li>Applied [9232] ActionController::Base#render is sometimes protected (patch
from Dan Manges)

</li>
<li>Added &#8212;reverse option, allowing contexts/specs to be run in reverse
order.

</li>
<li>Added &#8212;loadby option, allowing better control over load order for
spec files. mtime and file.txt supported.

</li>
<li>Implemented [8696] &#8212;order option (see &#8212;reverse and
&#8212;loadby)

</li>
<li>Added describe/it as aliases for context/specify - suggestion from Dan
North.

</li>
<li>Applied [7637] [PATCH] add skip-migration option to rspec_scaffold
generator

</li>
<li>Added [9167] string.should have_tag

</li>
<li>Changed script/rails_spec_server to script/spec_server and added
script/spec (w/ path to vendor/plugins/rspec)

</li>
<li>Fixed [8897] Error when mixing controller spec with/without integrated
views and using template system other than rhtml

</li>
<li>Updated sample app specs to 0.9 syntax

</li>
<li>Updated generated specs to 0.9 syntax

</li>
<li>Applied [8994] trunk: generated names for be_ specs (Multiple patches from
Yurii Rashkovskii)

</li>
<li>Applied [9983]: Allow before and after to be called in BehaviourEval. This
is useful for shared examples.

</li>
</ul>
<h2>Version 0.8.2</h2>
<p>
Replaced assert_select fork with an assert_select wrapper for have_tag.
This means that &quot;should have_rjs&quot; no longer supports :hide or
:effect, but you can still use should_have_rjs for those.
</p>
<h2>Version 0.8.1</h2>
<p>
Quick &quot;in house&quot; bug-fix
</p>
<h2>Version 0.8.0</h2>
<p>
This release introduces a new approach to handling expectations using
Expression Matchers.
</p>
<p>
See <a href="http://rspec.rubyforge.org/upgrade.html">Upgrade</a>, <a
href="../classes/Spec/Expectations.html">Spec::Expectations</a>, <a
href="../classes/Spec/Matchers.html">Spec::Matchers</a> and RELEASE-PLAN
for more info.
</p>
<p>
This release also improves the spec command line by adding DRb support and
making it possible to store command line options in a file. This means a
more flexible RSpec experience with Rails, Rake and editor plugins like
TextMate.
</p>
<p>
It also sports myriad new features, bug fixes, patches and general
goodness:
</p>
<ul>
<li>Fixed [8928] rspec_on_rails 0.8.0-RC1 controller tests make double call to
setup_with_fixtures

</li>
<li>Fixed [8925] Documentation bug in 0.8.0RC1 rspec website

</li>
<li>Applied [8132] [PATCH] RSpec breaks &quot;rake db:sessions:create&quot; in
a rails project that has the rspec_on_rails plugin (Patch from Erik
Kastner)

</li>
<li>Fixed [8789] &#8212;line and &#8212;spec not working when the context has
parenhesis in the name

</li>
<li>Added [8783] auto generate spec names from last expectation

</li>
<li>&#8212;heckle now fails if the heckled class or module is not found.

</li>
<li>Fixed [8771] Spec::Mocks::BaseExpectation#with converts hash params to
array of arrays with collect

</li>
<li>Fixed [8750] should[_not]_include backwards compatibility between 0.8.0-RC1
and 0.7.5.1 broken

</li>
<li>Fixed [8646] Context Runner does not report on Non standard exceptions and
return a 0 return code

</li>
<li>RSpec on Rails&#8217; spec_helper.rb will only force RAILS_ENV to test if
it was not specified on the command line.

</li>
<li>Fixed [5485] proc#should_raise and proc#should_not_raise output

</li>
<li>Added [8484] should_receive with blocks

</li>
<li>Applied [8218] heckle_runner.rb doesn&#8216;t work with heckle &gt;= 1.2.0
(Patch from Michal Kwiatkowski)

</li>
<li>Fixed [8240] Cryptic error message when no controller_name

</li>
<li>Applied [7461] [PATCH] Contexts don&#8216;t call Module::included when they
include a module

</li>
<li>Removed unintended block of test/unit assertions in rspec_on_rails - they
should all, in theory, now be accessible

</li>
<li>Added mock_model method to RSpec on Rails, which stubs common methods.
Based on <a
href="http://metaclass.org/2006/12/22/making-a-mockery-of-activerecord">metaclass.org/2006/12/22/making-a-mockery-of-activerecord</a>

</li>
<li>Fixed [8165] Partial Mock Errors when respond_to? is true but the method is
not in the object

</li>
<li>Fixed [7611] Partial Mocks override Subclass methods

</li>
<li>Fixed [8302] Strange side effect when mocking a class method

</li>
<li>Applied [8316] to_param should return a stringified key in resource
generator&#8216;s controller spec (Patch from Chris Anderson)

</li>
<li>Applied [8216] shortcut for creating object stub

</li>
<li>Applied [8008] Correct generated specs for view when calling resource
generator (Patch from Jonathan Tron)

</li>
<li>Fixed [7754] Command-R fails to run spec in TextMate (added instruction
from Luke Redpath to the website)

</li>
<li>Fixed [7826] RSpect.tmbundle web page out of date.

</li>
<li>RSpec on Rails specs are now running against RoR 1.2.1 and 1.2.2

</li>
<li>rspec_scaffold now generates specs for views

</li>
<li>In a Rails app, RSpec core is only loaded when RAILS_ENV==test (init.rb)

</li>
<li>Added support for target.should arbitrary_expectation_handler and
target.should_not arbitrary_expectation_handler

</li>
<li>Fixed [7533] <a href="../classes/Spec.html">Spec</a> suite fails and the
process exits with a code 0

</li>
<li>Fixed [7565] Subsequent stub! calls for method fail to override the first
call to method

</li>
<li>Applied [7524] Incorrect Documentation for &#8216;pattern&#8217; in Rake
task (patch from Stephen Duncan)

</li>
<li>Fixed [7409] default fixtures do not appear to run.

</li>
<li>Fixed [7507] &quot;render..and return&quot; doesn&#8216;t return

</li>
<li>Fixed [7509] rcov/rspec incorrectly includes boot.rb (Patch from Courtenay)

</li>
<li>Fixed [7506] unnecessary complex output on failure of response.should
be_redirect

</li>
<li>Applied [6098] Make scaffold_resource generator. Based on code from Pat
Maddox.

</li>
<li>The drbspec command is gone. Use spec &#8212;drb instead.

</li>
<li>The drb option is gone from the Rake task. Pass &#8212;drb to spec_opts
instead.

</li>
<li>New -X/&#8212;drb option for running specs against a server like
spec/rails&#8217; script/rails_spec_server

</li>
<li>New -O/&#8212;options and -G/&#8212;generate flags for file-based options
(handy for spec/rails)

</li>
<li>Applied [7339] Turn off caching in HTML reports

</li>
<li>Applied [7419] &quot;c option for colorizing output does not work with
rails_spec&quot; (Patch from Shintaro Kakutani)

</li>
<li>Applied [7406] [PATCH] 0.7.5 rspec_on_rails loads fixtures into development
database (Patch from Wilson Bilkovich)

</li>
<li>Applied [7387] Allow stubs to return consecutive values (Patch from Pat
Maddox)

</li>
<li>Applied [7393] Fix for rake task (Patch from Pat Maddox)

</li>
<li>Reinstated support for response.should_render (in addition to
controller.should_render)

</li>
</ul>
<h2>Version 0.7.5.1</h2>
<p>
Bug fix release to allow downloads of rspec gem using rubygems 0.9.1.
</p>
<h2>Version 0.7.5</h2>
<p>
This release adds support for Heckle - Seattle&#8216;rb&#8216;s code
mutation tool. There are also several bug fixes to the RSpec core and the
RSpec on Rails plugin.
</p>
<ul>
<li>Removed svn:externals on rails versions and plugins

</li>
<li>Applied [7345] Adding context_setup and context_teardown, with specs and
100% rcov

</li>
<li>Applied [7320] [PATCH] Allow XHR requests in controller specs to render RJS
templates

</li>
<li>Applied [7319] Migration code uses drop_column when it should use
remove_column (patch from Pat Maddox)

</li>
<li>Added support for Heckle

</li>
<li>Applied [7282] dump results even if spec is interrupted (patch from Kouhei
Sutou)

</li>
<li>Applied [7277] model.should_have(n).errors_on(:attribute) (patch from
Wilson Bilkovich)

</li>
<li>Applied [7270] RSpec render_partial colliding with simply_helpful (patch
from David Goodlad)

</li>
<li>Added [7250] stubs should support throwing

</li>
<li>Added [7249] stubs should support yielding

</li>
<li>Fixed [6760] fatal error when accessing nested finders in rspec

</li>
<li>Fixed [7179] script/generate rspec_scaffold generates incorrect helper name

</li>
<li>Added preliminary support for assert_select (response.should_have)

</li>
<li>Fixed [6971] and_yield does not work when the arity is -1

</li>
<li>Fixed [6898] Can we separate rspec from the plugins?

</li>
<li>Added [7025] should_change should accept a block

</li>
<li>Applied [6989] partials with locals (patch from Micah Martin)

</li>
<li>Applied [7023] Typo in team.page

</li>
</ul>
<h2>Version 0.7.4</h2>
<p>
This release features a complete redesign of the reports generated with
&#8212;format html. As usual there are many bug fixes - mostly related to
spec/rails.
</p>
<ul>
<li>Applied [7010] Fixes :spacer_template does not work w/ view spec (patch
from Shintaro Kakutani)

</li>
<li>Applied [6798] ensure two &#8217;:&#8217; in the first backtrace line for
Emacs&#8216;s &#8216;next-error&#8217; command (patch from Kouhei Sutou)

</li>
<li>Added Much nicer reports to generated website

</li>
<li>Much nicer reports with &#8212;format &#8212;html (patch from Luke Redpath)

</li>
<li>Applied [6959] Calls to render and redirect in controllers should return
true

</li>
<li>Fixed [6981] helper method is not available in partial template.

</li>
<li>Added [6978] mock should tell you the expected and actual args when
receiving the right message with the wrong args

</li>
<li>Added the possibility to tweak the output of the HtmlFormatter (by
overriding extra_failure_content).

</li>
<li>Fixed [6936] View specs don&#8216;t include ApplicationHelper by default

</li>
<li>Fixed [6903] Rendering a partial in a view makes the view spec blow up

</li>
<li>Added callback library from Brian Takita

</li>
<li>Added [6925] support controller.should_render :action_name

</li>
<li>Fixed [6884] intermittent errors related to method binding

</li>
<li>Fixed [6870] rspec on edge rails spec:controller fixture loading fails

</li>
<li>Using obj.inspect for all messages

</li>
<li>Improved performance by getting rid of instance_exec (instance_eval is good
enough because we never need to pass it args)

</li>
</ul>
<h2>Version 0.7.3</h2>
<p>
Almost normal bug fix/new feature release.
</p>
<p>
A couple of things you need to change in your rails specs: # spec_helper.rb
is a little different (see <a
href="http://rspec.rubyforge.org/upgrade.html">rspec.rubyforge.org/upgrade.html</a>)
# use controller.should_render before OR after the action
(controller.should_have_rendered is deprecated)
</p>
<ul>
<li>Applied [6577] messy mock backtrace when frozen to edge rails (patch from
Jay Levitt)

</li>
<li>Fixed [6674] rspec_on_rails fails on @session deprecation warning

</li>
<li>Fixed [6780] routing() was failing...fix included - works for 1.1.6 and
edge (1.2)

</li>
<li>Fixed [6835] bad message with arbitrary predicate

</li>
<li>Added [6731] Partial templates rendered

</li>
<li>Fixed [6713] helper methods not rendered in view tests?

</li>
<li>Fixed [6707] cannot run controller / helper tests via rails_spec or spec
only works with rake

</li>
<li>Applied [6417] lambda {&#8230;}.should_change(receiver, :message) (patch
from Wilson Bilkovich)

</li>
<li>Eliminated dependency on ZenTest

</li>
<li>Fixed [6650] Reserved characters in the TextMate bundle break svn on Win32

</li>
<li>Fixed [6643] script/generate rspec_controller: invalid symbol generation
for &#8216;controller_name&#8217; for <b>modularized</b> controllers

</li>
<li>The script/rails_spec command has been moved to bin/drbspec in RSpec core
(installed by the gem)

</li>
</ul>
<h2>Version 0.7.2</h2>
<p>
This release introduces a brand new RSpec bundle for TextMate, plus some
small bugfixes.
</p>
<ul>
<li>Packaged RSpec.tmbundle.tgz as part of the distro

</li>
<li>Fixed [6593] Add moving progress bar to HtmlFormatter using Javascript

</li>
<li>Applied [6265] should_raise should accept an Exception object

</li>
<li>Fixed [6616] Can&#8216;t run Rails specs with RSpec.tmbundle

</li>
<li>Fixed [6411] Can&#8216;t run Rails specs with ruby

</li>
<li>Added [6589] New -l &#8212;line option. This is useful for IDE/editor
runners/extensions.

</li>
<li>Fixed [6615] controller.should_render_rjs should support :partial =&gt;
&#8216;path/to/template&#8216;

</li>
</ul>
<h2>Version 0.7.1</h2>
<p>
Bug fixes and a couple o&#8217; new features.
</p>
<ul>
<li>Fixed [6575] Parse error in aliasing the partial mock original method
(patch by Brian Takita)

</li>
<li>Fixed [6277] debris left by stubbing (trunk) [submitted by dastels] (fixed
by fix to [6575])

</li>
<li>Fixed [6575] Parse error in aliasing the partial mock original method

</li>
<li>Fixed [6555] should_have_tag does not match documentation

</li>
<li>Fixed [6567] SyntaxError should not stop entire run

</li>
<li>Fixed [6558] integrated views look for template even when redirected

</li>
<li>Fixed [6547] response.should be_redirect broken in 0.7.0

</li>
<li>Applied [6471] Easy way to spec routes

</li>
<li>Applied [6587] Rspec on Rails displays
&quot;Spec::Rails::ContextFactory&quot; as context name

</li>
<li>Applied [6514] Document has trivial typos.

</li>
<li>Added [6560] controller.session should be available before the action

</li>
<li>Added support for should_have_rjs :visual_effect

</li>
<li>Different printing and colours for unmet expectations (red) and other
exceptions (magenta)

</li>
<li>Simplified method_missing on mock_methods to make it less invasive on
partial mocks.

</li>
</ul>
<h2>Version 0.7.0</h2>
<p>
This is the &quot;Grow up and eat your own dog food release&quot;. RSpec is
now used on itself and we&#8216;re no longer using <a
href="../classes/Test/Unit.html">Test::Unit</a> to test it. Although, we
are still extending <a href="../classes/Test/Unit.html">Test::Unit</a> for
the rails plugin (indirectly - through ZenTest)
</p>
<p>
IMPORTANT NOTE: THIS RELEASE IS NOT 100% BACKWARDS COMPATIBLE TO 0.6.x
</p>
<p>
There are a few changes that will require that you change your existing
specs.
</p>
<p>
RSpec now handles equality exactly like ruby does:
</p>
<p>
# actual.should_equal(expected) will pass if actual.equal?(expected)
returns true # actual.should eql(expected) will pass if
actual.eql?(expected) returns true # actual.should == expected will pass if
actual == expected) returns true
</p>
<p>
At the high level, eql? implies equivalence, while equal? implies object
identity. For more information on how ruby deals w/ equality, you should do
this:
</p>
<p>
ri equal?
</p>
<p>
or look at this:
</p>
<p>
<a
href="http://www.ruby-doc.org/core/classes/Object.html#M001057">www.ruby-doc.org/core/classes/Object.html#M001057</a>
</p>
<p>
Also, we left in should_be as a synonym for should_equal, so the only specs
that should break are the ones using should_equal (which used to use
<tt>==</tt> instead of <tt>.equal?</tt>).
</p>
<p>
Lastly, should_be used to handle true and false differently from any other
values. We&#8216;ve removed this special handling, so now actual.should_be
true will fail for any value other than true (it used to pass for any
non-nil, non-false value), and actual.should_be false will fail for any
value other than false (it used to pass for nil or false).
</p>
<p>
Here&#8216;s what you&#8216;ll need to do to update your specs: # search
for &quot;should_equal&quot; and replace with &quot;should_eql&quot; # run
specs
</p>
<p>
If any specs still fail, they are probably related to should be_true or
should_be_false using non-boolean values. Those you&#8216;ll just have to
inspect manually and adjust appropriately (sorry!).
</p>

    </div>


   </div>


  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>