vedeu 0.6.71 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/docs/api.md +1 -1
  3. data/lib/vedeu/all.rb +1 -0
  4. data/lib/vedeu/borders/border.rb +66 -55
  5. data/lib/vedeu/borders/caption.rb +10 -20
  6. data/lib/vedeu/borders/dsl.rb +57 -13
  7. data/lib/vedeu/borders/refresh.rb +123 -64
  8. data/lib/vedeu/borders/set_attribute.rb +1 -3
  9. data/lib/vedeu/borders/title.rb +68 -25
  10. data/lib/vedeu/cells/all.rb +23 -0
  11. data/lib/vedeu/cells/border.rb +72 -0
  12. data/lib/vedeu/cells/borders/all.rb +18 -0
  13. data/lib/vedeu/cells/borders/bottom_horizontal.rb +28 -0
  14. data/lib/vedeu/cells/borders/bottom_left.rb +34 -0
  15. data/lib/vedeu/cells/borders/bottom_right.rb +34 -0
  16. data/lib/vedeu/cells/borders/horizontal.rb +28 -0
  17. data/lib/vedeu/cells/borders/left_vertical.rb +28 -0
  18. data/lib/vedeu/cells/borders/right_vertical.rb +28 -0
  19. data/lib/vedeu/cells/borders/top_horizontal.rb +28 -0
  20. data/lib/vedeu/cells/borders/top_left.rb +34 -0
  21. data/lib/vedeu/cells/borders/top_right.rb +34 -0
  22. data/lib/vedeu/cells/borders/vertical.rb +28 -0
  23. data/lib/vedeu/cells/char.rb +24 -0
  24. data/lib/vedeu/cells/clear.rb +29 -0
  25. data/lib/vedeu/cells/empty.rb +78 -0
  26. data/lib/vedeu/cells/escape.rb +24 -0
  27. data/lib/vedeu/cells/html.rb +19 -0
  28. data/lib/vedeu/cells/json.rb +19 -0
  29. data/lib/vedeu/colours/colour.rb +6 -6
  30. data/lib/vedeu/common.rb +9 -0
  31. data/lib/vedeu/cursors/move.rb +2 -3
  32. data/lib/vedeu/editor/insert.rb +1 -1
  33. data/lib/vedeu/editor/item.rb +2 -3
  34. data/lib/vedeu/input/mouse.rb +1 -1
  35. data/lib/vedeu/interfaces/clear.rb +3 -4
  36. data/lib/vedeu/output/compressor.rb +1 -0
  37. data/lib/vedeu/presentation/colour.rb +3 -0
  38. data/lib/vedeu/repositories/defaults.rb +10 -1
  39. data/lib/vedeu/templating/decoder.rb +1 -1
  40. data/lib/vedeu/templating/encoder.rb +1 -1
  41. data/lib/vedeu/templating/template.rb +2 -2
  42. data/lib/vedeu/templating/view_template.rb +1 -1
  43. data/lib/vedeu/terminal/terminal.rb +9 -0
  44. data/lib/vedeu/version.rb +1 -1
  45. data/lib/vedeu/views/html_char.rb +1 -1
  46. data/test/lib/vedeu/application/application_controller_test.rb +2 -2
  47. data/test/lib/vedeu/application/controller_test.rb +4 -4
  48. data/test/lib/vedeu/borders/border_test.rb +10 -2
  49. data/test/lib/vedeu/borders/caption_test.rb +29 -13
  50. data/test/lib/vedeu/borders/dsl_test.rb +44 -25
  51. data/test/lib/vedeu/borders/refresh_test.rb +2 -2
  52. data/test/lib/vedeu/borders/title_test.rb +17 -15
  53. data/test/lib/vedeu/buffers/buffer_test.rb +8 -8
  54. data/test/lib/vedeu/buffers/refresh_test.rb +10 -10
  55. data/test/lib/vedeu/buffers/terminal_test.rb +6 -6
  56. data/test/lib/vedeu/cells/border_test.rb +72 -0
  57. data/test/lib/vedeu/cells/borders/bottom_horizontal_test.rb +22 -0
  58. data/test/lib/vedeu/cells/borders/bottom_left_test.rb +36 -0
  59. data/test/lib/vedeu/cells/borders/bottom_right_test.rb +36 -0
  60. data/test/lib/vedeu/cells/borders/horizontal_test.rb +22 -0
  61. data/test/lib/vedeu/cells/borders/left_vertical_test.rb +22 -0
  62. data/test/lib/vedeu/cells/borders/right_vertical_test.rb +22 -0
  63. data/test/lib/vedeu/cells/borders/top_horizontal_test.rb +22 -0
  64. data/test/lib/vedeu/cells/borders/top_left_test.rb +36 -0
  65. data/test/lib/vedeu/cells/borders/top_right_test.rb +36 -0
  66. data/test/lib/vedeu/cells/borders/vertical_test.rb +22 -0
  67. data/test/lib/vedeu/cells/char_test.rb +22 -0
  68. data/test/lib/vedeu/cells/clear_test.rb +34 -0
  69. data/test/lib/vedeu/cells/empty_test.rb +55 -0
  70. data/test/lib/vedeu/cells/escape_test.rb +13 -0
  71. data/test/lib/vedeu/cells/html_test.rb +13 -0
  72. data/test/lib/vedeu/cells/json_test.rb +13 -0
  73. data/test/lib/vedeu/colours/colour_test.rb +2 -6
  74. data/test/lib/vedeu/colours/translator_test.rb +4 -4
  75. data/test/lib/vedeu/common_test.rb +10 -0
  76. data/test/lib/vedeu/configuration/api_test.rb +24 -24
  77. data/test/lib/vedeu/cursors/cursor_test.rb +4 -4
  78. data/test/lib/vedeu/cursors/dsl_test.rb +16 -16
  79. data/test/lib/vedeu/cursors/reposition_test.rb +2 -2
  80. data/test/lib/vedeu/cursors/repository_test.rb +2 -2
  81. data/test/lib/vedeu/distributed/client_test.rb +2 -2
  82. data/test/lib/vedeu/distributed/server_test.rb +8 -8
  83. data/test/lib/vedeu/distributed/subprocess_test.rb +2 -2
  84. data/test/lib/vedeu/distributed/test_application_test.rb +2 -2
  85. data/test/lib/vedeu/dsl/line_test.rb +2 -2
  86. data/test/lib/vedeu/dsl/presentation_test.rb +4 -4
  87. data/test/lib/vedeu/editor/cursor_test.rb +2 -2
  88. data/test/lib/vedeu/editor/document_test.rb +4 -4
  89. data/test/lib/vedeu/editor/editor_test.rb +20 -20
  90. data/test/lib/vedeu/events/aliases_test.rb +2 -2
  91. data/test/lib/vedeu/events/repository_test.rb +2 -2
  92. data/test/lib/vedeu/geometries/area/area_test.rb +2 -2
  93. data/test/lib/vedeu/geometries/geometry_test.rb +2 -2
  94. data/test/lib/vedeu/geometries/move_test.rb +2 -2
  95. data/test/lib/vedeu/geometries/position_test.rb +2 -2
  96. data/test/lib/vedeu/groups/clear_test.rb +2 -2
  97. data/test/lib/vedeu/groups/group_test.rb +4 -4
  98. data/test/lib/vedeu/groups/refresh_test.rb +2 -2
  99. data/test/lib/vedeu/input/capture_test.rb +42 -40
  100. data/test/lib/vedeu/input/mouse_test.rb +13 -11
  101. data/test/lib/vedeu/input/read_test.rb +10 -10
  102. data/test/lib/vedeu/interfaces/clear_test.rb +15 -6
  103. data/test/lib/vedeu/interfaces/dsl_test.rb +14 -14
  104. data/test/lib/vedeu/interfaces/interface_test.rb +12 -9
  105. data/test/lib/vedeu/logging/debug_test.rb +2 -2
  106. data/test/lib/vedeu/logging/lockless_log_device_test.rb +2 -2
  107. data/test/lib/vedeu/logging/log_test.rb +4 -4
  108. data/test/lib/vedeu/logging/mono_logger_test.rb +8 -8
  109. data/test/lib/vedeu/logging/timer_test.rb +2 -2
  110. data/test/lib/vedeu/menus/menu_test.rb +4 -4
  111. data/test/lib/vedeu/models/cell_test.rb +2 -2
  112. data/test/lib/vedeu/models/focus_test.rb +6 -6
  113. data/test/lib/vedeu/models/toggleable_test.rb +10 -10
  114. data/test/lib/vedeu/null/generic_test.rb +2 -2
  115. data/test/lib/vedeu/output/output_test.rb +8 -8
  116. data/test/lib/vedeu/output/refresh_test.rb +2 -2
  117. data/test/lib/vedeu/output/viewport_test.rb +2 -2
  118. data/test/lib/vedeu/plugins/plugin_test.rb +4 -4
  119. data/test/lib/vedeu/presentation/background_test.rb +2 -2
  120. data/test/lib/vedeu/presentation/foreground_test.rb +2 -2
  121. data/test/lib/vedeu/presentation/style_test.rb +2 -2
  122. data/test/lib/vedeu/renderers/all_test.rb +2 -2
  123. data/test/lib/vedeu/renderers/file_test.rb +6 -6
  124. data/test/lib/vedeu/renderers/terminal_test.rb +2 -2
  125. data/test/lib/vedeu/repositories/collection_test.rb +2 -2
  126. data/test/lib/vedeu/repositories/defaults_test.rb +35 -0
  127. data/test/lib/vedeu/repositories/registerable_test.rb +2 -2
  128. data/test/lib/vedeu/runtime/bootstrap_test.rb +2 -2
  129. data/test/lib/vedeu/runtime/flags_test.rb +2 -2
  130. data/test/lib/vedeu/runtime/launcher_test.rb +4 -4
  131. data/test/lib/vedeu/runtime/main_loop_test.rb +2 -2
  132. data/test/lib/vedeu/runtime/router_test.rb +12 -12
  133. data/test/lib/vedeu/terminal/mode_test.rb +4 -4
  134. data/test/lib/vedeu/terminal/terminal_test.rb +19 -9
  135. data/test/lib/vedeu/views/char_test.rb +2 -2
  136. data/test/lib/vedeu/views/composition_test.rb +2 -2
  137. data/test/lib/vedeu/views/line_test.rb +2 -2
  138. data/test/lib/vedeu/views/stream_test.rb +2 -2
  139. data/test/lib/vedeu/views/view_test.rb +4 -4
  140. data/vedeu.gemspec +1 -1
  141. metadata +57 -4
