vedeu 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/examples/views/_interfaces.rb +127 -0
  3. data/examples/views/empty_template.rb +10 -0
  4. data/examples/views/expected/vedeu_full_screen.html +140 -0
  5. data/examples/views/expected/vedeu_full_screen.json +96050 -0
  6. data/examples/views/expected/vedeu_full_screen.out +1 -0
  7. data/examples/views/expected/vedeu_full_screen.txt +50 -0
  8. data/examples/views/expected/vedeu_line.html +140 -0
  9. data/examples/views/expected/vedeu_line.json +96050 -0
  10. data/examples/views/expected/vedeu_line.out +1 -0
  11. data/examples/views/expected/vedeu_line.txt +58 -0
  12. data/examples/views/expected/vedeu_lines.html +140 -0
  13. data/examples/views/expected/vedeu_lines.json +96050 -0
  14. data/examples/views/expected/{lines.out → vedeu_lines.out} +1 -1
  15. data/examples/views/expected/vedeu_lines_alignment.html +80 -0
  16. data/examples/views/expected/vedeu_lines_alignment.json +46370 -0
  17. data/examples/views/expected/vedeu_lines_alignment.out +1 -0
  18. data/examples/views/full_screen.rb +10 -0
  19. data/examples/views/line.rb +11 -106
  20. data/examples/views/lines.rb +8 -127
  21. data/examples/views/lines_alignment.rb +17 -125
  22. data/examples/views/runner.sh +65 -19
  23. data/lib/vedeu/borders/border.rb +6 -6
  24. data/lib/vedeu/borders/refresh.rb +4 -6
  25. data/lib/vedeu/buffers/buffer.rb +1 -1
  26. data/lib/vedeu/buffers/terminal.rb +4 -4
  27. data/lib/vedeu/buffers/view.rb +2 -2
  28. data/lib/vedeu/cells/all.rb +2 -2
  29. data/lib/vedeu/cells/border.rb +5 -0
  30. data/lib/vedeu/cells/borders/all.rb +2 -8
  31. data/lib/vedeu/cells/borders/edges/all.rb +6 -0
  32. data/lib/vedeu/cells/borders/{bottom_horizontal.rb → edges/bottom_horizontal.rb} +0 -0
  33. data/lib/vedeu/cells/borders/{left_vertical.rb → edges/left_vertical.rb} +0 -0
  34. data/lib/vedeu/cells/borders/{right_vertical.rb → edges/right_vertical.rb} +0 -0
  35. data/lib/vedeu/cells/borders/{top_horizontal.rb → edges/top_horizontal.rb} +0 -0
  36. data/lib/vedeu/cells/borders/horizontal.rb +5 -0
  37. data/lib/vedeu/cells/borders/vertical.rb +5 -0
  38. data/lib/vedeu/cells/borders/vertices/all.rb +6 -0
  39. data/lib/vedeu/cells/borders/{bottom_left.rb → vertices/bottom_left.rb} +5 -0
  40. data/lib/vedeu/cells/borders/{bottom_right.rb → vertices/bottom_right.rb} +5 -0
  41. data/lib/vedeu/cells/borders/{top_left.rb → vertices/top_left.rb} +5 -0
  42. data/lib/vedeu/cells/borders/{top_right.rb → vertices/top_right.rb} +5 -0
  43. data/lib/vedeu/cells/char.rb +16 -0
  44. data/lib/vedeu/cells/clear.rb +5 -0
  45. data/lib/vedeu/cells/cursor.rb +70 -0
  46. data/lib/vedeu/cells/empty.rb +24 -14
  47. data/lib/vedeu/cells/escape.rb +8 -7
  48. data/lib/vedeu/cells/support/all.rb +3 -0
  49. data/lib/vedeu/cells/support/html.rb +98 -0
  50. data/lib/vedeu/colours/background.rb +21 -1
  51. data/lib/vedeu/colours/colour.rb +10 -2
  52. data/lib/vedeu/colours/foreground.rb +21 -1
  53. data/lib/vedeu/colours/translator.rb +17 -24
  54. data/lib/vedeu/colours/validator.rb +9 -9
  55. data/lib/vedeu/configuration/api.rb +1 -1
  56. data/lib/vedeu/cursors/cursor.rb +5 -5
  57. data/lib/vedeu/dsl/elements.rb +22 -79
  58. data/lib/vedeu/dsl/string/text.rb +3 -3
  59. data/lib/vedeu/editor/cropper.rb +2 -2
  60. data/lib/vedeu/editor/cursor.rb +1 -1
  61. data/lib/vedeu/editor/document.rb +1 -1
  62. data/lib/vedeu/geometries/area/dimension.rb +1 -1
  63. data/lib/vedeu/geometries/position.rb +5 -2
  64. data/lib/vedeu/interfaces/clear.rb +5 -5
  65. data/lib/vedeu/models/row.rb +4 -3
  66. data/lib/vedeu/output/compressor.rb +7 -7
  67. data/lib/vedeu/output/output.rb +8 -13
  68. data/lib/vedeu/output/viewport.rb +1 -1
  69. data/lib/vedeu/presentation/background.rb +2 -2
  70. data/lib/vedeu/presentation/colour.rb +0 -4
  71. data/lib/vedeu/presentation/foreground.rb +2 -2
  72. data/lib/vedeu/presentation/style.rb +1 -1
  73. data/lib/vedeu/presentation/styles.rb +0 -3
  74. data/lib/vedeu/renderers/file.rb +10 -68
  75. data/lib/vedeu/renderers/html.rb +28 -96
  76. data/lib/vedeu/renderers/json.rb +15 -31
  77. data/lib/vedeu/renderers/options.rb +160 -14
  78. data/lib/vedeu/renderers/templates/html_renderer.vedeu +1 -0
  79. data/lib/vedeu/renderers/terminal.rb +16 -17
  80. data/lib/vedeu/renderers/text.rb +32 -41
  81. data/lib/vedeu/version.rb +1 -1
  82. data/lib/vedeu/views/all.rb +0 -2
  83. data/lib/vedeu/views/chars.rb +6 -3
  84. data/lib/vedeu/views/stream.rb +3 -2
  85. data/test/lib/vedeu/borders/caption_test.rb +17 -17
  86. data/test/lib/vedeu/borders/title_test.rb +12 -12
  87. data/test/lib/vedeu/cells/border_test.rb +6 -0
  88. data/test/lib/vedeu/cells/borders/{bottom_horizontal_test.rb → edges/bottom_horizontal_test.rb} +0 -0
  89. data/test/lib/vedeu/cells/borders/{left_vertical_test.rb → edges/left_vertical_test.rb} +0 -0
  90. data/test/lib/vedeu/cells/borders/{right_vertical_test.rb → edges/right_vertical_test.rb} +0 -0
  91. data/test/lib/vedeu/cells/borders/{top_horizontal_test.rb → edges/top_horizontal_test.rb} +0 -0
  92. data/test/lib/vedeu/cells/borders/horizontal_test.rb +6 -0
  93. data/test/lib/vedeu/cells/borders/vertical_test.rb +6 -0
  94. data/test/lib/vedeu/cells/borders/{bottom_left_test.rb → vertices/bottom_left_test.rb} +6 -0
  95. data/test/lib/vedeu/cells/borders/{bottom_right_test.rb → vertices/bottom_right_test.rb} +6 -0
  96. data/test/lib/vedeu/cells/borders/{top_left_test.rb → vertices/top_left_test.rb} +6 -0
  97. data/test/lib/vedeu/cells/borders/{top_right_test.rb → vertices/top_right_test.rb} +6 -0
  98. data/test/lib/vedeu/cells/char_test.rb +18 -0
  99. data/test/lib/vedeu/cells/clear_test.rb +6 -0
  100. data/test/lib/vedeu/cells/cursor_test.rb +113 -0
  101. data/test/lib/vedeu/cells/empty_test.rb +100 -7
  102. data/test/lib/vedeu/cells/escape_test.rb +29 -13
  103. data/test/lib/vedeu/cells/support/html_test.rb +100 -0
  104. data/test/lib/vedeu/colours/background_test.rb +35 -3
  105. data/test/lib/vedeu/colours/colour_test.rb +66 -0
  106. data/test/lib/vedeu/colours/foreground_test.rb +35 -3
  107. data/test/lib/vedeu/colours/translator_test.rb +0 -34
  108. data/test/lib/vedeu/colours/validator_test.rb +84 -6
  109. data/test/lib/vedeu/cursors/cursor_test.rb +4 -4
  110. data/test/lib/vedeu/cursors/refresh_test.rb +4 -1
  111. data/test/lib/vedeu/dsl/string/text_test.rb +36 -36
  112. data/test/lib/vedeu/editor/cropper_test.rb +15 -15
  113. data/test/lib/vedeu/geometries/position_test.rb +14 -1
  114. data/test/lib/vedeu/models/page_test.rb +10 -10
  115. data/test/lib/vedeu/models/row_test.rb +7 -7
  116. data/test/lib/vedeu/output/compressor_test.rb +63 -50
  117. data/test/lib/vedeu/renderers/file_test.rb +64 -35
  118. data/test/lib/vedeu/renderers/html_test.rb +15 -12
  119. data/test/lib/vedeu/renderers/json_test.rb +79 -56
  120. data/test/lib/vedeu/renderers/options_test.rb +74 -26
  121. data/test/lib/vedeu/renderers/terminal_test.rb +34 -4
  122. data/test/lib/vedeu/renderers/text_test.rb +35 -3
  123. data/test/lib/vedeu/views/chars_test.rb +6 -0
  124. metadata +50 -41
  125. data/examples/views/expected/line.out +0 -1
  126. data/examples/views/expected/lines_alignment.out +0 -1
  127. data/lib/vedeu/cells/html.rb +0 -21
  128. data/lib/vedeu/cells/json.rb +0 -21
  129. data/lib/vedeu/views/char.rb +0 -180
  130. data/lib/vedeu/views/html_char.rb +0 -133
  131. data/test/lib/vedeu/cells/html_test.rb +0 -15
  132. data/test/lib/vedeu/cells/json_test.rb +0 -15
  133. data/test/lib/vedeu/views/char_test.rb +0 -283
  134. data/test/lib/vedeu/views/html_char_test.rb +0 -125
