couch_visible 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
@@ -0,0 +1,57 @@
1
+ Feature: Configuration
2
+ As a programmer
3
+ I want to specify whether or not a model's documents are shown or hidden by default
4
+ So that I can configure the functionality of this gem for my own evil purposes
5
+
6
+ Scenario: Resetting the configuration
7
+ Given I have edited the global configuration
8
+ When I run the following code:
9
+ """
10
+ CouchVisible.reset!
11
+ """
12
+ Then the configuration of the CouchVisible gem should be reset to its defaults
13
+
14
+ Scenario: The "show_by_default" global setting should default to false
15
+ When I run the following code:
16
+ """
17
+ CouchVisible.show_by_default?
18
+ """
19
+ Then I should get false
20
+ When I run the following code:
21
+ """
22
+ CouchVisible.show_by_default!
23
+ """
24
+ And I run the following code:
25
+ """
26
+ CouchVisible.show_by_default?
27
+ """
28
+ Then I should get true
29
+
30
+ Scenario: Globally setting the default visibility of documents
31
+ When I run the following code:
32
+ """
33
+ CouchVisible.show_by_default!
34
+ """
35
+ Then any documents I create should be visible by default
36
+ When I run the following code:
37
+ """
38
+ CouchVisible.hide_by_default!
39
+ """
40
+ Then any documents I create should be hidden by default
41
+
42
+ Scenario: The visibility of documents should default to the global setting
43
+ Given a model that includes CouchVisible
44
+ When I create an instance of my model
45
+ Then it should be hidden
46
+ Given I set the global configuration of CouchVisible to shown by default
47
+ When I create an instance of my model
48
+ Then it should be shown
49
+
50
+ Scenario: Setting the default visibility of documents on the model
51
+ Given a model that includes CouchVisible
52
+ When I call "show_by_default!" on it
53
+ And I create an instance of my model
54
+ Then it should be shown
55
+ When I call "hide_by_default!" on it
56
+ And I create an instance of my model
57
+ Then it should be hidden
@@ -0,0 +1,29 @@
1
+ Feature: Hiding a document
2
+ As a programmer
3
+ I want the ability to hide a document
4
+ So that I can flag a document as hidden
5
+
6
+ Scenario: Hide a document
7
+ Given a document that includes CouchVisible
8
+ When I call the "hide!" method on the document
9
+ Then the document should be marked as hidden
10
+
11
+ Scenario: Determining if a document is hidden
12
+ Given a document that is shown
13
+ When I call the "hidden?" method on the document
14
+ Then I should get false
15
+ When I call the "hide!" method on the document
16
+ And I call the "hidden?" method on the document
17
+ Then I should get true
18
+
19
+ Scenario: Getting the list of all hidden documents
20
+ Given there are several hidden and visible documents
21
+ When I call the "by_hidden" method on my document model
22
+ Then I should receive the hidden documents
23
+ And I should not receive the shown documents
24
+
25
+ @focus
26
+ Scenario: Getting the count of all hidden documents
27
+ Given there are several hidden and visible documents
28
+ When I call the "count_hidden" method on my document model
29
+ Then I should receive the count of hidden documents
@@ -0,0 +1,9 @@
1
+ Feature: Integration with the Memories gem
2
+ As a programmer
3
+ I want the couch_visible gem to integrate with the memories gem
4
+ So that the visibility of my documents isn't versioned
5
+
6
+ Scenario: mixing CouchVisible into an object that already includes Memories
7
+ Given I have a model that includes Memories
8
+ When I mix CouchVisible into that model
9
+ Then the "couch_visible" property should not be versioned
@@ -0,0 +1,29 @@
1
+ Feature: Showing a document
2
+ As a programmer
3
+ I want the ability to show a document
4
+ So that I can flag a document as visible for viewing
5
+
6
+ Scenario: Show a document
7
+ Given a document that includes CouchVisible
8
+ When I call the "show!" method on the document
9
+ Then the document should be marked as shown
10
+
11
+ Scenario: Determining if a document is shown
12
+ Given a document that is not shown
13
+ When I call the "shown?" method on the document
14
+ Then I should get false
15
+ When I call the "show!" method on the document
16
+ And I call the "shown?" method on the document
17
+ Then I should get true
18
+
19
+ Scenario: Getting the list of all shown documents
20
+ Given there are several hidden and visible documents
21
+ When I call the "by_shown" method
22
+ Then I should receive the shown documents
23
+ And I should not receive the hidden documents
24
+
25
+ @focus
26
+ Scenario: Getting the count of all shown documents
27
+ Given there are several hidden and visible documents
28
+ When I call the "count_shown" method on my document model
29
+ Then I should receive the count of shown documents
@@ -0,0 +1,57 @@
1
+ Given /^I have edited the global configuration$/ do
2
+ CouchVisible.show_by_default?.should be(false)
3
+ CouchVisible.show_by_default!
4
+ CouchVisible.show_by_default?.should be(true)
5
+ end
6
+
7
+ When /^I run the following code:$/ do |string|
8
+ @result = eval string
9
+ end
10
+
11
+ Then /^the configuration of the CouchVisible gem should be reset to its defaults$/ do
12
+ CouchVisible.show_by_default?.should be(false)
13
+ end
14
+
15
+ Then /^I should get false$/ do
16
+ @result.should == false
17
+ end
18
+
19
+ Then /^any documents I create should be visible by default$/ do
20
+ Document.create.shown?.should be(true)
21
+ Document.create.hidden?.should be(false)
22
+ end
23
+
24
+ Then /^any documents I create should be hidden by default$/ do
25
+ Document.create.hidden?.should be(true)
26
+ Document.create.shown?.should be(false)
27
+ end
28
+
29
+ Given /^a model that includes CouchVisible$/ do
30
+ class MyModel < CouchRest::Model::Base
31
+ include CouchVisible
32
+ end
33
+ end
34
+
35
+ When /^I create an instance of my model$/ do
36
+ @instance = MyModel.create
37
+ end
38
+
39
+ Then /^it should be hidden$/ do
40
+ @instance.hidden?.should be(true)
41
+ end
42
+
43
+ Given /^I set the global configuration of CouchVisible to shown by default$/ do
44
+ CouchVisible.show_by_default!
45
+ end
46
+
47
+ Then /^it should be shown$/ do
48
+ @instance.shown?.should be(true)
49
+ end
50
+
51
+ When /^I call "([^"]*)" on it$/ do |method|
52
+ MyModel.send method
53
+ end
54
+
55
+ Then /^I should get true$/ do
56
+ @result.should be(true)
57
+ end
@@ -0,0 +1,1500 @@
1
+ !RBIX
2
+ 17831730954501249321
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 340
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
+ 13
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
+ 13
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
+ 13
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
+ 5
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
+ 9
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
+ 13
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
+ 5
271
+ 1
272
+ 15
273
+ 5
274
+ 7
275
+ 35
276
+ 13
277
+ 70
278
+ 9
279
+ 279
280
+ 15
281
+ 44
282
+ 43
283
+ 1
284
+ 7
285
+ 36
286
+ 78
287
+ 49
288
+ 3
289
+ 2
290
+ 6
291
+ 35
292
+ 56
293
+ 37
294
+ 47
295
+ 50
296
+ 13
297
+ 1
298
+ 15
299
+ 5
300
+ 7
301
+ 38
302
+ 13
303
+ 70
304
+ 9
305
+ 305
306
+ 15
307
+ 44
308
+ 43
309
+ 1
310
+ 7
311
+ 39
312
+ 78
313
+ 49
314
+ 3
315
+ 2
316
+ 6
317
+ 38
318
+ 56
319
+ 40
320
+ 47
321
+ 50
322
+ 9
323
+ 1
324
+ 15
325
+ 5
326
+ 7
327
+ 41
328
+ 13
329
+ 70
330
+ 9
331
+ 331
332
+ 15
333
+ 44
334
+ 43
335
+ 1
336
+ 7
337
+ 42
338
+ 78
339
+ 49
340
+ 3
341
+ 2
342
+ 6
343
+ 41
344
+ 56
345
+ 43
346
+ 47
347
+ 50
348
+ 13
349
+ 1
350
+ 15
351
+ 2
352
+ 11
353
+ I
354
+ 4
355
+ I
356
+ 0
357
+ I
358
+ 0
359
+ I
360
+ 0
361
+ n
362
+ p
363
+ 44
364
+ n
365
+ x
366
+ 6
367
+ Regexp
368
+ s
369
+ 40
370
+ ^I have edited the global configuration$
371
+ x
372
+ 3
373
+ new
374
+ M
375
+ 1
376
+ p
377
+ 2
378
+ x
379
+ 9
380
+ for_block
381
+ t
382
+ n
383
+ x
384
+ 9
385
+ __block__
386
+ i
387
+ 39
388
+ 45
389
+ 0
390
+ 1
391
+ 49
392
+ 2
393
+ 0
394
+ 5
395
+ 3
396
+ 47
397
+ 49
398
+ 3
399
+ 1
400
+ 49
401
+ 4
402
+ 1
403
+ 15
404
+ 45
405
+ 0
406
+ 5
407
+ 49
408
+ 6
409
+ 0
410
+ 15
411
+ 45
412
+ 0
413
+ 7
414
+ 49
415
+ 2
416
+ 0
417
+ 5
418
+ 2
419
+ 47
420
+ 49
421
+ 3
422
+ 1
423
+ 49
424
+ 4
425
+ 1
426
+ 11
427
+ I
428
+ 4
429
+ I
430
+ 0
431
+ I
432
+ 0
433
+ I
434
+ 0
435
+ I
436
+ -2
437
+ p
438
+ 8
439
+ x
440
+ 12
441
+ CouchVisible
442
+ n
443
+ x
444
+ 16
445
+ show_by_default?
446
+ x
447
+ 2
448
+ be
449
+ x
450
+ 6
451
+ should
452
+ n
453
+ x
454
+ 16
455
+ show_by_default!
456
+ n
457
+ p
458
+ 7
459
+ I
460
+ 0
461
+ I
462
+ 2
463
+ I
464
+ 10
465
+ I
466
+ 3
467
+ I
468
+ 17
469
+ I
470
+ 4
471
+ I
472
+ 27
473
+ x
474
+ 89
475
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
476
+ p
477
+ 0
478
+ x
479
+ 5
480
+ Given
481
+ n
482
+ s
483
+ 27
484
+ ^I run the following code:$
485
+ M
486
+ 1
487
+ p
488
+ 2
489
+ x
490
+ 9
491
+ for_block
492
+ t
493
+ n
494
+ x
495
+ 9
496
+ __block__
497
+ i
498
+ 14
499
+ 57
500
+ 19
501
+ 0
502
+ 15
503
+ 5
504
+ 20
505
+ 0
506
+ 47
507
+ 49
508
+ 0
509
+ 1
510
+ 38
511
+ 1
512
+ 11
513
+ I
514
+ 4
515
+ I
516
+ 1
517
+ I
518
+ 1
519
+ I
520
+ 1
521
+ n
522
+ p
523
+ 2
524
+ x
525
+ 4
526
+ eval
527
+ x
528
+ 7
529
+ @result
530
+ p
531
+ 5
532
+ I
533
+ 0
534
+ I
535
+ 7
536
+ I
537
+ 4
538
+ I
539
+ 8
540
+ I
541
+ e
542
+ x
543
+ 89
544
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
545
+ p
546
+ 1
547
+ x
548
+ 6
549
+ string
550
+ x
551
+ 4
552
+ When
553
+ n
554
+ s
555
+ 75
556
+ ^the configuration of the CouchVisible gem should be reset to its defaults$
557
+ M
558
+ 1
559
+ p
560
+ 2
561
+ x
562
+ 9
563
+ for_block
564
+ t
565
+ n
566
+ x
567
+ 9
568
+ __block__
569
+ i
570
+ 16
571
+ 45
572
+ 0
573
+ 1
574
+ 49
575
+ 2
576
+ 0
577
+ 5
578
+ 3
579
+ 47
580
+ 49
581
+ 3
582
+ 1
583
+ 49
584
+ 4
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
+ 12
601
+ CouchVisible
602
+ n
603
+ x
604
+ 16
605
+ show_by_default?
606
+ x
607
+ 2
608
+ be
609
+ x
610
+ 6
611
+ should
612
+ p
613
+ 3
614
+ I
615
+ 0
616
+ I
617
+ c
618
+ I
619
+ 10
620
+ x
621
+ 89
622
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
623
+ p
624
+ 0
625
+ x
626
+ 4
627
+ Then
628
+ n
629
+ s
630
+ 20
631
+ ^I should get false$
632
+ M
633
+ 1
634
+ p
635
+ 2
636
+ x
637
+ 9
638
+ for_block
639
+ t
640
+ n
641
+ x
642
+ 9
643
+ __block__
644
+ i
645
+ 9
646
+ 39
647
+ 0
648
+ 49
649
+ 1
650
+ 0
651
+ 3
652
+ 83
653
+ 2
654
+ 11
655
+ I
656
+ 3
657
+ I
658
+ 0
659
+ I
660
+ 0
661
+ I
662
+ 0
663
+ I
664
+ -2
665
+ p
666
+ 3
667
+ x
668
+ 7
669
+ @result
670
+ x
671
+ 6
672
+ should
673
+ x
674
+ 2
675
+ ==
676
+ p
677
+ 3
678
+ I
679
+ 0
680
+ I
681
+ 10
682
+ I
683
+ 9
684
+ x
685
+ 89
686
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
687
+ p
688
+ 0
689
+ n
690
+ s
691
+ 53
692
+ ^any documents I create should be visible by default$
693
+ M
694
+ 1
695
+ p
696
+ 2
697
+ x
698
+ 9
699
+ for_block
700
+ t
701
+ n
702
+ x
703
+ 9
704
+ __block__
705
+ i
706
+ 38
707
+ 45
708
+ 0
709
+ 1
710
+ 49
711
+ 2
712
+ 0
713
+ 49
714
+ 3
715
+ 0
716
+ 5
717
+ 2
718
+ 47
719
+ 49
720
+ 4
721
+ 1
722
+ 49
723
+ 5
724
+ 1
725
+ 15
726
+ 45
727
+ 0
728
+ 6
729
+ 49
730
+ 2
731
+ 0
732
+ 49
733
+ 7
734
+ 0
735
+ 5
736
+ 3
737
+ 47
738
+ 49
739
+ 4
740
+ 1
741
+ 49
742
+ 5
743
+ 1
744
+ 11
745
+ I
746
+ 4
747
+ I
748
+ 0
749
+ I
750
+ 0
751
+ I
752
+ 0
753
+ I
754
+ -2
755
+ p
756
+ 8
757
+ x
758
+ 8
759
+ Document
760
+ n
761
+ x
762
+ 6
763
+ create
764
+ x
765
+ 6
766
+ shown?
767
+ x
768
+ 2
769
+ be
770
+ x
771
+ 6
772
+ should
773
+ n
774
+ x
775
+ 7
776
+ hidden?
777
+ p
778
+ 5
779
+ I
780
+ 0
781
+ I
782
+ 14
783
+ I
784
+ 13
785
+ I
786
+ 15
787
+ I
788
+ 26
789
+ x
790
+ 89
791
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
792
+ p
793
+ 0
794
+ n
795
+ s
796
+ 52
797
+ ^any documents I create should be hidden by default$
798
+ M
799
+ 1
800
+ p
801
+ 2
802
+ x
803
+ 9
804
+ for_block
805
+ t
806
+ n
807
+ x
808
+ 9
809
+ __block__
810
+ i
811
+ 38
812
+ 45
813
+ 0
814
+ 1
815
+ 49
816
+ 2
817
+ 0
818
+ 49
819
+ 3
820
+ 0
821
+ 5
822
+ 2
823
+ 47
824
+ 49
825
+ 4
826
+ 1
827
+ 49
828
+ 5
829
+ 1
830
+ 15
831
+ 45
832
+ 0
833
+ 6
834
+ 49
835
+ 2
836
+ 0
837
+ 49
838
+ 7
839
+ 0
840
+ 5
841
+ 3
842
+ 47
843
+ 49
844
+ 4
845
+ 1
846
+ 49
847
+ 5
848
+ 1
849
+ 11
850
+ I
851
+ 4
852
+ I
853
+ 0
854
+ I
855
+ 0
856
+ I
857
+ 0
858
+ I
859
+ -2
860
+ p
861
+ 8
862
+ x
863
+ 8
864
+ Document
865
+ n
866
+ x
867
+ 6
868
+ create
869
+ x
870
+ 7
871
+ hidden?
872
+ x
873
+ 2
874
+ be
875
+ x
876
+ 6
877
+ should
878
+ n
879
+ x
880
+ 6
881
+ shown?
882
+ p
883
+ 5
884
+ I
885
+ 0
886
+ I
887
+ 19
888
+ I
889
+ 13
890
+ I
891
+ 1a
892
+ I
893
+ 26
894
+ x
895
+ 89
896
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
897
+ p
898
+ 0
899
+ n
900
+ s
901
+ 36
902
+ ^a model that includes CouchVisible$
903
+ M
904
+ 1
905
+ p
906
+ 2
907
+ x
908
+ 9
909
+ for_block
910
+ t
911
+ n
912
+ x
913
+ 9
914
+ __block__
915
+ i
916
+ 33
917
+ 99
918
+ 7
919
+ 0
920
+ 45
921
+ 1
922
+ 2
923
+ 43
924
+ 3
925
+ 43
926
+ 4
927
+ 65
928
+ 49
929
+ 5
930
+ 3
931
+ 13
932
+ 99
933
+ 12
934
+ 7
935
+ 6
936
+ 12
937
+ 7
938
+ 7
939
+ 12
940
+ 65
941
+ 12
942
+ 49
943
+ 8
944
+ 4
945
+ 15
946
+ 49
947
+ 6
948
+ 0
949
+ 11
950
+ I
951
+ 7
952
+ I
953
+ 0
954
+ I
955
+ 0
956
+ I
957
+ 0
958
+ I
959
+ -2
960
+ p
961
+ 9
962
+ x
963
+ 7
964
+ MyModel
965
+ x
966
+ 9
967
+ CouchRest
968
+ n
969
+ x
970
+ 5
971
+ Model
972
+ x
973
+ 4
974
+ Base
975
+ x
976
+ 10
977
+ open_class
978
+ x
979
+ 14
980
+ __class_init__
981
+ M
982
+ 1
983
+ n
984
+ n
985
+ x
986
+ 7
987
+ MyModel
988
+ i
989
+ 11
990
+ 5
991
+ 66
992
+ 5
993
+ 45
994
+ 0
995
+ 1
996
+ 47
997
+ 49
998
+ 2
999
+ 1
1000
+ 11
1001
+ I
1002
+ 2
1003
+ I
1004
+ 0
1005
+ I
1006
+ 0
1007
+ I
1008
+ 0
1009
+ n
1010
+ p
1011
+ 3
1012
+ x
1013
+ 12
1014
+ CouchVisible
1015
+ n
1016
+ x
1017
+ 7
1018
+ include
1019
+ p
1020
+ 3
1021
+ I
1022
+ 2
1023
+ I
1024
+ 1f
1025
+ I
1026
+ b
1027
+ x
1028
+ 89
1029
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1030
+ p
1031
+ 0
1032
+ x
1033
+ 13
1034
+ attach_method
1035
+ p
1036
+ 3
1037
+ I
1038
+ 0
1039
+ I
1040
+ 1e
1041
+ I
1042
+ 21
1043
+ x
1044
+ 89
1045
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1046
+ p
1047
+ 0
1048
+ n
1049
+ s
1050
+ 34
1051
+ ^I create an instance of my model$
1052
+ M
1053
+ 1
1054
+ p
1055
+ 2
1056
+ x
1057
+ 9
1058
+ for_block
1059
+ t
1060
+ n
1061
+ x
1062
+ 9
1063
+ __block__
1064
+ i
1065
+ 9
1066
+ 45
1067
+ 0
1068
+ 1
1069
+ 49
1070
+ 2
1071
+ 0
1072
+ 38
1073
+ 3
1074
+ 11
1075
+ I
1076
+ 2
1077
+ I
1078
+ 0
1079
+ I
1080
+ 0
1081
+ I
1082
+ 0
1083
+ I
1084
+ -2
1085
+ p
1086
+ 4
1087
+ x
1088
+ 7
1089
+ MyModel
1090
+ n
1091
+ x
1092
+ 6
1093
+ create
1094
+ x
1095
+ 9
1096
+ @instance
1097
+ p
1098
+ 3
1099
+ I
1100
+ 0
1101
+ I
1102
+ 24
1103
+ I
1104
+ 9
1105
+ x
1106
+ 89
1107
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1108
+ p
1109
+ 0
1110
+ n
1111
+ s
1112
+ 21
1113
+ ^it should be hidden$
1114
+ M
1115
+ 1
1116
+ p
1117
+ 2
1118
+ x
1119
+ 9
1120
+ for_block
1121
+ t
1122
+ n
1123
+ x
1124
+ 9
1125
+ __block__
1126
+ i
1127
+ 15
1128
+ 39
1129
+ 0
1130
+ 49
1131
+ 1
1132
+ 0
1133
+ 5
1134
+ 2
1135
+ 47
1136
+ 49
1137
+ 2
1138
+ 1
1139
+ 49
1140
+ 3
1141
+ 1
1142
+ 11
1143
+ I
1144
+ 4
1145
+ I
1146
+ 0
1147
+ I
1148
+ 0
1149
+ I
1150
+ 0
1151
+ I
1152
+ -2
1153
+ p
1154
+ 4
1155
+ x
1156
+ 9
1157
+ @instance
1158
+ x
1159
+ 7
1160
+ hidden?
1161
+ x
1162
+ 2
1163
+ be
1164
+ x
1165
+ 6
1166
+ should
1167
+ p
1168
+ 3
1169
+ I
1170
+ 0
1171
+ I
1172
+ 28
1173
+ I
1174
+ f
1175
+ x
1176
+ 89
1177
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1178
+ p
1179
+ 0
1180
+ n
1181
+ s
1182
+ 68
1183
+ ^I set the global configuration of CouchVisible to shown by default$
1184
+ M
1185
+ 1
1186
+ p
1187
+ 2
1188
+ x
1189
+ 9
1190
+ for_block
1191
+ t
1192
+ n
1193
+ x
1194
+ 9
1195
+ __block__
1196
+ i
1197
+ 7
1198
+ 45
1199
+ 0
1200
+ 1
1201
+ 49
1202
+ 2
1203
+ 0
1204
+ 11
1205
+ I
1206
+ 2
1207
+ I
1208
+ 0
1209
+ I
1210
+ 0
1211
+ I
1212
+ 0
1213
+ I
1214
+ -2
1215
+ p
1216
+ 3
1217
+ x
1218
+ 12
1219
+ CouchVisible
1220
+ n
1221
+ x
1222
+ 16
1223
+ show_by_default!
1224
+ p
1225
+ 3
1226
+ I
1227
+ 0
1228
+ I
1229
+ 2c
1230
+ I
1231
+ 7
1232
+ x
1233
+ 89
1234
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1235
+ p
1236
+ 0
1237
+ n
1238
+ s
1239
+ 20
1240
+ ^it should be shown$
1241
+ M
1242
+ 1
1243
+ p
1244
+ 2
1245
+ x
1246
+ 9
1247
+ for_block
1248
+ t
1249
+ n
1250
+ x
1251
+ 9
1252
+ __block__
1253
+ i
1254
+ 15
1255
+ 39
1256
+ 0
1257
+ 49
1258
+ 1
1259
+ 0
1260
+ 5
1261
+ 2
1262
+ 47
1263
+ 49
1264
+ 2
1265
+ 1
1266
+ 49
1267
+ 3
1268
+ 1
1269
+ 11
1270
+ I
1271
+ 4
1272
+ I
1273
+ 0
1274
+ I
1275
+ 0
1276
+ I
1277
+ 0
1278
+ I
1279
+ -2
1280
+ p
1281
+ 4
1282
+ x
1283
+ 9
1284
+ @instance
1285
+ x
1286
+ 6
1287
+ shown?
1288
+ x
1289
+ 2
1290
+ be
1291
+ x
1292
+ 6
1293
+ should
1294
+ p
1295
+ 3
1296
+ I
1297
+ 0
1298
+ I
1299
+ 30
1300
+ I
1301
+ f
1302
+ x
1303
+ 89
1304
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1305
+ p
1306
+ 0
1307
+ n
1308
+ s
1309
+ 24
1310
+ ^I call "([^"]*)" on it$
1311
+ M
1312
+ 1
1313
+ p
1314
+ 2
1315
+ x
1316
+ 9
1317
+ for_block
1318
+ t
1319
+ n
1320
+ x
1321
+ 9
1322
+ __block__
1323
+ i
1324
+ 13
1325
+ 57
1326
+ 19
1327
+ 0
1328
+ 15
1329
+ 45
1330
+ 0
1331
+ 1
1332
+ 20
1333
+ 0
1334
+ 49
1335
+ 2
1336
+ 1
1337
+ 11
1338
+ I
1339
+ 4
1340
+ I
1341
+ 1
1342
+ I
1343
+ 1
1344
+ I
1345
+ 1
1346
+ n
1347
+ p
1348
+ 3
1349
+ x
1350
+ 7
1351
+ MyModel
1352
+ n
1353
+ x
1354
+ 4
1355
+ send
1356
+ p
1357
+ 5
1358
+ I
1359
+ 0
1360
+ I
1361
+ 33
1362
+ I
1363
+ 4
1364
+ I
1365
+ 34
1366
+ I
1367
+ d
1368
+ x
1369
+ 89
1370
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1371
+ p
1372
+ 1
1373
+ x
1374
+ 6
1375
+ method
1376
+ n
1377
+ s
1378
+ 19
1379
+ ^I should get true$
1380
+ M
1381
+ 1
1382
+ p
1383
+ 2
1384
+ x
1385
+ 9
1386
+ for_block
1387
+ t
1388
+ n
1389
+ x
1390
+ 9
1391
+ __block__
1392
+ i
1393
+ 12
1394
+ 39
1395
+ 0
1396
+ 5
1397
+ 2
1398
+ 47
1399
+ 49
1400
+ 1
1401
+ 1
1402
+ 49
1403
+ 2
1404
+ 1
1405
+ 11
1406
+ I
1407
+ 4
1408
+ I
1409
+ 0
1410
+ I
1411
+ 0
1412
+ I
1413
+ 0
1414
+ I
1415
+ -2
1416
+ p
1417
+ 3
1418
+ x
1419
+ 7
1420
+ @result
1421
+ x
1422
+ 2
1423
+ be
1424
+ x
1425
+ 6
1426
+ should
1427
+ p
1428
+ 3
1429
+ I
1430
+ 0
1431
+ I
1432
+ 38
1433
+ I
1434
+ c
1435
+ x
1436
+ 89
1437
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1438
+ p
1439
+ 0
1440
+ p
1441
+ 27
1442
+ I
1443
+ 0
1444
+ I
1445
+ 1
1446
+ I
1447
+ 1a
1448
+ I
1449
+ 7
1450
+ I
1451
+ 34
1452
+ I
1453
+ b
1454
+ I
1455
+ 4e
1456
+ I
1457
+ f
1458
+ I
1459
+ 68
1460
+ I
1461
+ 13
1462
+ I
1463
+ 82
1464
+ I
1465
+ 18
1466
+ I
1467
+ 9c
1468
+ I
1469
+ 1d
1470
+ I
1471
+ b6
1472
+ I
1473
+ 23
1474
+ I
1475
+ d0
1476
+ I
1477
+ 27
1478
+ I
1479
+ ea
1480
+ I
1481
+ 2b
1482
+ I
1483
+ 104
1484
+ I
1485
+ 2f
1486
+ I
1487
+ 11e
1488
+ I
1489
+ 33
1490
+ I
1491
+ 138
1492
+ I
1493
+ 37
1494
+ I
1495
+ 154
1496
+ x
1497
+ 89
1498
+ /Users/mparker/work/github/couch_visible/features/step_definitions/configuration_steps.rb
1499
+ p
1500
+ 0