@@ -0,0 +1,36 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe TopRight do
8
+
9
+ let(:described) { Vedeu::Cells::TopRight }
10
+ let(:instance) { described.new }
11
+
12
+ describe '#position' do
13
+ let(:geometry) {
14
+ Vedeu::Geometries::Geometry.new(x: 5, xn: 15, y: 3, yn: 9)
15
+ }
16
+
17
+ subject { instance.position }
18
+
19
+ before { Vedeu.geometries.stubs(:by_name).returns(geometry) }
20
+
21
+ it { subject.must_be_instance_of(Vedeu::Geometries::Position) }
22
+ it { subject.x.must_equal(15) }
23
+ it { subject.y.must_equal(3) }
24
+ end
25
+
26
+ describe '#type' do
27
+ subject { instance.type }
28
+
29
+ it { subject.must_equal(:top_right) }
30
+ end
31
+
32
+ end # TopRight
33
+
34
+ end # Cells
35
+
36
+ end # Vedeu
@@ -0,0 +1,22 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe Vertical do
8
+
9
+ let(:described) { Vedeu::Cells::Vertical }
10
+ let(:instance) { described.new }
11
+
12
+ describe '#type' do
13
+ subject { instance.type }
14
+
15
+ it { subject.must_equal(:vertical) }
16
+ end
17
+
18
+ end # Vertical
19
+
20
+ end # Cells
21
+
22
+ end # Vedeu
@@ -0,0 +1,22 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe Char do
8
+
9
+ let(:described) { Vedeu::Cells::Char }
10
+ let(:instance) { described.new }
11
+
12
+ describe '#cell?' do
13
+ subject { instance.cell? }
14
+
15
+ it { subject.must_equal(false) }
16
+ end
17
+
18
+ end # Char
19
+
20
+ end # Cells
21
+
22
+ end # Vedeu
@@ -0,0 +1,34 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe Clear do
8
+
9
+ let(:described) { Vedeu::Cells::Clear }
10
+ let(:instance) { described.new(attributes) }
11
+ let(:attributes) {
12
+ {
13
+ value: _value,
14
+ }
15
+ }
16
+ let(:_value) { ' ' }
17
+
18
+ describe '#cell?' do
19
+ subject { instance.cell? }
20
+
21
+ it { subject.must_equal(false) }
22
+ end
23
+
24
+ describe '#value' do
25
+ subject { instance.value }
26
+
27
+ it { subject.must_equal(' ') }
28
+ end
29
+
30
+ end # Clear
31
+
32
+ end # Cells
33
+
34
+ end # Vedeu
@@ -0,0 +1,55 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe Empty do
8
+
9
+ let(:described) { Vedeu::Cells::Empty }
10
+ let(:instance) { described.new(attributes) }
11
+ let(:attributes) {
12
+ {
13
+ colour: colour,
14
+ name: _name,
15
+ position: position,
16
+ style: style,
17
+ value: _value,
18
+ }
19
+ }
20
+ let(:colour) { {} }
21
+ let(:_name) { '' }
22
+ let(:position) {}
23
+ let(:style) { '' }
24
+ let(:_value) { '' }
25
+
26
+ describe 'accessors' do
27
+ it { instance.must_respond_to(:name) }
28
+ it { instance.must_respond_to(:value) }
29
+ end
30
+
31
+ describe '#cell?' do
32
+ subject { instance.cell? }
33
+
34
+ it { subject.must_equal(true) }
35
+ end
36
+
37
+ describe '#eql?' do
38
+ let(:other) { instance }
39
+
40
+ subject { instance.eql?(other) }
41
+
42
+ it { subject.must_equal(true) }
43
+
44
+ context 'when different to other' do
45
+ let(:other) { described.new(value: 'b') }
46
+
47
+ it { subject.must_equal(false) }
48
+ end
49
+ end
50
+
51
+ end # Empty
52
+
53
+ end # Cells
54
+
55
+ end # Vedeu
@@ -0,0 +1,13 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe Escape do
8
+
9
+ end # Escape
10
+
11
+ end # Cells
12
+
13
+ end # Vedeu
@@ -0,0 +1,13 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe HTML do
8
+
9
+ end # HTML
10
+
11
+ end # Cells
12
+
13
+ end # Vedeu
@@ -0,0 +1,13 @@
1
+ require 'test_helper'
2
+
3
+ module Vedeu
4
+
5
+ module Cells
6
+
7
+ describe JSON do
8
+
9
+ end # JSON
10
+
11
+ end # Cells
12
+
13
+ end # Vedeu
@@ -81,9 +81,7 @@ module Vedeu
81
81
 