@@ -64,7 +64,7 @@ module Vedeu
64
64
  end
65
65
 
66
66
  context 'when the colour is a CSS value (8-bit / 256 colours)' do
67
- before { Vedeu.config.stubs(:colour_mode).returns(8) }
67
+ before { Vedeu.config.stubs(:colour_mode).returns(256) }
68
68
 
69
69
  {
70
70
  '#0000d7' => "\e[48;5;20m",
@@ -92,6 +92,38 @@ module Vedeu
92
92
  end
93
93
  end
94
94
 
95
+ describe '#to_h' do
96
+ subject { instance.to_h }
97
+
98
+ it { subject.must_be_instance_of(Hash) }
99
+
100
+ context 'when the colour is empty' do
101
+ let(:colour) {}
102
+ let(:expected) {
103
+ {
104
+ background: ''
105
+ }
106
+ }
107
+
108
+ it { subject.must_equal(expected) }
109
+ end
110
+
111
+ context 'when the colour is not empty' do
112
+ let(:colour) { '#af00d7' }
113
+ let(:expected) {
114
+ {
115
+ background: '#af00d7'
116
+ }
117
+ }
118
+
119
+ it { subject.must_equal(expected) }
120
+ end
121
+ end
122
+
123
+ describe '#to_hash' do
124
+ it { instance.must_respond_to(:to_hash) }
125
+ end
126
+
95
127
  describe '#to_html' do
96
128
  subject { instance.to_html }
97
129
 
@@ -116,8 +148,8 @@ module Vedeu
116
148
  context 'when the colour is a CSS value' do
117
149
  let(:colour) { '#afd700' }
118
150
 
119
- it 'returns the colour as a CSS value' do
120
- subject.must_equal('#afd700')
151
+ it 'returns the colour as a CSS property' do
152
+ subject.must_equal('background-color:#afd700;')
121
153
  end
122
154
  end
123
155
  end
@@ -284,6 +284,72 @@ module Vedeu
284
284
  it { subject.must_be_instance_of(Vedeu::Colours::Foreground) }
285
285
  end
286
286
 
287
+ describe '#to_h' do
288
+ subject { instance.to_h }
289
+
290
+ it { subject.must_be_instance_of(Hash) }
291
+
292
+ context 'with both background and foreground' do
293
+ let(:background) { '#000000' }
294
+ let(:foreground) { '#ff0000' }
295
+ let(:expected) {
296
+ {
297
+ colour: {
298
+ background: '#000000',
299
+ foreground: '#ff0000',
300
+ }
301
+ }
302
+ }
303
+
304
+ it { subject.must_equal(expected) }
305
+ end
306
+
307
+ context 'when the foreground is missing' do
308
+ let(:background) { '#000000' }
309
+ let(:expected) {
310
+ {
311
+ colour: {
312
+ background: '#000000',
313
+ foreground: '',
314
+ }
315
+ }
316
+ }
317
+
318
+ it { subject.must_equal(expected) }
319
+ end
320
+
321
+ context 'when the background is missing' do
322
+ let(:foreground) { '#ff0000' }
323
+ let(:expected) {
324
+ {
325
+ colour: {
326
+ background: '',
327
+ foreground: '#ff0000',
328
+ }
329
+ }
330
+ }
331
+
332
+ it { subject.must_equal(expected) }
333
+ end
334
+
335
+ context 'when both are missing' do
336
+ let(:expected) {
337
+ {
338
+ colour: {
339
+ background: '',
340
+ foreground: '',
341
+ }
342
+ }
343
+ }
344
+
345
+ it { subject.must_equal(expected) }
346
+ end
347
+ end
348
+
349
+ describe '#to_hash' do
350
+ it { instance.must_respond_to(:to_hash) }
351
+ end
352
+
287
353
  describe '#to_s' do
288
354
  subject { instance.to_s }
289
355
 
@@ -48,7 +48,7 @@ module Vedeu
48
48
  end
49
49
 
50
50
  context 'when the colour is a CSS value (8-bit / 256 colours)' do
51
- before { Configuration.stubs(:colour_mode).returns(8) }
51
+ before { Configuration.stubs(:colour_mode).returns(256) }
52
52
 
53
53
  {
54
54
  '#afd700' => "\e[38;5;148m",
@@ -92,6 +92,38 @@ module Vedeu
92
92
  end
93
93
  end
94
94
 
95
+ describe '#to_h' do
96
+ subject { instance.to_h }
97
+
98
+ it { subject.must_be_instance_of(Hash) }
99
+
100
+ context 'when the colour is empty' do
101
+ let(:colour) {}
102
+ let(:expected) {
103
+ {
104
+ foreground: ''
105
+ }
106
+ }
107
+
108
+ it { subject.must_equal(expected) }
109
+ end
110
+
111
+ context 'when the colour is not empty' do
112
+ let(:colour) { '#afd700' }
113
+ let(:expected) {
114
+ {
115
+ foreground: '#afd700'
116
+ }
117
+ }
118
+
119
+ it { subject.must_equal(expected) }
120
+ end
121
+ end
122
+
123
+ describe '#to_hash' do
124
+ it { instance.must_respond_to(:to_hash) }
125
+ end
126
+
95
127
  describe '#to_html' do
96
128
  subject { instance.to_html }
97
129
 
@@ -116,8 +148,8 @@ module Vedeu
116
148
  context 'when the colour is a CSS value' do
117
149
  let(:colour) { '#afd700' }
118
150
 
119
- it 'returns the colour as a CSS value' do
120
- subject.must_equal('#afd700')
151
+ it 'returns the colour as a CSS property' do
152
+ subject.must_equal('color:#afd700;')
121
153
  end
122
154
  end
123
155
  end
@@ -141,40 +141,6 @@ module Vedeu
141
141
  end
142
142
  end
143
143
 
144
- describe '#to_html' do
145
- subject { instance.to_html }
146
-
147
- context 'when no colour is given' do
148
- let(:colour) {}
149
-
150
- it { subject.must_equal('') }
151
- end
152
-
153
- context 'when the colour is a terminal named colour; e.g. :red' do
154
- let(:colour) { :red }
155
-
156
- it { subject.must_equal('') }
157
- end
158
-
159
- context 'when the colour is a terminal numbered colour; e.g. 122' do
160
- let(:colour) { 122 }
161
-
162
- it { subject.must_equal('') }
163
- end
164
-
165
- context 'when the colour is a HTML/CSS colour (RGB specified)' do
166
- let(:colour) { '#ff0000' }
167
-
168
- it { subject.must_equal('#ff0000') }
169
- end
170
-
171
- context 'when the colour is not supported' do
172
- let(:colour) { [:not_supported] }
173
-
174
- it { subject.must_equal('') }
175
- end
176
- end
177
-
178
144
  end # Translator
179
145
 
180
146
  end # Colours
@@ -17,15 +17,63 @@ module Vedeu
17
17
  it { instance.instance_variable_get('@value').must_equal(_value) }
18
18
  end
19
19
 
20
- describe '.valid?' do
21
- subject { described.valid?(_value) }
20
+ describe '#named?' do
21
+ subject { instance.named? }
22
22
 
23
- context 'when the value is a HTML/CSS formatted hexidecimal string' do
23
+ context 'when the value is a valid name' do
24
+ let(:_value) { :blue }
25
+
26
+ it { subject.must_equal(true) }
27
+ end
28
+
29
+ context 'when the value is an invalid name' do
30
+ let(:_value) { :invalid }
31
+
32
+ it { subject.must_equal(false) }
33
+ end
34
+ end
35
+
36
+ describe '#numbered?' do
37
+ subject { instance.numbered? }
38
+
39
+ context 'when the value is a valid number' do
40
+ let(:_value) { 136 }
41
+
42
+ it { subject.must_equal(true) }
43
+ end
44
+
45
+ context 'when the value is an invalid number' do
46
+ let(:_value) { -1 }
47
+
48
+ it { subject.must_equal(false) }
49
+ end
50
+
51
+ context 'when the value is an invalid number' do
52
+ let(:_value) { 256 }
53
+
54
+ it { subject.must_equal(false) }
55
+ end
56
+ end
57
+
58
+ describe '#rgb?' do
59
+ subject { instance.rgb? }
60
+
61
+ context 'when the value is a HTML/CSS formatted hexadecimal string' do
24
62
  let(:_value) { '#654321' }
25
63
 
26
64
  it { subject.must_equal(true) }
27
65
  end
28
66
 
67
+ context 'but the value is an invalid HTML/CSS formatted hexadecimal' do
68
+ let(:_value) { '#123' }
69
+
70
+ it { subject.must_equal(false) }
71
+ end
72
+ end
73
+
74
+ describe '.valid?' do
75
+ subject { described.valid?(_value) }
76
+
29
77
  context 'when the value is a Vedeu::Colours::Background' do
30
78
  let(:_value) { Vedeu::Colours::Background.new('#654321') }
31
79
 
@@ -44,10 +92,40 @@ module Vedeu
44
92
  it { subject.must_equal(true) }
45
93
  end
46
94
 
47
- context 'when the value is invalid' do
48
- let(:_value) { '#123' }
95
+ context 'when the value is a HTML/CSS formatted hexidecimal string' do
96
+ let(:_value) { '#654321' }
49
97
 
50
- it { subject.must_equal(false) }
98
+ it { subject.must_equal(true) }
99
+
100
+ context 'but the value is invalid' do
101
+ let(:_value) { '#123' }
102
+
103
+ it { subject.must_equal(false) }
104
+ end
105
+ end
106
+
107
+ context 'when the value is a named symbol' do
108
+ let(:_value) { :red }
109
+
110
+ it { subject.must_equal(true) }
111
+
112
+ context 'but the value is invalid' do
113
+ let(:_value) { :invalid }
114
+
115
+ it { subject.must_equal(false) }
116
+ end
117
+ end
118
+
119
+ context 'when the value is a number' do
120
+ let(:_value) { 38 }
121
+
122
+ it { subject.must_equal(true) }
123
+
124
+ context 'but the value is invalid' do
125
+ let(:_value) { 280 }
126
+
127
+ it { subject.must_equal(false) }
128
+ end
51
129
  end
52
130
  end
53
131
 
@@ -131,10 +131,10 @@ module Vedeu
131
131
 
132
132
  describe '#hide' do
133
133
  let(:visible) { true }
134
- let(:escape) { Vedeu::Cells::Escape.new(value: Vedeu.esc.hide_cursor) }
134
+ let(:escape) { Vedeu::Cells::Cursor.new(value: Vedeu.esc.hide_cursor) }
135
135
 
136
136
  before do
137
- Vedeu::Cells::Escape.stubs(:new).returns(escape)
137
+ Vedeu::Cells::Cursor.stubs(:new).returns(escape)
138
138
  end
139
139
 
140
140
  subject { instance.hide }
@@ -270,12 +270,12 @@ module Vedeu
270
270
  describe '#show' do
271
271
  let(:visible) { false }
272
272
  let(:escape) {
273
- Vedeu::Cells::Escape.
273
+ Vedeu::Cells::Cursor.
274
274
  new(value: Vedeu.esc.show_cursor)
275
275
  }
276
276
 
277
277
  before do
278
- Vedeu::Cells::Escape.stubs(:new).returns(escape)
278
+ Vedeu::Cells::Cursor.stubs(:new).returns(escape)
279
279
  end
280
280
 
281
281
  subject { instance.show }
@@ -33,8 +33,11 @@ module Vedeu
33
33
 
34
34
  describe '.by_name' do
35
35
  before do
36
+ Vedeu.stubs(:trigger).with(:_hide_cursor_)
37
+ Vedeu.stubs(:trigger).with(:_show_cursor_)
38
+ Vedeu.stubs(:trigger).with(:_refresh_view_content_, _name)
36
39
  Vedeu.stubs(:log)
37
- Vedeu.geometry 'refresh_cursor' do
40
+ Vedeu.geometry(_name) do
38
41
  x 1
39
42
  xn 3
40
43
  y 1
@@ -86,8 +86,8 @@ module Vedeu
86
86
  context 'when a width option is set' do
87
87
  let(:expected) {
88
88
  [
89
- Vedeu::Views::Char.new(name: _name, value: 'a'),
90
- Vedeu::Views::Char.new(name: _name, value: 'b'),
89
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
90
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
91
91
  ]
92
92
  }
93
93
 
@@ -100,10 +100,10 @@ module Vedeu
100
100
  context 'when a name option is set' do
101
101
  let(:expected) {
102
102
  [
103
- Vedeu::Views::Char.new(name: _name, value: 'a'),
104
- Vedeu::Views::Char.new(name: _name, value: 'b'),
105
- Vedeu::Views::Char.new(name: _name, value: 'c'),
106
- Vedeu::Views::Char.new(name: _name, value: 'd'),
103
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
104
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
105
+ Vedeu::Cells::Char.new(name: _name, value: 'c'),
106
+ Vedeu::Cells::Char.new(name: _name, value: 'd'),
107
107
  ]
108
108
  }
109
109
 
@@ -114,11 +114,11 @@ module Vedeu
114
114
  let(:_name) {}
115
115
  let(:expected) {
116
116
  [
117
- Vedeu::Views::Char.new(name: _name, value: 'a'),
118
- Vedeu::Views::Char.new(name: _name, value: 'b'),
119
- Vedeu::Views::Char.new(name: _name, value: 'c'),
120
- Vedeu::Views::Char.new(name: _name, value: 'd'),
121
- Vedeu::Views::Char.new(name: _name, value: 'e'),
117
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
118
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
119
+ Vedeu::Cells::Char.new(name: _name, value: 'c'),
120
+ Vedeu::Cells::Char.new(name: _name, value: 'd'),
121
+ Vedeu::Cells::Char.new(name: _name, value: 'e'),
122
122
  ]
123
123
  }
124
124
 
@@ -130,11 +130,11 @@ module Vedeu
130
130
  context 'when the truncate option is not set' do
131
131
  let(:expected) {
132
132
  [
133
- Vedeu::Views::Char.new(name: _name, value: 'a'),
134
- Vedeu::Views::Char.new(name: _name, value: 'b'),
135
- Vedeu::Views::Char.new(name: _name, value: 'c'),
136
- Vedeu::Views::Char.new(name: _name, value: 'd'),
137
- Vedeu::Views::Char.new(name: _name, value: 'e'),
133
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
134
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
135
+ Vedeu::Cells::Char.new(name: _name, value: 'c'),
136
+ Vedeu::Cells::Char.new(name: _name, value: 'd'),
137
+ Vedeu::Cells::Char.new(name: _name, value: 'e'),
138
138
  ]
139
139
  }
140
140
 
@@ -147,11 +147,11 @@ module Vedeu
147
147
  context 'when a width option is set' do
148
148
  let(:expected) {
149
149
  [
150
- Vedeu::Views::Char.new(name: _name, value: 'a'),
151
- Vedeu::Views::Char.new(name: _name, value: 'b'),
152
- Vedeu::Views::Char.new(name: _name, value: 'c'),
153
- Vedeu::Views::Char.new(name: _name, value: 'd'),
154
- Vedeu::Views::Char.new(name: _name, value: 'e'),
150
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
151
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
152
+ Vedeu::Cells::Char.new(name: _name, value: 'c'),
153
+ Vedeu::Cells::Char.new(name: _name, value: 'd'),
154
+ Vedeu::Cells::Char.new(name: _name, value: 'e'),
155
155
  ]
156
156
  }
157
157
 
@@ -164,11 +164,11 @@ module Vedeu
164
164
  context 'when a name option is set' do
165
165
  let(:expected) {
166
166
  [
167
- Vedeu::Views::Char.new(name: _name, value: 'a'),
168
- Vedeu::Views::Char.new(name: _name, value: 'b'),
169
- Vedeu::Views::Char.new(name: _name, value: 'c'),
170
- Vedeu::Views::Char.new(name: _name, value: 'd'),
171
- Vedeu::Views::Char.new(name: _name, value: 'e'),
167
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
168
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
169
+ Vedeu::Cells::Char.new(name: _name, value: 'c'),
170
+ Vedeu::Cells::Char.new(name: _name, value: 'd'),
171
+ Vedeu::Cells::Char.new(name: _name, value: 'e'),
172
172
  ]
173
173
  }
174
174
 
@@ -179,11 +179,11 @@ module Vedeu
179
179
  let(:_name) {}
180
180
  let(:expected) {
181
181
  [
182
- Vedeu::Views::Char.new(name: _name, value: 'a'),
183
- Vedeu::Views::Char.new(name: _name, value: 'b'),
184
- Vedeu::Views::Char.new(name: _name, value: 'c'),
185
- Vedeu::Views::Char.new(name: _name, value: 'd'),
186
- Vedeu::Views::Char.new(name: _name, value: 'e'),
182
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
183
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
184
+ Vedeu::Cells::Char.new(name: _name, value: 'c'),
185
+ Vedeu::Cells::Char.new(name: _name, value: 'd'),
186
+ Vedeu::Cells::Char.new(name: _name, value: 'e'),
187
187
  ]
188
188
  }
189
189
 
@@ -195,11 +195,11 @@ module Vedeu
195
195
  context 'when the align option is not set' do
196
196
  let(:expected) {
197
197
  [
198
- Vedeu::Views::Char.new(name: _name, value: 'a'),
199
- Vedeu::Views::Char.new(name: _name, value: 'b'),
200
- Vedeu::Views::Char.new(name: _name, value: 'c'),
201
- Vedeu::Views::Char.new(name: _name, value: 'd'),
202
- Vedeu::Views::Char.new(name: _name, value: 'e'),
198
+ Vedeu::Cells::Char.new(name: _name, value: 'a'),
199
+ Vedeu::Cells::Char.new(name: _name, value: 'b'),
200
+ Vedeu::Cells::Char.new(name: _name, value: 'c'),
201
+ Vedeu::Cells::Char.new(name: _name, value: 'd'),
202
+ Vedeu::Cells::Char.new(name: _name, value: 'e'),
203
203
  ]
204
204
  }
205
205