couch_visible 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,58 @@
1
+ Given /^a document that includes CouchVisible$/ do
2
+ class Article < CouchRest::Model::Base
3
+ include CouchVisible
4
+ end
5
+
6
+ @document = Article.create
7
+ end
8
+
9
+ When /^I call the "([^"]*)" method on the document$/ do |method|
10
+ @result = @document.send method
11
+ end
12
+
13
+ Then /^the document should be marked as hidden$/ do
14
+ @document.couch_visible.should be(false)
15
+ @document.hidden?.should be(true)
16
+ end
17
+
18
+ Given /^a document that is shown$/ do
19
+ class Post < CouchRest::Model::Base
20
+ include CouchVisible
21
+ end
22
+ @document = Post.create
23
+ @document.show!
24
+ end
25
+
26
+ Given /^there are several hidden and visible documents$/ do
27
+ class TestDoc < CouchRest::Model::Base
28
+ include CouchVisible
29
+ end
30
+
31
+ @hidden_documents = []
32
+ @shown_documents = []
33
+ 10.times { @hidden_documents << TestDoc.new.tap {|d| d.save } }
34
+ 10.times { @shown_documents << TestDoc.new.tap {|d| d.show!; d.save} }
35
+ end
36
+
37
+ When /^I call the "by_hidden" method on my document model$/ do
38
+ @result = TestDoc.by_hidden :reduce => false
39
+ end
40
+
41
+ Then /^I should receive the hidden documents$/ do
42
+ @result.collect(&:id).sort.should == @hidden_documents.collect(&:id).sort
43
+ end
44
+
45
+ Then /^I should not receive the shown documents$/ do
46
+ @result_ids = @result.collect &:id
47
+ @shown_documents.collect(&:id).each do |shown_id|
48
+ @result_ids.include?(shown_id).should be(false)
49
+ end
50
+ end
51
+
52
+ When /^I call the "count_hidden" method on my document model$/ do
53
+ @result = TestDoc.count_hidden
54
+ end
55
+
56
+ Then /^I should receive the count of hidden documents$/ do
57
+ @result.should == @hidden_documents.count
58
+ end
@@ -0,0 +1,1907 @@
1
+ !RBIX
2
+ 17831730954501249321
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 262
13
+ 5
14
+ 7
15
+ 0
16
+ 13
17
+ 70
18
+ 9
19
+ 19
20
+ 15
21
+ 44
22
+ 43
23
+ 1
24
+ 7
25
+ 2
26
+ 78
27
+ 49
28
+ 3
29
+ 2
30
+ 6
31
+ 0
32
+ 56
33
+ 4
34
+ 47
35
+ 50
36
+ 5
37
+ 1
38
+ 15
39
+ 5
40
+ 7
41
+ 6
42
+ 13
43
+ 70
44
+ 9
45
+ 45
46
+ 15
47
+ 44
48
+ 43
49
+ 1
50
+ 7
51
+ 7
52
+ 78
53
+ 49
54
+ 3
55
+ 2
56
+ 6
57
+ 6
58
+ 56
59
+ 8
60
+ 47
61
+ 50
62
+ 9
63
+ 1
64
+ 15
65
+ 5
66
+ 7
67
+ 10
68
+ 13
69
+ 70
70
+ 9
71
+ 71
72
+ 15
73
+ 44
74
+ 43
75
+ 1
76
+ 7
77
+ 11
78
+ 78
79
+ 49
80
+ 3
81
+ 2
82
+ 6
83
+ 10
84
+ 56
85
+ 12
86
+ 47
87
+ 50
88
+ 13
89
+ 1
90
+ 15
91
+ 5
92
+ 7
93
+ 14
94
+ 13
95
+ 70
96
+ 9
97
+ 97
98
+ 15
99
+ 44
100
+ 43
101
+ 1
102
+ 7
103
+ 15
104
+ 78
105
+ 49
106
+ 3
107
+ 2
108
+ 6
109
+ 14
110
+ 56
111
+ 16
112
+ 47
113
+ 50
114
+ 5
115
+ 1
116
+ 15
117
+ 5
118
+ 7
119
+ 17
120
+ 13
121
+ 70
122
+ 9
123
+ 123
124
+ 15
125
+ 44
126
+ 43
127
+ 1
128
+ 7
129
+ 18
130
+ 78
131
+ 49
132
+ 3
133
+ 2
134
+ 6
135
+ 17
136
+ 56
137
+ 19
138
+ 47
139
+ 50
140
+ 5
141
+ 1
142
+ 15
143
+ 5
144
+ 7
145
+ 20
146
+ 13
147
+ 70
148
+ 9
149
+ 149
150
+ 15
151
+ 44
152
+ 43
153
+ 1
154
+ 7
155
+ 21
156
+ 78
157
+ 49
158
+ 3
159
+ 2
160
+ 6
161
+ 20
162
+ 56
163
+ 22
164
+ 47
165
+ 50
166
+ 9
167
+ 1
168
+ 15
169
+ 5
170
+ 7
171
+ 23
172
+ 13
173
+ 70
174
+ 9
175
+ 175
176
+ 15
177
+ 44
178
+ 43
179
+ 1
180
+ 7
181
+ 24
182
+ 78
183
+ 49
184
+ 3
185
+ 2
186
+ 6
187
+ 23
188
+ 56
189
+ 25
190
+ 47
191
+ 50
192
+ 13
193
+ 1
194
+ 15
195
+ 5
196
+ 7
197
+ 26
198
+ 13
199
+ 70
200
+ 9
201
+ 201
202
+ 15
203
+ 44
204
+ 43
205
+ 1
206
+ 7
207
+ 27
208
+ 78
209
+ 49
210
+ 3
211
+ 2
212
+ 6
213
+ 26
214
+ 56
215
+ 28
216
+ 47
217
+ 50
218
+ 13
219
+ 1
220
+ 15
221
+ 5
222
+ 7
223
+ 29
224
+ 13
225
+ 70
226
+ 9
227
+ 227
228
+ 15
229
+ 44
230
+ 43
231
+ 1
232
+ 7
233
+ 30
234
+ 78
235
+ 49
236
+ 3
237
+ 2
238
+ 6
239
+ 29
240
+ 56
241
+ 31
242
+ 47
243
+ 50
244
+ 9
245
+ 1
246
+ 15
247
+ 5
248
+ 7
249
+ 32
250
+ 13
251
+ 70
252
+ 9
253
+ 253
254
+ 15
255
+ 44
256
+ 43
257
+ 1
258
+ 7
259
+ 33
260
+ 78
261
+ 49
262
+ 3
263
+ 2
264
+ 6
265
+ 32
266
+ 56
267
+ 34
268
+ 47
269
+ 50
270
+ 13
271
+ 1
272
+ 15
273
+ 2
274
+ 11
275
+ I
276
+ 4
277
+ I
278
+ 0
279
+ I
280
+ 0
281
+ I
282
+ 0
283
+ n
284
+ p
285
+ 35
286
+ n
287
+ x
288
+ 6
289
+ Regexp
290
+ s
291
+ 39
292
+ ^a document that includes CouchVisible$
293
+ x
294
+ 3
295
+ new
296
+ M
297
+ 1
298
+ p
299
+ 2
300
+ x
301
+ 9
302
+ for_block
303
+ t
304
+ n
305
+ x
306
+ 9
307
+ __block__
308
+ i
309
+ 42
310
+ 99
311
+ 7
312
+ 0
313
+ 45
314
+ 1
315
+ 2
316
+ 43
317
+ 3
318
+ 43
319
+ 4
320
+ 65
321
+ 49
322
+ 5
323
+ 3
324
+ 13
325
+ 99
326
+ 12
327
+ 7
328
+ 6
329
+ 12
330
+ 7
331
+ 7
332
+ 12
333
+ 65
334
+ 12
335
+ 49
336
+ 8
337
+ 4
338
+ 15
339
+ 49
340
+ 6
341
+ 0
342
+ 15
343
+ 45
344
+ 0
345
+ 9
346
+ 49
347
+ 10
348
+ 0
349
+ 38
350
+ 11
351
+ 11
352
+ I
353
+ 7
354
+ I
355
+ 0
356
+ I
357
+ 0
358
+ I
359
+ 0
360
+ I
361
+ -2
362
+ p
363
+ 12
364
+ x
365
+ 7
366
+ Article
367
+ x
368
+ 9
369
+ CouchRest
370
+ n
371
+ x
372
+ 5
373
+ Model
374
+ x
375
+ 4
376
+ Base
377
+ x
378
+ 10
379
+ open_class
380
+ x
381
+ 14
382
+ __class_init__
383
+ M
384
+ 1
385
+ n
386
+ n
387
+ x
388
+ 7
389
+ Article
390
+ i
391
+ 11
392
+ 5
393
+ 66
394
+ 5
395
+ 45
396
+ 0
397
+ 1
398
+ 47
399
+ 49
400
+ 2
401
+ 1
402
+ 11
403
+ I
404
+ 2
405
+ I
406
+ 0
407
+ I
408
+ 0
409
+ I
410
+ 0
411
+ n
412
+ p
413
+ 3
414
+ x
415
+ 12
416
+ CouchVisible
417
+ n
418
+ x
419
+ 7
420
+ include
421
+ p
422
+ 3
423
+ I
424
+ 2
425
+ I
426
+ 3
427
+ I
428
+ b
429
+ x
430
+ 80
431
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
432
+ p
433
+ 0
434
+ x
435
+ 13
436
+ attach_method
437
+ n
438
+ x
439
+ 6
440
+ create
441
+ x
442
+ 9
443
+ @document
444
+ p
445
+ 5
446
+ I
447
+ 0
448
+ I
449
+ 2
450
+ I
451
+ 21
452
+ I
453
+ 6
454
+ I
455
+ 2a
456
+ x
457
+ 80
458
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
459
+ p
460
+ 0
461
+ x
462
+ 5
463
+ Given
464
+ n
465
+ s
466
+ 45
467
+ ^I call the "([^"]*)" method on the document$
468
+ M
469
+ 1
470
+ p
471
+ 2
472
+ x
473
+ 9
474
+ for_block
475
+ t
476
+ n
477
+ x
478
+ 9
479
+ __block__
480
+ i
481
+ 14
482
+ 57
483
+ 19
484
+ 0
485
+ 15
486
+ 39
487
+ 0
488
+ 20
489
+ 0
490
+ 49
491
+ 1
492
+ 1
493
+ 38
494
+ 2
495
+ 11
496
+ I
497
+ 4
498
+ I
499
+ 1
500
+ I
501
+ 1
502
+ I
503
+ 1
504
+ n
505
+ p
506
+ 3
507
+ x
508
+ 9
509
+ @document
510
+ x
511
+ 4
512
+ send
513
+ x
514
+ 7
515
+ @result
516
+ p
517
+ 5
518
+ I
519
+ 0
520
+ I
521
+ 9
522
+ I
523
+ 4
524
+ I
525
+ a
526
+ I
527
+ e
528
+ x
529
+ 80
530
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
531
+ p
532
+ 1
533
+ x
534
+ 6
535
+ method
536
+ x
537
+ 4
538
+ When
539
+ n
540
+ s
541
+ 41
542
+ ^the document should be marked as hidden$
543
+ M
544
+ 1
545
+ p
546
+ 2
547
+ x
548
+ 9
549
+ for_block
550
+ t
551
+ n
552
+ x
553
+ 9
554
+ __block__
555
+ i
556
+ 30
557
+ 39
558
+ 0
559
+ 49
560
+ 1
561
+ 0
562
+ 5
563
+ 3
564
+ 47
565
+ 49
566
+ 2
567
+ 1
568
+ 49
569
+ 3
570
+ 1
571
+ 15
572
+ 39
573
+ 0
574
+ 49
575
+ 4
576
+ 0
577
+ 5
578
+ 2
579
+ 47
580
+ 49
581
+ 2
582
+ 1
583
+ 49
584
+ 3
585
+ 1
586
+ 11
587
+ I
588
+ 4
589
+ I
590
+ 0
591
+ I
592
+ 0
593
+ I
594
+ 0
595
+ I
596
+ -2
597
+ p
598
+ 5
599
+ x
600
+ 9
601
+ @document
602
+ x
603
+ 13
604
+ couch_visible
605
+ x
606
+ 2
607
+ be
608
+ x
609
+ 6
610
+ should
611
+ x
612
+ 7
613
+ hidden?
614
+ p
615
+ 5
616
+ I
617
+ 0
618
+ I
619
+ e
620
+ I
621
+ f
622
+ I
623
+ f
624
+ I
625
+ 1e
626
+ x
627
+ 80
628
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
629
+ p
630
+ 0
631
+ x
632
+ 4
633
+ Then
634
+ n
635
+ s
636
+ 26
637
+ ^a document that is shown$
638
+ M
639
+ 1
640
+ p
641
+ 2
642
+ x
643
+ 9
644
+ for_block
645
+ t
646
+ n
647
+ x
648
+ 9
649
+ __block__
650
+ i
651
+ 48
652
+ 99
653
+ 7
654
+ 0
655
+ 45
656
+ 1
657
+ 2
658
+ 43
659
+ 3
660
+ 43
661
+ 4
662
+ 65
663
+ 49
664
+ 5
665
+ 3
666
+ 13
667
+ 99
668
+ 12
669
+ 7
670
+ 6
671
+ 12
672
+ 7
673
+ 7
674
+ 12
675
+ 65
676
+ 12
677
+ 49
678
+ 8
679
+ 4
680
+ 15
681
+ 49
682
+ 6
683
+ 0
684
+ 15
685
+ 45
686
+ 0
687
+ 9
688
+ 49
689
+ 10
690
+ 0
691
+ 38
692
+ 11
693
+ 15
694
+ 39
695
+ 11
696
+ 49
697
+ 12
698
+ 0
699
+ 11
700
+ I
701
+ 7
702
+ I
703
+ 0
704
+ I
705
+ 0
706
+ I
707
+ 0
708
+ I
709
+ -2
710
+ p
711
+ 13
712
+ x
713
+ 4
714
+ Post
715
+ x
716
+ 9
717
+ CouchRest
718
+ n
719
+ x
720
+ 5
721
+ Model
722
+ x
723
+ 4
724
+ Base
725
+ x
726
+ 10
727
+ open_class
728
+ x
729
+ 14
730
+ __class_init__
731
+ M
732
+ 1
733
+ n
734
+ n
735
+ x
736
+ 4
737
+ Post
738
+ i
739
+ 11
740
+ 5
741
+ 66
742
+ 5
743
+ 45
744
+ 0
745
+ 1
746
+ 47
747
+ 49
748
+ 2
749
+ 1
750
+ 11
751
+ I
752
+ 2
753
+ I
754
+ 0
755
+ I
756
+ 0
757
+ I
758
+ 0
759
+ n
760
+ p
761
+ 3
762
+ x
763
+ 12
764
+ CouchVisible
765
+ n
766
+ x
767
+ 7
768
+ include
769
+ p
770
+ 3
771
+ I
772
+ 2
773
+ I
774
+ 14
775
+ I
776
+ b
777
+ x
778
+ 80
779
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
780
+ p
781
+ 0
782
+ x
783
+ 13
784
+ attach_method
785
+ n
786
+ x
787
+ 6
788
+ create
789
+ x
790
+ 9
791
+ @document
792
+ x
793
+ 5
794
+ show!
795
+ p
796
+ 7
797
+ I
798
+ 0
799
+ I
800
+ 13
801
+ I
802
+ 21
803
+ I
804
+ 16
805
+ I
806
+ 2a
807
+ I
808
+ 17
809
+ I
810
+ 30
811
+ x
812
+ 80
813
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
814
+ p
815
+ 0
816
+ n
817
+ s
818
+ 48
819
+ ^there are several hidden and visible documents$
820
+ M
821
+ 1
822
+ p
823
+ 2
824
+ x
825
+ 9
826
+ for_block
827
+ t
828
+ n
829
+ x
830
+ 9
831
+ __block__
832
+ i
833
+ 59
834
+ 99
835
+ 7
836
+ 0
837
+ 45
838
+ 1
839
+ 2
840
+ 43
841
+ 3
842
+ 43
843
+ 4
844
+ 65
845
+ 49
846
+ 5
847
+ 3
848
+ 13
849
+ 99
850
+ 12
851
+ 7
852
+ 6
853
+ 12
854
+ 7
855
+ 7
856
+ 12
857
+ 65
858
+ 12
859
+ 49
860
+ 8
861
+ 4
862
+ 15
863
+ 49
864
+ 6
865
+ 0
866
+ 15
867
+ 35
868
+ 0
869
+ 38
870
+ 9
871
+ 15
872
+ 35
873
+ 0
874
+ 38
875
+ 10
876
+ 15
877
+ 4
878
+ 10
879
+ 56
880
+ 11
881
+ 50
882
+ 12
883
+ 0
884
+ 15
885
+ 4
886
+ 10
887
+ 56
888
+ 13
889
+ 50
890
+ 12
891
+ 0
892
+ 11
893
+ I
894
+ 7
895
+ I
896
+ 0
897
+ I
898
+ 0
899
+ I
900
+ 0
901
+ I
902
+ -2
903
+ p
904
+ 14
905
+ x
906
+ 7
907
+ TestDoc
908
+ x
909
+ 9
910
+ CouchRest
911
+ n
912
+ x
913
+ 5
914
+ Model
915
+ x
916
+ 4
917
+ Base
918
+ x
919
+ 10
920
+ open_class
921
+ x
922
+ 14
923
+ __class_init__
924
+ M
925
+ 1
926
+ n
927
+ n
928
+ x
929
+ 7
930
+ TestDoc
931
+ i
932
+ 11
933
+ 5
934
+ 66
935
+ 5
936
+ 45
937
+ 0
938
+ 1
939
+ 47
940
+ 49
941
+ 2
942
+ 1
943
+ 11
944
+ I
945
+ 2
946
+ I
947
+ 0
948
+ I
949
+ 0
950
+ I
951
+ 0
952
+ n
953
+ p
954
+ 3
955
+ x
956
+ 12
957
+ CouchVisible
958
+ n
959
+ x
960
+ 7
961
+ include
962
+ p
963
+ 3
964
+ I
965
+ 2
966
+ I
967
+ 1c
968
+ I
969
+ b
970
+ x
971
+ 80
972
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
973
+ p
974
+ 0
975
+ x
976
+ 13
977
+ attach_method
978
+ x
979
+ 17
980
+ @hidden_documents
981
+ x
982
+ 16
983
+ @shown_documents
984
+ M
985
+ 1
986
+ p
987
+ 2
988
+ x
989
+ 9
990
+ for_block
991
+ t
992
+ n
993
+ x
994
+ 9
995
+ __block__
996
+ i
997
+ 35
998
+ 39
999
+ 0
1000
+ 45
1001
+ 1
1002
+ 2
1003
+ 13
1004
+ 71
1005
+ 3
1006
+ 47
1007
+ 9
1008
+ 23
1009
+ 47
1010
+ 49
1011
+ 4
1012
+ 0
1013
+ 13
1014
+ 47
1015
+ 49
1016
+ 5
1017
+ 0
1018
+ 15
1019
+ 8
1020
+ 26
1021
+ 49
1022
+ 3
1023
+ 0
1024
+ 56
1025
+ 6
1026
+ 50
1027
+ 7
1028
+ 0
1029
+ 49
1030
+ 8
1031
+ 1
1032
+ 11
1033
+ I
1034
+ 4
1035
+ I
1036
+ 0
1037
+ I
1038
+ 0
1039
+ I
1040
+ 0
1041
+ I
1042
+ -2
1043
+ p
1044
+ 9
1045
+ x
1046
+ 17
1047
+ @hidden_documents
1048
+ x
1049
+ 7
1050
+ TestDoc
1051
+ n
1052
+ x
1053
+ 3
1054
+ new
1055
+ x
1056
+ 8
1057
+ allocate
1058
+ x
1059
+ 10
1060
+ initialize
1061
+ M
1062
+ 1
1063
+ p
1064
+ 2
1065
+ x
1066
+ 9
1067
+ for_block
1068
+ t
1069
+ n
1070
+ x
1071
+ 9
1072
+ __block__
1073
+ i
1074
+ 10
1075
+ 57
1076
+ 19
1077
+ 0
1078
+ 15
1079
+ 20
1080
+ 0
1081
+ 49
1082
+ 0
1083
+ 0
1084
+ 11
1085
+ I
1086
+ 3
1087
+ I
1088
+ 1
1089
+ I
1090
+ 1
1091
+ I
1092
+ 1
1093
+ n
1094
+ p
1095
+ 1
1096
+ x
1097
+ 4
1098
+ save
1099
+ p
1100
+ 3
1101
+ I
1102
+ 0
1103
+ I
1104
+ 21
1105
+ I
1106
+ a
1107
+ x
1108
+ 80
1109
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1110
+ p
1111
+ 1
1112
+ x
1113
+ 1
1114
+ d
1115
+ x
1116
+ 3
1117
+ tap
1118
+ x
1119
+ 2
1120
+ <<
1121
+ p
1122
+ 3
1123
+ I
1124
+ 0
1125
+ I
1126
+ 21
1127
+ I
1128
+ 23
1129
+ x
1130
+ 80
1131
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1132
+ p
1133
+ 0
1134
+ x
1135
+ 5
1136
+ times
1137
+ M
1138
+ 1
1139
+ p
1140
+ 2
1141
+ x
1142
+ 9
1143
+ for_block
1144
+ t
1145
+ n
1146
+ x
1147
+ 9
1148
+ __block__
1149
+ i
1150
+ 35
1151
+ 39
1152
+ 0
1153
+ 45
1154
+ 1
1155
+ 2
1156
+ 13
1157
+ 71
1158
+ 3
1159
+ 47
1160
+ 9
1161
+ 23
1162
+ 47
1163
+ 49
1164
+ 4
1165
+ 0
1166
+ 13
1167
+ 47
1168
+ 49
1169
+ 5
1170
+ 0
1171
+ 15
1172
+ 8
1173
+ 26
1174
+ 49
1175
+ 3
1176
+ 0
1177
+ 56
1178
+ 6
1179
+ 50
1180
+ 7
1181
+ 0
1182
+ 49
1183
+ 8
1184
+ 1
1185
+ 11
1186
+ I
1187
+ 4
1188
+ I
1189
+ 0
1190
+ I
1191
+ 0
1192
+ I
1193
+ 0
1194
+ I
1195
+ -2
1196
+ p
1197
+ 9
1198
+ x
1199
+ 16
1200
+ @shown_documents
1201
+ x
1202
+ 7
1203
+ TestDoc
1204
+ n
1205
+ x
1206
+ 3
1207
+ new
1208
+ x
1209
+ 8
1210
+ allocate
1211
+ x
1212
+ 10
1213
+ initialize
1214
+ M
1215
+ 1
1216
+ p
1217
+ 2
1218
+ x
1219
+ 9
1220
+ for_block
1221
+ t
1222
+ n
1223
+ x
1224
+ 9
1225
+ __block__
1226
+ i
1227
+ 16
1228
+ 57
1229
+ 19
1230
+ 0
1231
+ 15
1232
+ 20
1233
+ 0
1234
+ 49
1235
+ 0
1236
+ 0
1237
+ 15
1238
+ 20
1239
+ 0
1240
+ 49
1241
+ 1
1242
+ 0
1243
+ 11
1244
+ I
1245
+ 3
1246
+ I
1247
+ 1
1248
+ I
1249
+ 1
1250
+ I
1251
+ 1
1252
+ n
1253
+ p
1254
+ 2
1255
+ x
1256
+ 5
1257
+ show!
1258
+ x
1259
+ 4
1260
+ save
1261
+ p
1262
+ 3
1263
+ I
1264
+ 0
1265
+ I
1266
+ 22
1267
+ I
1268
+ 10
1269
+ x
1270
+ 80
1271
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1272
+ p
1273
+ 1
1274
+ x
1275
+ 1
1276
+ d
1277
+ x
1278
+ 3
1279
+ tap
1280
+ x
1281
+ 2
1282
+ <<
1283
+ p
1284
+ 3
1285
+ I
1286
+ 0
1287
+ I
1288
+ 22
1289
+ I
1290
+ 23
1291
+ x
1292
+ 80
1293
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1294
+ p
1295
+ 0
1296
+ p
1297
+ 11
1298
+ I
1299
+ 0
1300
+ I
1301
+ 1b
1302
+ I
1303
+ 21
1304
+ I
1305
+ 1f
1306
+ I
1307
+ 26
1308
+ I
1309
+ 20
1310
+ I
1311
+ 2b
1312
+ I
1313
+ 21
1314
+ I
1315
+ 33
1316
+ I
1317
+ 22
1318
+ I
1319
+ 3b
1320
+ x
1321
+ 80
1322
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1323
+ p
1324
+ 0
1325
+ n
1326
+ s
1327
+ 52
1328
+ ^I call the "by_hidden" method on my document model$
1329
+ M
1330
+ 1
1331
+ p
1332
+ 2
1333
+ x
1334
+ 9
1335
+ for_block
1336
+ t
1337
+ n
1338
+ x
1339
+ 9
1340
+ __block__
1341
+ i
1342
+ 24
1343
+ 45
1344
+ 0
1345
+ 1
1346
+ 44
1347
+ 43
1348
+ 2
1349
+ 79
1350
+ 49
1351
+ 3
1352
+ 1
1353
+ 13
1354
+ 7
1355
+ 4
1356
+ 3
1357
+ 49
1358
+ 5
1359
+ 2
1360
+ 15
1361
+ 49
1362
+ 6
1363
+ 1
1364
+ 38
1365
+ 7
1366
+ 11
1367
+ I
1368
+ 6
1369
+ I
1370
+ 0
1371
+ I
1372
+ 0
1373
+ I
1374
+ 0
1375
+ I
1376
+ -2
1377
+ p
1378
+ 8
1379
+ x
1380
+ 7
1381
+ TestDoc
1382
+ n
1383
+ x
1384
+ 4
1385
+ Hash
1386
+ x
1387
+ 16
1388
+ new_from_literal
1389
+ x
1390
+ 6
1391
+ reduce
1392
+ x
1393
+ 3
1394
+ []=
1395
+ x
1396
+ 9
1397
+ by_hidden
1398
+ x
1399
+ 7
1400
+ @result
1401
+ p
1402
+ 3
1403
+ I
1404
+ 0
1405
+ I
1406
+ 26
1407
+ I
1408
+ 18
1409
+ x
1410
+ 80
1411
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1412
+ p
1413
+ 0
1414
+ n
1415
+ s
1416
+ 39
1417
+ ^I should receive the hidden documents$
1418
+ M
1419
+ 1
1420
+ p
1421
+ 2
1422
+ x
1423
+ 9
1424
+ for_block
1425
+ t
1426
+ n
1427
+ x
1428
+ 9
1429
+ __block__
1430
+ i
1431
+ 48
1432
+ 39
1433
+ 0
1434
+ 7
1435
+ 1
1436
+ 13
1437
+ 70
1438
+ 10
1439
+ 15
1440
+ 44
1441
+ 43
1442
+ 2
1443
+ 12
1444
+ 49
1445
+ 3
1446
+ 1
1447
+ 50
1448
+ 4
1449
+ 0
1450
+ 49
1451
+ 5
1452
+ 0
1453
+ 49
1454
+ 6
1455
+ 0
1456
+ 39
1457
+ 7
1458
+ 7
1459
+ 1
1460
+ 13
1461
+ 70
1462
+ 10
1463
+ 39
1464
+ 44
1465
+ 43
1466
+ 2
1467
+ 12
1468
+ 49
1469
+ 3
1470
+ 1
1471
+ 50
1472
+ 4
1473
+ 0
1474
+ 49
1475
+ 5
1476
+ 0
1477
+ 83
1478
+ 8
1479
+ 11
1480
+ I
1481
+ 5
1482
+ I
1483
+ 0
1484
+ I
1485
+ 0
1486
+ I
1487
+ 0
1488
+ I
1489
+ -2
1490
+ p
1491
+ 9
1492
+ x
1493
+ 7
1494
+ @result
1495
+ x
1496
+ 2
1497
+ id
1498
+ x
1499
+ 4
1500
+ Proc
1501
+ x
1502
+ 14
1503
+ __from_block__
1504
+ x
1505
+ 7
1506
+ collect
1507
+ x
1508
+ 4
1509
+ sort
1510
+ x
1511
+ 6
1512
+ should
1513
+ x
1514
+ 17
1515
+ @hidden_documents
1516
+ x
1517
+ 2
1518
+ ==
1519
+ p
1520
+ 3
1521
+ I
1522
+ 0
1523
+ I
1524
+ 2a
1525
+ I
1526
+ 30
1527
+ x
1528
+ 80
1529
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1530
+ p
1531
+ 0
1532
+ n
1533
+ s
1534
+ 42
1535
+ ^I should not receive the shown documents$
1536
+ M
1537
+ 1
1538
+ p
1539
+ 2
1540
+ x
1541
+ 9
1542
+ for_block
1543
+ t
1544
+ n
1545
+ x
1546
+ 9
1547
+ __block__
1548
+ i
1549
+ 45
1550
+ 39
1551
+ 0
1552
+ 7
1553
+ 1
1554
+ 13
1555
+ 70
1556
+ 10
1557
+ 15
1558
+ 44
1559
+ 43
1560
+ 2
1561
+ 12
1562
+ 49
1563
+ 3
1564
+ 1
1565
+ 50
1566
+ 4
1567
+ 0
1568
+ 38
1569
+ 5
1570
+ 15
1571
+ 39
1572
+ 6
1573
+ 7
1574
+ 1
1575
+ 13
1576
+ 70
1577
+ 10
1578
+ 36
1579
+ 44
1580
+ 43
1581
+ 2
1582
+ 12
1583
+ 49
1584
+ 3
1585
+ 1
1586
+ 50
1587
+ 4
1588
+ 0
1589
+ 56
1590
+ 7
1591
+ 50
1592
+ 8
1593
+ 0
1594
+ 11
1595
+ I
1596
+ 4
1597
+ I
1598
+ 0
1599
+ I
1600
+ 0
1601
+ I
1602
+ 0
1603
+ I
1604
+ -2
1605
+ p
1606
+ 9
1607
+ x
1608
+ 7
1609
+ @result
1610
+ x
1611
+ 2
1612
+ id
1613
+ x
1614
+ 4
1615
+ Proc
1616
+ x
1617
+ 14
1618
+ __from_block__
1619
+ x
1620
+ 7
1621
+ collect
1622
+ x
1623
+ 11
1624
+ @result_ids
1625
+ x
1626
+ 16
1627
+ @shown_documents
1628
+ M
1629
+ 1
1630
+ p
1631
+ 2
1632
+ x
1633
+ 9
1634
+ for_block
1635
+ t
1636
+ n
1637
+ x
1638
+ 9
1639
+ __block__
1640
+ i
1641
+ 21
1642
+ 57
1643
+ 19
1644
+ 0
1645
+ 15
1646
+ 39
1647
+ 0
1648
+ 20
1649
+ 0
1650
+ 49
1651
+ 1
1652
+ 1
1653
+ 5
1654
+ 3
1655
+ 47
1656
+ 49
1657
+ 2
1658
+ 1
1659
+ 49
1660
+ 3
1661
+ 1
1662
+ 11
1663
+ I
1664
+ 5
1665
+ I
1666
+ 1
1667
+ I
1668
+ 1
1669
+ I
1670
+ 1
1671
+ n
1672
+ p
1673
+ 4
1674
+ x
1675
+ 11
1676
+ @result_ids
1677
+ x
1678
+ 8
1679
+ include?
1680
+ x
1681
+ 2
1682
+ be
1683
+ x
1684
+ 6
1685
+ should
1686
+ p
1687
+ 5
1688
+ I
1689
+ 0
1690
+ I
1691
+ 2f
1692
+ I
1693
+ 4
1694
+ I
1695
+ 30
1696
+ I
1697
+ 15
1698
+ x
1699
+ 80
1700
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1701
+ p
1702
+ 1
1703
+ x
1704
+ 8
1705
+ shown_id
1706
+ x
1707
+ 4
1708
+ each
1709
+ p
1710
+ 5
1711
+ I
1712
+ 0
1713
+ I
1714
+ 2e
1715
+ I
1716
+ 15
1717
+ I
1718
+ 2f
1719
+ I
1720
+ 2d
1721
+ x
1722
+ 80
1723
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1724
+ p
1725
+ 0
1726
+ n
1727
+ s
1728
+ 55
1729
+ ^I call the "count_hidden" method on my document model$
1730
+ M
1731
+ 1
1732
+ p
1733
+ 2
1734
+ x
1735
+ 9
1736
+ for_block
1737
+ t
1738
+ n
1739
+ x
1740
+ 9
1741
+ __block__
1742
+ i
1743
+ 9
1744
+ 45
1745
+ 0
1746
+ 1
1747
+ 49
1748
+ 2
1749
+ 0
1750
+ 38
1751
+ 3
1752
+ 11
1753
+ I
1754
+ 2
1755
+ I
1756
+ 0
1757
+ I
1758
+ 0
1759
+ I
1760
+ 0
1761
+ I
1762
+ -2
1763
+ p
1764
+ 4
1765
+ x
1766
+ 7
1767
+ TestDoc
1768
+ n
1769
+ x
1770
+ 12
1771
+ count_hidden
1772
+ x
1773
+ 7
1774
+ @result
1775
+ p
1776
+ 3
1777
+ I
1778
+ 0
1779
+ I
1780
+ 35
1781
+ I
1782
+ 9
1783
+ x
1784
+ 80
1785
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1786
+ p
1787
+ 0
1788
+ n
1789
+ s
1790
+ 48
1791
+ ^I should receive the count of hidden documents$
1792
+ M
1793
+ 1
1794
+ p
1795
+ 2
1796
+ x
1797
+ 9
1798
+ for_block
1799
+ t
1800
+ n
1801
+ x
1802
+ 9
1803
+ __block__
1804
+ i
1805
+ 13
1806
+ 39
1807
+ 0
1808
+ 49
1809
+ 1
1810
+ 0
1811
+ 39
1812
+ 2
1813
+ 49
1814
+ 3
1815
+ 0
1816
+ 83
1817
+ 4
1818
+ 11
1819
+ I
1820
+ 3
1821
+ I
1822
+ 0
1823
+ I
1824
+ 0
1825
+ I
1826
+ 0
1827
+ I
1828
+ -2
1829
+ p
1830
+ 5
1831
+ x
1832
+ 7
1833
+ @result
1834
+ x
1835
+ 6
1836
+ should
1837
+ x
1838
+ 17
1839
+ @hidden_documents
1840
+ x
1841
+ 5
1842
+ count
1843
+ x
1844
+ 2
1845
+ ==
1846
+ p
1847
+ 3
1848
+ I
1849
+ 0
1850
+ I
1851
+ 39
1852
+ I
1853
+ d
1854
+ x
1855
+ 80
1856
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1857
+ p
1858
+ 0
1859
+ p
1860
+ 21
1861
+ I
1862
+ 0
1863
+ I
1864
+ 1
1865
+ I
1866
+ 1a
1867
+ I
1868
+ 9
1869
+ I
1870
+ 34
1871
+ I
1872
+ d
1873
+ I
1874
+ 4e
1875
+ I
1876
+ 12
1877
+ I
1878
+ 68
1879
+ I
1880
+ 1a
1881
+ I
1882
+ 82
1883
+ I
1884
+ 25
1885
+ I
1886
+ 9c
1887
+ I
1888
+ 29
1889
+ I
1890
+ b6
1891
+ I
1892
+ 2d
1893
+ I
1894
+ d0
1895
+ I
1896
+ 34
1897
+ I
1898
+ ea
1899
+ I
1900
+ 38
1901
+ I
1902
+ 106
1903
+ x
1904
+ 80
1905
+ /Users/mparker/work/github/couch_visible/features/step_definitions/hide_steps.rb
1906
+ p
1907
+ 0