82
82
  it { subject.foreground.colour.must_equal('') }
83
83
  it { subject.background.colour.must_equal('#7700ff') }
84
- it {
85
- subject.to_s.must_equal("\e[48;2;119;0;255m")
86
- }
84
+ it { subject.to_s.must_equal("\e[48;2;119;0;255m") }
87
85
  end
88
86
 
89
87
  context 'and a :foreground is defined' do
@@ -97,9 +95,7 @@ module Vedeu
97
95
 
98
96
  it { subject.foreground.colour.must_equal('#220077') }
99
97
  it { subject.background.colour.must_equal('') }
100
- it {
101
- subject.to_s.must_equal("\e[38;2;34;0;119m")
102
- }
98
+ it { subject.to_s.must_equal("\e[38;2;34;0;119m") }
103
99
  end
104
100
 
105
101
  context 'and neither a :background or :foreground is defined' do
@@ -28,15 +28,15 @@ module Vedeu
28
28
  context 'when the value is nil' do
29
29
  it { subject.must_be_instance_of(described) }
30
30
 
31
- it {
31
+ it do
32
32
  Vedeu::Colours::Background.coerce(_value).
33
33
  must_be_instance_of(Vedeu::Colours::Background)
34
- }
34
+ end
35
35
  it { Vedeu::Colours::Background.coerce(_value).colour.must_equal('') }
