forked from carezone/mobylette
/
rcov.html
1847 lines (1301 loc) · 71.3 KB
/
rcov.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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<meta content='en' http-equiv='Content-Language' />
<title>metrics</title>
<style>
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.5.2
*/
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
/* --------------------------------------------------------------
buttons.css
* Gives you some great CSS-only buttons.
Created by Kevin Hale [particletree.com]
* particletree.com/features/rediscovering-the-button-element
See Readme.txt in this folder for instructions.
-------------------------------------------------------------- */
button {
display:block;
float:left;
margin:0 0.583em 0.667em 0;
padding:5px 10px 5px 7px; /* Links */
border:1px solid #dedede;
border-top:1px solid #eee;
border-left:1px solid #eee;
background-color:#f5f5f5;
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
font-size:100%;
line-height:130%;
text-decoration:none;
font-weight:bold;
color:#565656;
cursor:pointer;
}
button {
width:auto;
overflow:visible;
padding:4px 10px 3px 7px; /* IE6 */
}
button[type] {
padding:4px 10px 4px 7px; /* Firefox */
line-height:17px; /* Safari */
}
*:first-child+html button[type] {
padding:4px 10px 3px 7px; /* IE7 */
}
button img {
margin:0 3px -3px 0 !important;
padding:0;
border:none;
width:16px;
height:16px;
float:none;
}
/* Button colors
-------------------------------------------------------------- */
/* Standard */
button:hover {
background-color:#dff4ff;
border:1px solid #c2e1ef;
color:#336699;
}
/* Positive */
body .positive {
color:#529214;
}
button.positive:hover {
background-color:#E6EFC2;
border:1px solid #C6D880;
color:#529214;
}
/* Negative */
body .negative {
color:#d12f19;
}
button.negative:hover {
background:#fbe3e4;
border:1px solid #fbc2c4;
color:#d12f19;
}
html {
background-color: #e0e0e0; }
body {
font-size: 100%;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
color: #333333; }
a {
color: #ed1556;
text-decoration: none; }
a:hover {
color: #ffffff;
background-color: #ed1556; }
#header, #content, #footer {
margin: 0 auto;
background: #eeeeee;
padding: 0 2em;
z-index: 0;
position: relative;
font-size: 1em; }
#header {
background: #ffffff; }
#header h1 {
font-weight: bold;
font-size: 1.5em; }
#header address.watermark {
position: absolute;
font-weight: bold;
right: 3em;
top: 0;
font-size: .75em;
color: #cccccc; }
#header address.watermark a {
color: #cccccc;
font-weight: bold;
font-size: 2em; }
#header address.watermark a:hover {
background: transparent;
color: #aaaaaa; }
#content {
padding-top: 1em;
padding-bottom: 2em; }
#content strong {
font-weight: bold; }
#content em {
font-style: italic; }
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
color: #4e4e4e; }
#content h1 {
font-size: 2em;
font-weight: bold;
margin-bottom: .75em;
padding: .25em 0;
line-height: 1.2;
border-bottom: 1px solid #c0c0c0; }
#content h2 {
font-weight: bold;
font-size: 1.5em;
margin: 1em 0 .2em; }
#content h3 {
font-weight: bold;
font-size: 1.25em;
margin: .25em 0; }
#content h4, #content h5, #content h6 {
font-weight: bold;
margin-top: .5em; }
#content code, #content pre, #content textarea, #content input {
font-family: Monaco, Deja Vu Sans Mono, Inconsolata, Consolas, monospace; }
#content form p {
margin-top: 1em;
position: relative; }
#content form p.checkbox label {
margin-top: 0 !important; }
#content form input.text, #content form textarea {
width: 30em;
padding: .2em .4em;
color: #4e4e4e; }
#content form input.text {
height: 1.4em; }
#content form label {
float: left;
display: block;
margin-top: .5em;
width: 8em;
margin-right: .75em; }
#content form .with_errors label {
background: red;
color: white;
position: relative;
top: -.7em; }
#content form .with_errors.required label {
position: static;
margin-right: .25em;
padding: 0 .2em; }
#content form .with_errors input, #content form .with_errors textarea {
border: 2px solid #f22;
background: #fee;
color: #222222; }
#content form .required label {
float: none;
display: block;
width: auto;
position: relative;
font-weight: bold;
margin-top: 1em;
text-indent: -.65em; }
#content form .required label:before {
content: "* ";
color: #ed1556; }
#content form .required input.text {
width: 25.6em;
font-size: 24px;
font-weight: bold; }
#content form .normal {
margin-top: 2em; }
#content form h2.notifier label {
float: none;
width: auto;
margin-right: 0; }
#content form h2.notifier label .warning {
font-size: .5em;
font-weight: normal;
color: #999999; }
#content form fieldset {
padding-bottom: 1em;
margin-left: 1.35em;
border-bottom: 1px solid #c0c0c0;
margin-bottom: 1em; }
#content form fieldset h3 {
margin-top: 1em;
margin-bottom: 0; }
#content form fieldset p.normal {
margin-top: 1em; }
#content form fieldset p label {
width: 6.7em; }
#content form p.submit {
margin-top: 2em; }
#content form p.submit:after {
display: block;
clear: both;
float: none;
content: ".";
text-indent: -9999em;
text-align: left; }
#content form p.submit.destroy button, #content form p.submit.manual-build button {
float: none;
display: inline; }
#content form p.submit.manual-build button {
margin-right: 0; }
#content #build form, #content #last_build form {
font-size: .75em; }
#content #build form p.submit, #content #last_build form p.submit {
margin: 0;
padding: 0;
position: absolute;
right: .5em;
top: 1.25em; }
#content .blank_slate p, #content .error p {
position: relative;
top: .3em; }
#content .blank_slate h1, #content .error h1 {
border-width: 0;
margin: 0;
padding: 0; }
#content .blank_slate h1 button, #content .error h1 button {
float: none;
border: 0 none;
background: transparent;
display: inline;
color: #ed1556;
padding: 0.25em 0;
margin: 0; }
#content .blank_slate h1 button:hover, #content .error h1 button:hover {
background: #ed1556;
color: #ffffff; }
#content .error dt {
margin-top: 1.4em;
margin-bottom: .3em;
font-size: 1.75em;
font-family: Georgia, Times New Roman, serif; }
#content .error dd {
line-height: 1.4; }
#content .error .backtrace {
margin: 1em 0;
overflow: scroll;
height: 30em;
border: 1px solid #c0c0c0;
line-height: 1.6; }
#content #projects {
margin: 1em 0 2em;
border-top: 1px solid #c0c0c0; }
#content #projects li {
position: relative;
border-bottom: 1px solid #c0c0c0; }
#content #projects li.odd {
background: #e6e6e6; }
#content #projects li.building {
background: transparent url(/spinner.gif) no-repeat scroll right; }
#content #projects li a {
font-size: 2em;
padding: .25em;
line-height: 1.2;
font-weight: bold;
display: block; }
#content #projects li a.success {
color: #337022; }
#content #projects li a.failed {
color: #ff1100; }
#content #projects li .meta {
position: absolute;
right: .6em;
top: 1.5em;
font-size: 0.8em;
color: #999999;
text-align: right; }
#content #projects li.building .meta {
right: 1.6em; }
#content #projects li.success .meta {
color: #337022; }
#content #projects li.failed .meta {
color: #ff1100; }
#content #previous_builds li a {
display: block;
padding: .25em;
margin-bottom: .25em;
border-width: 1px;
border-style: solid; }
#content #previous_builds li a strong {
font-size: 1.3em; }
#content #previous_builds li a .attribution {
font-size: .9em; }
#content #projects li.success a, #content #previous_builds li.success a {
background-color: #bbf8aa;
border-color: #99d688;
color: #337022; }
#content #projects li.success a .attribution, #content #previous_builds li.success a .attribution {
color: #77b466; }
#content #projects li.success a:hover, #content #previous_builds li.success a:hover {
background-color: #ddffcc; }
#content #projects li.failed a, #content #previous_builds li.failed a {
background-color: #ffbbaa;
border-color: #dd9988;
color: #ff1100; }
#content #projects li.failed a .attribution, #content #previous_builds li.failed a .attribution {
color: #bb7766; }
#content #projects li.failed a:hover, #content #previous_builds li.failed a:hover {
background-color: #ffddcc; }
#content #build, #content #last_build {
position: relative; }
#content #build h1, #content #build blockquote, #content #last_build h1, #content #last_build blockquote {
border-width: 0 1px;
border-style: solid; }
#content #build h1, #content #last_build h1 {
border-top-width: 1px; }
#content #build blockquote, #content #last_build blockquote {
bottom-bottom-width: 1px;
line-height: 1.4; }
#content #build.success h1, #content #build.success blockquote, #content #last_build.success h1, #content #last_build.success blockquote {
background-color: #bbf8aa;
border-color: #99d688 #ccffbb #ccffbb #99d688; }
#content #build.success h1, #content #last_build.success h1 {
color: #337022; }
#content #build.success .meta, #content #last_build.success .meta {
color: #77b466; }
#content #build.failed h1, #content #build.failed blockquote, #content #last_build.failed h1, #content #last_build.failed blockquote {
background-color: #ffbbaa;
border-color: #dd9988 #ffccbb #ffccbb #dd9988; }
#content #build.failed h1, #content #last_build.failed h1 {
color: #ff1100; }
#content #build.failed .meta, #content #last_build.failed .meta {
color: #bb7766; }
#content #build h1, #content #last_build h1 {
margin-top: .5em;
margin-bottom: 0;
padding: .25em;
color: #337022; }
#content #build blockquote, #content #last_build blockquote {
padding: .75em;
margin-bottom: 2em; }
#content #build blockquote .meta, #content #last_build blockquote .meta {
margin-top: 1em;
display: block;
font-size: .9em; }
#content #build pre.output, #content #last_build pre.output {
background: #111;
color: #fff;
padding: .5em;
overflow: auto;
max-height: 50em;
font-size: .825em; }
#content #build pre.output .color30, #content #last_build pre.output .color30 {
color: #333; }
#content #build pre.output .color31, #content #last_build pre.output .color31 {
color: #e33; }
#content #build pre.output .color32, #content #last_build pre.output .color32 {
color: #3e3; }
#content #build pre.output .color33, #content #last_build pre.output .color33 {
color: #ee3; }
#content #build pre.output .color34, #content #last_build pre.output .color34 {
color: #33e; }
#content #build pre.output .color35, #content #last_build pre.output .color35 {
color: #e3e; }
#content #build pre.output .color36, #content #last_build pre.output .color36 {
color: #3ee; }
#content #build pre.output .color37, #content #last_build pre.output .color37 {
color: #fff; }
#content #push_path {
display: block;
margin-top: 1em;
margin-left: 2em; }
a.success {
color: #bbf8aa; }
a.success:hover {
background-color: #bbf8aa;
color: white; }
a.failed {
color: #ffbbaa; }
a.failed:hover {
background-color: #ffbbaa;
color: white; }
#footer {
padding: 1.5em 2.5em;
border-top: 1px solid #ccc;
font-size: .8em;
color: #666;
text-align: right; }
#footer strong {
font-weight: bold; }
table {
margin-top: 20px;
border-collapse: collapse;
border: 1px solid #666;
background: #fff;
margin-bottom: 20px;
}
table tr.light {
background: #fff;
}
table tr.dark {
background: #f9f9f9;
}
table tr:hover {
background: #FFFFC0;
}
table td, table th {
padding: 4px;
font-size: 11px;
}
table th {
text-align: center;
color: #337022;
background: #DDFFCC;
font-weight: bold;
border: #99D688 1px solid;
}
table td {
border: #d0d0d0 1px solid;
}
table td.score {
text-align: right;
}
.warning {
background: yellow;
}
.rcov_code td {
border-bottom: 1px solid #ddd ;
padding: 0;
margin: 0;
}
.rcov_code tr {
border: 0px;
padding:0px;
margin: 0px;
}
.rcov_code pre {
border: 0px;
padding: 0px;
margin: 0px;
}
.rcov_run {}
.rcov_not_run {
background-color: #d88;
}
.rcov_run a, .rcov_not_run a {
text-decoration: none;
}
.rcov_run a {
color: #333;
}
.rcov_not_run a {
color: #000;
}
.rcov_overflow {
overflow: auto;
font-size: 50%;
}
.bluff-tooltip {
background: #fff;
border: 1px solid #d1edf5;
padding: 8px 8px 6px;
}
.bluff-tooltip .color {
display: block;
height: 4px;
width: 30px;
margin: 0 0 4px;
overflow: hidden;
}
.bluff-tooltip .data {
font-weight: bold;
}
</style>
<link REL="SHORTCUT ICON" HREF="/favicon.ico">
<script language="javascript" src="js-class.js" type="text/javascript"></script>
<script language="javascript" src="bluff-min.js" type="text/javascript"></script>
<script language="javascript" src="excanvas.js" type="text/javascript"></script>
</head>
<body>
<div id='header'>
<h1><a href="/">metrics</a> | <a href="index.html">mobylette</a></h1>
<address class='watermark'>
built with
<a href='http://metric-fu.rubyforge.org/'>metric-fu</a>
</address>
</div>
<div id='content'>
<h3>Rcov Code Coverage Results</h3>
<p>C0 code coverage information.</p>
<canvas id="graph"></canvas>
<script language="javascript" src="rcov.js?1315161310" type="text/javascript"></script>
<p>Total Coverage: 50.0% </p>
<table>
<tr>
<th>File Path</th>
<th>Percent run</th>
</tr>
<tr>
<td><a href="#lib_mobylette_helmet_rb">lib/mobylette/helmet.rb</a></td>
<td>25</td>
</tr>
<tr>
<td><a href="#lib_mobylette_rb">lib/mobylette.rb</a></td>
<td>43</td>
</tr>
<tr>
<td><a href="#lib_mobylette_controllers_helpers_rb">lib/mobylette/controllers/helpers.rb</a></td>
<td>51</td>
</tr>
<tr>
<td><a href="#lib_mobylette_controllers_respond_to_mobile_requests_rb">lib/mobylette/controllers/respond_to_mobile_requests.rb</a></td>
<td>51</td>
</tr>
<tr>
<td><a href="#lib_mobylette_helmet_faker_rb">lib/mobylette/helmet/faker.rb</a></td>
<td>67</td>
</tr>
<tr>
<td><a href="#lib_mobylette_helmet_helpers_rb">lib/mobylette/helmet/helpers.rb</a></td>
<td>69</td>
</tr>
<tr>
<td><a href="#lib_mobylette_railtie_rb">lib/mobylette/railtie.rb</a></td>
<td>90</td>
</tr>
</table>
<h2 id="lib_mobylette_helmet_rb"> lib/mobylette/helmet.rb</h2>
<div class="rcov_overflow">
<table class="rcov_code">
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=1'><pre>module Mobylette</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=2'><pre> # Mobylette::Helmet provides helper methods to help you when testing your controllers</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=3'><pre> # for a mobile request.</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=4'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=5'><pre> # You must include Mobylette::Helmet into your test case, in the README there is more</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=6'><pre> # documentation about how to make this test wide.</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=7'><pre> module Helmet</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=8'><pre> extend ActiveSupport::Concern</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=9'><pre> autoload "Helpers", "mobylette/helmet/helpers"</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=10'><pre> autoload "Faker" , "mobylette/helmet/faker"</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=11'><pre> # Force the request for the user_agent</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=12'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=13'><pre> # Remember to add it BEFORE the request</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=14'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=15'><pre> # Example:</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=16'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=17'><pre> # it "should render the mobile_device view on mobile request" do</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=18'><pre> # force_mobile_request_agent("Android")</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=19'><pre> # get :index</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=20'><pre> # response.should render_template(:mobile_device)</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=21'><pre> # end</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=22'><pre> def force_mobile_request_agent(user_agent = "Android")</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=23'><pre> request.user_agent = user_agent</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=24'><pre> end</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=25'><pre> # Reset the user_aget to the default ("Rails Testing")</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=26'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=27'><pre> # Remember to add it BEFORE the request</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=28'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=29'><pre> # Example:</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=30'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=31'><pre> # it "should render the normal_view view on mobile request" do</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=32'><pre> # reset_test_request_agent</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=33'><pre> # get :index</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=34'><pre> # response.should render_template(:normal_view)</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=35'><pre> # end</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=36'><pre> def reset_test_request_agent</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=37'><pre> request.user_agent = "Rails Testing"</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=38'><pre> end</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=39'><pre> # set_session_override will set the 'value' to the session override control</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=40'><pre> # value may be:</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=41'><pre> # * :ignore_mobile -> This will disable mobile checking, and the original format will be rendered</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=42'><pre> # * :force_mobile -> This will force to all requests for this session be mobile (except xhr)</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=43'><pre> # * nil -> This will disable session override</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=44'><pre> def set_session_override(value)</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=45'><pre> session[:mobylette_override] = value</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=46'><pre> end</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=47'><pre> end</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/helmet.rb?line=48'><pre>end</pre></a></td>
</tr>
</table>
</div>
<h2 id="lib_mobylette_rb"> lib/mobylette.rb</h2>
<div class="rcov_overflow">
<table class="rcov_code">
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=1'><pre>#</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=2'><pre># Rails automatic mobile request support</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=3'><pre>module Mobylette</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=4'><pre> module Controllers</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=5'><pre> autoload "RespondToMobileRequests", "mobylette/controllers/respond_to_mobile_requests"</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=6'><pre> autoload "Helpers" , "mobylette/controllers/helpers"</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=7'><pre> end</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=8'><pre> # TestHelpers</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=9'><pre> autoload "Helmet" , "mobylette/helmet"</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=10'><pre> require 'mobylette/railtie'</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=11'><pre>end</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=12'><pre># Creating the :mobile format alias</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=13'><pre>require 'action_controller'</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette.rb?line=14'><pre>Mime::Type.register_alias "text/html", :mobile</pre></a></td>
</tr>
</table>
</div>
<h2 id="lib_mobylette_controllers_helpers_rb"> lib/mobylette/controllers/helpers.rb</h2>
<div class="rcov_overflow">
<table class="rcov_code">
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=1'><pre>module Mobylette</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=2'><pre> module Controllers</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=3'><pre> # Mobylette::Controllers::Helpers include few methods to</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=4'><pre> # include different css/js files for the mobile and for</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=5'><pre> # the normal version of your layout</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=6'><pre> #</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=7'><pre> # Personal notes:</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=8'><pre> # * I'm rethinking and I guess that, since you</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=9'><pre> # may have (and probably will) a different layout file for the</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=10'><pre> # "normal" and mobile version, you probably wont use this at all.</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=11'><pre> # * Also I'm not sure it's the case of using 'is_mobile_request?'</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=12'><pre> # or 'is_mobile_view?' check here.'</pre></a></td>
</tr>
<tr>
<td class="rcov_not_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=13'><pre> module Helpers</pre></a></td>
</tr>
<tr>
<td class="rcov_run"><a href='https://github.com/tscolari/mobylette/tree/v1.0.0/lib/mobylette/controllers/helpers.rb?line=14'><pre> extend ActiveSupport::Concern</pre></a></td>
</tr>