|
6 | 6 | it 'Checks the trailing white linter - FINDS AN ERROR' do
|
7 | 7 | linter.curr_text = ' background-color: whitesmoke '
|
8 | 8 | linter.curr_line = 4
|
9 |
| - expect(linter.trailing_white_linter.is_a?(File)).to eql(true) |
| 9 | + expect(linter.send(:trailing_white_linter).is_a?(File)).to eql(true) |
10 | 10 | end
|
11 | 11 |
|
12 | 12 | it 'Checks the trailing white linter - NO ERROR' do
|
13 | 13 | linter.curr_text = ' margin: 0px;'
|
14 | 14 | linter.curr_line = 4
|
15 |
| - expect(linter.trailing_white_linter).to eql(nil) |
| 15 | + expect(linter.send(:trailing_white_linter)).to eql(nil) |
16 | 16 | end
|
17 | 17 |
|
18 | 18 | it 'Checks the empty line linter outside block - FINDS AN ERROR' do
|
19 | 19 | linter.curr_text = ' '
|
20 | 20 | linter.curr_line = 4
|
21 |
| - linter.unset_inside_block |
| 21 | + linter.send(:unset_inside_block) |
22 | 22 | linter.empty_count = 2
|
23 |
| - expect(linter.empty_line_linter.is_a?(File)).to eql(true) |
| 23 | + expect(linter.send(:empty_line_linter).is_a?(File)).to eql(true) |
24 | 24 | end
|
25 | 25 |
|
26 | 26 | it 'Checks the empty line linter outside block - NO ERROR' do
|
27 | 27 | linter.curr_text = ' '
|
28 | 28 | linter.curr_line = 4
|
29 |
| - linter.unset_inside_block |
| 29 | + linter.send(:unset_inside_block) |
30 | 30 | linter.empty_count = 1
|
31 |
| - expect(linter.empty_line_linter).to eql(nil) |
| 31 | + expect(linter.send(:empty_line_linter)).to eql(nil) |
32 | 32 | end
|
33 | 33 |
|
34 | 34 | it 'Checks the empty line linter inside block - FINDS AN ERROR' do
|
35 | 35 | linter.curr_text = ' '
|
36 | 36 | linter.curr_line = 4
|
37 |
| - linter.set_inside_block |
| 37 | + linter.send(:set_inside_block) |
38 | 38 | linter.empty_count = 1
|
39 |
| - expect(linter.empty_line_linter.is_a?(File)).to eql(true) |
| 39 | + expect(linter.send(:empty_line_linter).is_a?(File)).to eql(true) |
40 | 40 | end
|
41 | 41 |
|
42 | 42 | it 'Checks the empty line linter inside block - NO ERROR' do
|
43 | 43 | linter.curr_text = ' ;'
|
44 | 44 | linter.curr_line = 4
|
45 |
| - linter.set_inside_block |
| 45 | + linter.send(:set_inside_block) |
46 | 46 | linter.empty_count = 0
|
47 |
| - expect(linter.empty_line_linter).to eql(nil) |
| 47 | + expect(linter.send(:empty_line_linter)).to eql(nil) |
48 | 48 | end
|
49 | 49 |
|
50 | 50 | it 'Checks the colon space linter - FINDS ERROR' do
|
51 | 51 | linter.curr_text = ' position:fixed;'
|
52 | 52 | linter.curr_line = 4
|
53 |
| - expect(linter.property_space_linter.is_a?(File)).to eql(true) |
| 53 | + expect(linter.send(:property_space_linter).is_a?(File)).to eql(true) |
54 | 54 | end
|
55 | 55 |
|
56 | 56 | it 'Checks the colon space linter - NO ERROR' do
|
57 | 57 | linter.curr_text = 'background-color: white;'
|
58 | 58 | linter.curr_line = 4
|
59 |
| - expect(linter.property_space_linter).to eql(nil) |
| 59 | + expect(linter.send(:property_space_linter)).to eql(nil) |
60 | 60 | end
|
61 | 61 |
|
62 | 62 | it 'Checks the color linter - FINDS ERROR' do
|
63 | 63 | linter.curr_text = 'color: #3344A8;'
|
64 | 64 | linter.curr_line = 4
|
65 |
| - expect(linter.colors_lowercase_linter.is_a?(File)).to eql(true) |
| 65 | + expect(linter.send(:colors_lowercase_linter).is_a?(File)).to eql(true) |
66 | 66 | end
|
67 | 67 |
|
68 | 68 | it 'Checks the color linter - NO ERROR' do
|
69 | 69 | linter.curr_text = 'color: #3344a8;'
|
70 | 70 | linter.curr_line = 4
|
71 |
| - expect(linter.colors_lowercase_linter).to eql(nil) |
| 71 | + expect(linter.send(:colors_lowercase_linter)).to eql(nil) |
72 | 72 | end
|
73 | 73 |
|
74 | 74 | it 'Checks the semicolon linter - FINDS ERROR' do
|
75 | 75 | linter.curr_text = 'background-color: whitesmoke '
|
76 | 76 | linter.curr_line = 4
|
77 |
| - expect(linter.no_semicolon_linter.is_a?(File)).to eql(true) |
| 77 | + expect(linter.send(:no_semicolon_linter).is_a?(File)).to eql(true) |
78 | 78 | end
|
79 | 79 |
|
80 | 80 | it 'Checks the semicolon linter - NO ERROR' do
|
81 | 81 | linter.curr_text = 'max-width: 10vmin;'
|
82 | 82 | linter.curr_line = 4
|
83 |
| - expect(linter.no_semicolon_linter).to eql(nil) |
| 83 | + expect(linter.send(:no_semicolon_linter)).to eql(nil) |
84 | 84 | end
|
85 | 85 |
|
86 | 86 | it 'Checks the comment start linter - FINDS ERROR' do
|
87 | 87 | linter.curr_text = '/*================= NAVBAR SECTION =================*/'
|
88 | 88 | linter.curr_line = 4
|
89 |
| - expect(linter.comment_start_linter.is_a?(File)).to eql(true) |
| 89 | + expect(linter.send(:comment_start_linter).is_a?(File)).to eql(true) |
90 | 90 | end
|
91 | 91 |
|
92 | 92 | it 'Checks the comment start linter - NO ERROR' do
|
93 | 93 | linter.curr_text = '/* ================= CONTENT SECTION ================ */'
|
94 | 94 | linter.curr_line = 4
|
95 |
| - expect(linter.comment_start_linter).to eql(nil) |
| 95 | + expect(linter.send(:comment_start_linter)).to eql(nil) |
96 | 96 | end
|
97 | 97 |
|
98 | 98 | it 'Checks the comment end linter - FINDS ERROR' do
|
99 | 99 | linter.curr_text = '/*================= NAVBAR SECTION =================*/'
|
100 | 100 | linter.curr_line = 4
|
101 |
| - expect(linter.comment_end_linter.is_a?(File)).to eql(true) |
| 101 | + expect(linter.send(:comment_end_linter).is_a?(File)).to eql(true) |
102 | 102 | end
|
103 | 103 |
|
104 | 104 | it 'Checks the comment end linter - NO ERROR' do
|
105 | 105 | linter.curr_text = '/* ================= CONTENT SECTION ================ */'
|
106 | 106 | linter.curr_line = 4
|
107 |
| - expect(linter.comment_end_linter).to eql(nil) |
| 107 | + expect(linter.send(:comment_end_linter)).to eql(nil) |
108 | 108 | end
|
109 | 109 |
|
110 | 110 | it 'Checks the declaration bracket linter - FINDS ERROR' do
|
111 | 111 | linter.curr_text = '#content{'
|
112 | 112 | linter.curr_line = 4
|
113 |
| - expect(linter.declaration_space_linter.is_a?(File)).to eql(true) |
| 113 | + expect(linter.send(:declaration_space_linter).is_a?(File)).to eql(true) |
114 | 114 | end
|
115 | 115 |
|
116 | 116 | it 'Checks the declaration bracket linter - NO ERROR' do
|
117 | 117 | linter.curr_text = 'input#search {'
|
118 | 118 | linter.curr_line = 4
|
119 |
| - expect(linter.declaration_space_linter).to eql(nil) |
| 119 | + expect(linter.send(:declaration_space_linter)).to eql(nil) |
120 | 120 | end
|
121 | 121 |
|
122 | 122 | it 'Checks closing block space linter - FINDS ERROR' do
|
123 | 123 | linter.curr_text = ' }'
|
124 | 124 | linter.curr_line = 4
|
125 |
| - expect(linter.block_end_space_linter.is_a?(File)).to eql(true) |
| 125 | + expect(linter.send(:block_end_space_linter).is_a?(File)).to eql(true) |
126 | 126 | end
|
127 | 127 |
|
128 | 128 | it 'Checks closing block space linter - NO ERROR' do
|
129 | 129 | linter.curr_text = '}'
|
130 | 130 | linter.curr_line = 4
|
131 |
| - expect(linter.block_end_space_linter).to eql(nil) |
| 131 | + expect(linter.send(:block_end_space_linter)).to eql(nil) |
132 | 132 | end
|
133 | 133 |
|
134 | 134 | it 'Checks closing block space linter - NO ERROR' do
|
135 | 135 | linter.curr_text = '} '
|
136 | 136 | linter.curr_line = 4
|
137 |
| - expect(linter.block_end_space_linter).to eql(nil) |
| 137 | + expect(linter.send(:block_end_space_linter)).to eql(nil) |
138 | 138 | end
|
139 | 139 |
|
140 | 140 | it 'Checks the indentation linter - FINDS ERROR' do
|
141 | 141 | linter.curr_text = ' display: block;'
|
142 | 142 | linter.curr_line = 4
|
143 |
| - linter.set_inside_block |
144 |
| - expect(linter.indentation_linter.is_a?(File)).to eql(true) |
| 143 | + linter.send(:set_inside_block) |
| 144 | + expect(linter.send(:indentation_linter).is_a?(File)).to eql(true) |
145 | 145 | end
|
146 | 146 |
|
147 | 147 | it 'Checks the indentation linter - FINDS ERROR' do
|
148 | 148 | linter.curr_text = ' display: block; '
|
149 | 149 | linter.curr_line = 4
|
150 |
| - linter.set_inside_block |
151 |
| - expect(linter.indentation_linter.is_a?(File)).to eql(true) |
| 150 | + linter.send(:set_inside_block) |
| 151 | + expect(linter.send(:indentation_linter).is_a?(File)).to eql(true) |
152 | 152 | end
|
153 | 153 |
|
154 | 154 | it 'Checks the indentation linter - FINDS ERROR' do
|
155 | 155 | linter.curr_text = ' display: block;'
|
156 | 156 | linter.curr_line = 4
|
157 |
| - linter.set_inside_block |
158 |
| - expect(linter.indentation_linter.is_a?(File)).to eql(true) |
| 157 | + linter.send(:set_inside_block) |
| 158 | + expect(linter.send(:indentation_linter).is_a?(File)).to eql(true) |
159 | 159 | end
|
160 | 160 |
|
161 | 161 | it 'Checks the indentation linter - NO ERROR' do
|
162 | 162 | linter.curr_text = ' display: block;'
|
163 | 163 | linter.curr_line = 4
|
164 |
| - linter.set_inside_block |
165 |
| - expect(linter.indentation_linter).to eql(nil) |
| 164 | + linter.send(:set_inside_block) |
| 165 | + expect(linter.send(:indentation_linter)).to eql(nil) |
166 | 166 | end
|
167 | 167 |
|
168 | 168 | it 'Checks the line type method TYPE 1: Comment line' do
|
|
0 commit comments