36
- it {
36
+ it do
37
37
  Vedeu::Colours::Foreground.coerce(_value).
38
38
  must_be_instance_of(Vedeu::Colours::Foreground)
39
- }
39
+ end
40
40
  it { Vedeu::Colours::Foreground.coerce(_value).colour.must_equal('') }
41
41
  end
42
42
 
@@ -50,6 +50,16 @@ module Vedeu
50
50
  end
51
51
  end
52
52
 
53
+ describe '#become' do
54
+ let(:instance) { Vedeu::Cells::Border.new }
55
+ let(:klass) { Vedeu::Cells::Char }
56
+ let(:attributes) { instance.attributes }
57
+
58
+ subject { instance.become(klass, attributes) }
59
+
60
+ it { subject.must_be_instance_of(Vedeu::Cells::Char) }
61
+ end
62
+
53
63
  describe '#demodulize' do
54
64
  let(:klass) { described }
55
65
 
@@ -327,102 +327,102 @@ module Vedeu
327
327
 
328
328
  describe '#terminal_mode' do
329
329
  context 'when setting to :fake mode' do
330
- it {
330
+ it do
331
331
  configuration = Vedeu.configure { terminal_mode(:fake) }
332
332
  configuration.terminal_mode.must_equal(:fake)
333
- }
333
+ end
334
334
  end
335
335
 
336
336
  context 'when setting to :cooked mode' do
337
- it {
337
+ it do
338
338
  configuration = Vedeu.configure { terminal_mode(:raw) }
339
339
  configuration.terminal_mode.must_equal(:raw)
340
- }
340
+ end
341
341
  end
342
342
 
343
343
  context 'when setting to :raw mode' do
344
- it {
344
+ it do
345
345
  configuration = Vedeu.configure { terminal_mode(:raw) }
346
346
  configuration.terminal_mode.must_equal(:raw)
347
- }
347
+ end
348
348
  end
349
349
 
350
350
  context 'when setting to an invalid mode' do
351
- it {
351
+ it do
352
352
  proc {
353
353
  Vedeu.configure { terminal_mode(:invalid) }
354
354
  }.must_raise(Vedeu::Error::InvalidSyntax)
355
- }
355
+ end
356
356
  end
357
357
  end
358
358
 
359
359
  describe '#background' do
360
360
  context 'when a value is given' do
361
- it {
361
+ it do
362
362
  configuration = Vedeu.configure { background '#ff0000' }
363
363
  configuration.background.must_be_instance_of(Vedeu::Colours::Background)
364
364
  configuration.background.to_s.must_equal("\e[48;2;255;0;0m")
365
- }
365
+ end
366
366
  end
367
367
 
368
368
  context 'when a value is not given' do
369
- it {
369
+ it do
370
370
  configuration = Vedeu.configure { background nil }
371
371
  configuration.background.must_be_instance_of(Vedeu::Colours::Background)
372
372
  configuration.background.to_s.must_equal("\e[49m")
373
- }
373
+ end
374
374
  end
375
375
  end
376
376
 
377
377
  describe '#colour' do
378
378
  context 'when a background and foreground is given' do
379
- it {
379
+ it do
380
380
  configuration = Vedeu.configure { colour background: '#ff0000', foreground: '#ffff00' }
381
381
  configuration.colour.must_be_instance_of(Vedeu::Colours::Colour)
382
382
  configuration.colour.to_s.must_equal("\e[38;2;255;255;0m\e[48;2;255;0;0m")
383
- }
383
+ end
384
384
  end
385
385
 
386
386
  context 'when only a background is given' do
387
- it {
387
+ it do
388
388
  configuration = Vedeu.configure { colour background: '#ff0000' }
389
389
  configuration.colour.must_be_instance_of(Vedeu::Colours::Colour)
390
390
  configuration.colour.to_s.must_equal("\e[48;2;255;0;0m")
391
- }
391
+ end
392
392
  end
393
393
 
394
394
  context 'when only a foreground is given' do
395
- it {
395
+ it do
396
396
  configuration = Vedeu.configure { colour foreground: '#ffff00' }
397
397
  configuration.colour.must_be_instance_of(Vedeu::Colours::Colour)
398
398
  configuration.colour.to_s.must_equal("\e[38;2;255;255;0m")
399
- }
399
+ end
400
400
  end
401
401
 
402
402
  context 'when neither a background nor foreground is given' do
403
- it {
403
+ it do
404
404
  configuration = Vedeu.configure { colour background: nil, foreground: nil }
405
405
  configuration.colour.must_be_instance_of(Vedeu::Colours::Colour)
406
406
  configuration.colour.to_s.must_equal('')
407
- }
407
+ end
408
408
  end
409
409
  end
410
410
 
411
411
  describe '#foreground' do
412
412
  context 'when a value is given' do
413
- it {
413
+ it do
414
414
  configuration = Vedeu.configure { foreground '#ffff00' }
415
415
  configuration.foreground.must_be_instance_of(Vedeu::Colours::Foreground)
416
416
  configuration.foreground.to_s.must_equal("\e[38;2;255;255;0m")
417
- }
417
+ end
418
418
  end
419
419
 
420
420
  context 'when a value is not given' do
421
- it {
421
+ it do
422
422
  configuration = Vedeu.configure { background nil }
423
423
  configuration.foreground.must_be_instance_of(Vedeu::Colours::Foreground)
424
424
  configuration.foreground.to_s.must_equal("\e[39m")
425
- }
425
+ end
426
426
  end
427
427
  end
428
428
 
@@ -65,16 +65,16 @@ module Vedeu
65
65
  it { subject.instance_variable_get('@name').must_equal('silver') }
66
66
  it { subject.instance_variable_get('@ox').must_equal(ox) }
67
67
  it { subject.instance_variable_get('@oy').must_equal(oy) }
68
- it {
68
+ it do
69
69
  subject.instance_variable_get('@repository').must_equal(repository)
70
- }
70
+ end
71
71
  it { subject.instance_variable_get('@visible').must_equal(true) }
72
72
  it { subject.instance_variable_get('@x').must_equal(x) }
73
73
  it { subject.instance_variable_get('@y').must_equal(y) }
74
74
  end
75
75
 
76
76
  describe 'accessors' do
77
- it {
77
+ it do
78
78
  instance.must_respond_to(:attributes)
79
79
  instance.must_respond_to(:name)
80
80
  instance.must_respond_to(:ox)
@@ -84,7 +84,7 @@ module Vedeu
84
84
  instance.must_respond_to(:visible)
85
85
  instance.must_respond_to(:x=)
86
86
  instance.must_respond_to(:y=)
87
- }
87
+ end
88
88
  end
89
89
 
90
90
  describe '#eql?' do
@@ -15,73 +15,73 @@ module Vedeu
15
15
 
16
16
  # subject { instance.cursor(_value) }
17
17
 
18
- # it {
18
+ # it do
19
19
  # subject
20
20
  # Vedeu.cursors.find('actinium').visible?.must_equal(false)
21
- # }
21
+ # end
22
22
 
23
23
  # context 'when the value is false' do
24
24
  # let(:_value) { false }
25
25
 
26
- # it {
26
+ # it do
27
27
  # subject
28
28
  # Vedeu.cursors.find('actinium').visible?.must_equal(false)
29
- # }
29
+ # end
30
30
  # end
31
31
 
32
32
  # context 'when the value is nil' do
33
33
  # let(:_value) {}
34
34
 
35
- # it {
35
+ # it do
36
36
  # subject
37
37
  # Vedeu.cursors.find('actinium').visible?.must_equal(false)
38
- # }
38
+ # end
39
39
  # end
40
40
 
41
41
  # context 'when the value is :show' do
42
42
  # let(:_value) { :show }
43
43
 
44
- # it {
44
+ # it do
45
45
  # subject
46
46
  # Vedeu.cursors.find('actinium').visible?.must_equal(true)
47
- # }
47
+ # end
48
48
  # end
49
49
 
50
50
  # context 'when the value is true' do
51
51
  # let(:_value) { true }
52
52
 
53
- # it {
53
+ # it do
54
54
  # subject
55
55
  # Vedeu.cursors.find('actinium').visible?.must_equal(true)
56
- # }
56
+ # end
57
57
  # end
58
58
 
59
59
  # context 'when the value is :yes' do
60
60
  # let(:_value) { :yes }
61
61
 
62
- # it {
62
+ # it do
63
63
  # subject
64
64
  # Vedeu.cursors.find('actinium').visible?.must_equal(true)
65
- # }
65
+ # end
66
66
  # end
67
67
  # end
68
68
 
69
69
  # describe '#cursor!' do
70
70
  # subject { instance.cursor! }
71
71
 
72
- # it {
72
+ # it do
73
73
  # subject
74
74
  # Vedeu.cursors.find('actinium').visible?.must_equal(true)
75
- # }
75
+ # end
76
76
  # end
77
77
 
78
78
  # describe '#no_cursor!' do
79
79
  # subject { instance.no_cursor! }
80
80
 
81
- # it {
81
+ # it do
82
82
  # subject
83
83
  # Vedeu.cursors.find('actinium').visible?.must_equal(false)
84
- # }
84
+ # end
85
85
  # end
86
86
 
87
87
  end # DSL