shoes-core 4.0.0.pre4 → 4.0.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/Guardfile +5 -0
  3. data/bin/shoes +1 -1
  4. data/bin/shoes-stub +1 -1
  5. data/ext/install/Rakefile +15 -5
  6. data/ext/install/shoes.bat +1 -1
  7. data/lib/shoes/animation.rb +2 -2
  8. data/lib/shoes/arc.rb +1 -0
  9. data/lib/shoes/builtin_methods.rb +5 -18
  10. data/lib/shoes/button.rb +1 -5
  11. data/lib/shoes/check_button.rb +1 -5
  12. data/lib/shoes/color.rb +5 -274
  13. data/lib/shoes/color/dsl.rb +166 -0
  14. data/lib/shoes/color/dsl_helpers.rb +84 -0
  15. data/lib/shoes/color/hex_converter.rb +32 -0
  16. data/lib/shoes/common/background_element.rb +5 -0
  17. data/lib/shoes/common/hover.rb +87 -0
  18. data/lib/shoes/common/initialization.rb +21 -8
  19. data/lib/shoes/common/remove.rb +2 -0
  20. data/lib/shoes/common/state.rb +17 -3
  21. data/lib/shoes/common/style.rb +8 -0
  22. data/lib/shoes/configuration.rb +18 -15
  23. data/lib/shoes/core/version.rb +1 -1
  24. data/lib/shoes/dimension.rb +6 -19
  25. data/lib/shoes/dimensions.rb +8 -0
  26. data/lib/shoes/download.rb +5 -3
  27. data/lib/shoes/dsl.rb +3 -3
  28. data/lib/shoes/image.rb +1 -0
  29. data/lib/shoes/image_pattern.rb +1 -1
  30. data/lib/shoes/input_box.rb +2 -5
  31. data/lib/shoes/internal_app.rb +13 -2
  32. data/lib/shoes/line.rb +1 -0
  33. data/lib/shoes/link.rb +8 -0
  34. data/lib/shoes/list_box.rb +2 -5
  35. data/lib/shoes/mock/check.rb +3 -0
  36. data/lib/shoes/mock/image.rb +6 -0
  37. data/lib/shoes/mock/progress.rb +6 -0
  38. data/lib/shoes/mock/radio.rb +3 -0
  39. data/lib/shoes/mock/sound.rb +1 -1
  40. data/lib/shoes/oval.rb +1 -0
  41. data/lib/shoes/packager.rb +1 -1
  42. data/lib/shoes/rect.rb +1 -0
  43. data/lib/shoes/shape.rb +4 -0
  44. data/lib/shoes/slot.rb +75 -38
  45. data/lib/shoes/slot_contents.rb +4 -0
  46. data/lib/shoes/sound.rb +3 -2
  47. data/lib/shoes/star.rb +1 -0
  48. data/lib/shoes/text_block.rb +18 -2
  49. data/lib/shoes/text_block_dimensions.rb +19 -3
  50. data/lib/shoes/timer.rb +2 -2
  51. data/lib/shoes/ui/picker.rb +4 -4
  52. data/lib/shoes/version.rb +1 -1
  53. data/shoes-core.gemspec +1 -1
  54. data/spec/shoes/animation_spec.rb +2 -2
  55. data/spec/shoes/app_spec.rb +6 -17
  56. data/spec/shoes/arc_spec.rb +2 -1
  57. data/spec/shoes/background_spec.rb +2 -2
  58. data/spec/shoes/border_spec.rb +2 -2
  59. data/spec/shoes/builtin_methods_spec.rb +68 -56
  60. data/spec/shoes/button_spec.rb +3 -3
  61. data/spec/shoes/check_spec.rb +3 -2
  62. data/spec/shoes/color_spec.rb +9 -3
  63. data/spec/shoes/common/remove_spec.rb +0 -1
  64. data/spec/shoes/common/rotate_spec.rb +13 -0
  65. data/spec/shoes/common/style_spec.rb +12 -3
  66. data/spec/shoes/configuration_spec.rb +18 -3
  67. data/spec/shoes/constants_spec.rb +1 -0
  68. data/spec/shoes/dialog_spec.rb +1 -3
  69. data/spec/shoes/dimension_spec.rb +33 -24
  70. data/spec/shoes/dimensions_spec.rb +21 -31
  71. data/spec/shoes/download_spec.rb +14 -3
  72. data/spec/shoes/flow_spec.rb +6 -7
  73. data/spec/shoes/font_spec.rb +2 -3
  74. data/spec/shoes/framework_learning_spec.rb +1 -2
  75. data/spec/shoes/gradient_spec.rb +1 -2
  76. data/spec/shoes/helpers/fake_absolute_element.rb +30 -0
  77. data/spec/shoes/helpers/sample17_helper.rb +0 -1
  78. data/spec/shoes/image_spec.rb +2 -1
  79. data/spec/shoes/input_box_spec.rb +2 -2
  80. data/spec/shoes/integration_spec.rb +0 -1
  81. data/spec/shoes/internal_app_spec.rb +4 -5
  82. data/spec/shoes/keypress_spec.rb +1 -1
  83. data/spec/shoes/keyrelease_spec.rb +1 -2
  84. data/spec/shoes/line_spec.rb +3 -2
  85. data/spec/shoes/link_spec.rb +26 -6
  86. data/spec/shoes/list_box_spec.rb +2 -2
  87. data/spec/shoes/oval_spec.rb +2 -1
  88. data/spec/shoes/packager_spec.rb +1 -1
  89. data/spec/shoes/point_spec.rb +1 -1
  90. data/spec/shoes/progress_spec.rb +1 -1
  91. data/spec/shoes/radio_spec.rb +1 -1
  92. data/spec/shoes/rect_spec.rb +2 -1
  93. data/spec/shoes/renamed_delegate_spec.rb +0 -1
  94. data/spec/shoes/shape_spec.rb +1 -1
  95. data/spec/shoes/shared_examples/common_methods.rb +1 -1
  96. data/spec/shoes/shared_examples/dsl/animate.rb +1 -1
  97. data/spec/shoes/shared_examples/dsl/background.rb +2 -2
  98. data/spec/shoes/shared_examples/dsl/rgb.rb +4 -2
  99. data/spec/shoes/shared_examples/dsl/star.rb +0 -1
  100. data/spec/shoes/shared_examples/dsl/style.rb +1 -1
  101. data/spec/shoes/shared_examples/dsl/text_elements.rb +2 -2
  102. data/spec/shoes/shared_examples/dsl/video.rb +1 -1
  103. data/spec/shoes/shared_examples/dsl_app_context.rb +4 -1
  104. data/spec/shoes/shared_examples/hover.rb +78 -0
  105. data/spec/shoes/shared_examples/slot.rb +34 -4
  106. data/spec/shoes/shared_examples/state.rb +9 -2
  107. data/spec/shoes/shared_examples/style.rb +0 -5
  108. data/spec/shoes/slot_spec.rb +11 -38
  109. data/spec/shoes/sound_spec.rb +3 -2
  110. data/spec/shoes/span_spec.rb +2 -2
  111. data/spec/shoes/spec_helper.rb +1 -1
  112. data/spec/shoes/stack_spec.rb +6 -6
  113. data/spec/shoes/star_spec.rb +2 -1
  114. data/spec/shoes/text_block_dimensions_spec.rb +3 -4
  115. data/spec/shoes/text_block_spec.rb +16 -11
  116. data/spec/shoes/ui/picker_spec.rb +5 -6
  117. data/spec/shoes/url_spec.rb +1 -2
  118. data/spec/shoes/widget_spec.rb +11 -3
  119. data/spec/shoes_spec.rb +1 -4
  120. data/spec/spec_helper.rb +2 -1
  121. metadata +16 -9
  122. data/bin/shoes-guard +0 -8
  123. data/lib/shoes/link_hover.rb +0 -5
  124. data/spec/shoes/shared_examples/hover_leave.rb +0 -11
@@ -1,7 +1,6 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::Dimensions do
4
-
5
4
  let(:parent_left) {left}
6
5
  let(:parent_top) {top}
7
6
  let(:parent_width) {width}
@@ -104,7 +103,6 @@ describe Shoes::Dimensions do
104
103
  its(:height) {should be_within(ONE_PIXEL).of 0.5 * parent.height}
105
104
 
106
105
  describe 'width/height change of the parent' do
107
-
108
106
  # note that here the first assertion/call is necessary as otherwise
109
107
  # the subject will only lazily get initialized after the parent width
110
108
  # is already adjusted and therefore wrong impls WILL PASS the tests
@@ -140,7 +138,6 @@ describe Shoes::Dimensions do
140
138
 
141
139
  its(:height) {should eq parent.element_height}
142
140
  end
143
-
144
141
  end
145
142
 
146
143
  describe 'with percentages' do
@@ -335,7 +332,6 @@ describe Shoes::Dimensions do
335
332
  end
336
333
  end
337
334
 
338
-
339
335
  describe 'setting ' do
340
336
  it 'has a setter for left' do
341
337
  subject.left = 66
@@ -405,7 +401,7 @@ describe Shoes::Dimensions do
405
401
 
406
402
  describe 'centered (e.g. left and top are seen as coords for the center)' do
407
403
  describe '5 arguments' do
408
- subject {Shoes::Dimensions.new parent, 100, 50, 40, 20, :center => true}
404
+ subject {Shoes::Dimensions.new parent, 100, 50, 40, 20, center: true}
409
405
 
410
406
  its(:left) {should eq 80}
411
407
  its(:top) {should eq 40}
@@ -427,10 +423,10 @@ describe Shoes::Dimensions do
427
423
 
428
424
  describe 'hash' do
429
425
  subject {Shoes::Dimensions.new parent, left: 100,
430
- top: 50,
431
- width: 40,
432
- height: 20,
433
- center: true }
426
+ top: 50,
427
+ width: 40,
428
+ height: 20,
429
+ center: true }
434
430
 
435
431
  its(:left) {should eq 80}
436
432
  its(:top) {should eq 40}
@@ -447,7 +443,6 @@ describe Shoes::Dimensions do
447
443
  end
448
444
 
449
445
  describe 'in_bounds?' do
450
-
451
446
  let(:left) {10}
452
447
  let(:top) {20}
453
448
  let(:width) {100}
@@ -462,7 +457,7 @@ describe Shoes::Dimensions do
462
457
  it {is_expected.to be_in_bounds 30, 40}
463
458
  it {is_expected.to be_in_bounds left, top}
464
459
  it {is_expected.to be_in_bounds left + width - ONE_PIXEL,
465
- top + height - ONE_PIXEL}
460
+ top + height - ONE_PIXEL}
466
461
  it {is_expected.not_to be_in_bounds left + width, top + height}
467
462
  it {is_expected.not_to be_in_bounds 30, top + height}
468
463
  it {is_expected.not_to be_in_bounds left + width, 40}
@@ -489,7 +484,7 @@ describe Shoes::Dimensions do
489
484
  it {is_expected.to be_in_bounds 200, absolute_top}
490
485
  it {is_expected.to be_in_bounds absolute_left, absolute_top}
491
486
  it {is_expected.to be_in_bounds absolute_left + width - ONE_PIXEL,
492
- absolute_top + height - ONE_PIXEL
487
+ absolute_top + height - ONE_PIXEL
493
488
  }
494
489
  it {is_expected.not_to be_in_bounds 80, 400}
495
490
  end
@@ -530,7 +525,6 @@ describe Shoes::Dimensions do
530
525
  before :each do subject.bottom = bottom end
531
526
  it_behaves_like 'absolute_y_position'
532
527
  end
533
-
534
528
  end
535
529
 
536
530
  describe 'margins' do
@@ -572,7 +566,7 @@ describe Shoes::Dimensions do
572
566
  let(:margin_bottom) {17}
573
567
 
574
568
  shared_examples_for 'all distinct margins' do
575
- its(:margin){should == [margin_left, margin_top, margin_right, margin_bottom]}
569
+ its(:margin) {should == [margin_left, margin_top, margin_right, margin_bottom]}
576
570
  its(:margin_left) {should == margin_left}
577
571
  its(:margin_top) {should == margin_top}
578
572
  its(:margin_right) {should == margin_right}
@@ -605,7 +599,6 @@ describe Shoes::Dimensions do
605
599
  end
606
600
 
607
601
  describe 'displace' do
608
-
609
602
  before :each do
610
603
  # need to have a rough positon
611
604
  subject.absolute_left = 0
@@ -617,7 +610,7 @@ describe Shoes::Dimensions do
617
610
  it 'modifies the value of element_left' do
618
611
  expect do
619
612
  subject.displace_left = displace_left
620
- end.to change{subject.element_left}.by(displace_left)
613
+ end.to change {subject.element_left}.by(displace_left)
621
614
  end
622
615
 
623
616
  it 'does not modify the value of absolute_left' do
@@ -640,7 +633,7 @@ describe Shoes::Dimensions do
640
633
  it 'modifies the value of element_top' do
641
634
  expect do
642
635
  subject.displace_top = displace_top
643
- end.to change{subject.element_top}.by(displace_top)
636
+ end.to change {subject.element_top}.by(displace_top)
644
637
  end
645
638
 
646
639
  it 'does not modify the value of absolute_top' do
@@ -656,7 +649,6 @@ describe Shoes::Dimensions do
656
649
  end
657
650
  end
658
651
  end
659
-
660
652
  end
661
653
 
662
654
  it {is_expected.to be_takes_up_space}
@@ -726,10 +718,10 @@ describe Shoes::Dimensions do
726
718
  margin: 20}
727
719
  subject {Shoes::ParentDimensions.new parent}
728
720
 
729
- its(:left) {should eq parent.left}
730
- its(:top) {should eq parent.top}
731
- its(:width) {should eq parent.width}
732
- its(:height) {should eq parent.height}
721
+ its(:left) {should eq nil}
722
+ its(:top) {should eq nil}
723
+ its(:width) {should eq parent.element_width}
724
+ its(:height) {should eq parent.element_height}
733
725
 
734
726
  its(:margin_left) {should eq 0}
735
727
  its(:margin_top) {should eq 0}
@@ -742,10 +734,10 @@ describe Shoes::Dimensions do
742
734
  parent.absolute_top = top
743
735
  end
744
736
 
745
- its(:absolute_left) {should eq parent.absolute_left}
746
- its(:absolute_top) {should eq parent.absolute_top}
747
- its(:element_left) {should eq parent.absolute_left}
748
- its(:element_top) {should eq parent.absolute_top}
737
+ its(:absolute_left) {should eq parent.element_left}
738
+ its(:absolute_top) {should eq parent.element_top}
739
+ its(:element_left) {should eq parent.element_left}
740
+ its(:element_top) {should eq parent.element_top}
749
741
  end
750
742
  end
751
743
 
@@ -771,7 +763,6 @@ describe Shoes::Dimensions do
771
763
  end
772
764
 
773
765
  describe Shoes::DimensionsDelegations do
774
-
775
766
  describe 'with a DSL class and a dimensions method' do
776
767
  let(:dimensions) {double('dimensions')}
777
768
 
@@ -809,7 +800,7 @@ describe Shoes::DimensionsDelegations do
809
800
  end
810
801
 
811
802
  describe 'with any backend class that has a defined dsl method' do
812
- let(:dsl){double 'dsl'}
803
+ let(:dsl) {double 'dsl'}
813
804
 
814
805
  class AnotherDummyClass
815
806
  include Shoes::BackendDimensionsDelegations
@@ -830,8 +821,7 @@ describe Shoes::DimensionsDelegations do
830
821
 
831
822
  it 'does not forward calls to parent' do
832
823
  expect(dsl).not_to receive :parent
833
- expect {subject.parent}.to raise_error
824
+ expect {subject.parent}.to raise_error(NoMethodError)
834
825
  end
835
826
  end
836
-
837
827
  end
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::Download do
4
4
  include_context "dsl app"
@@ -19,7 +19,7 @@ describe Shoes::Download do
19
19
  expect(app.current_slot).to receive(:create_bound_block).at_least(1) { |blk| blk ? blk : nil }
20
20
 
21
21
  stub_request(:get, name)
22
- .to_return(:status => response_status, :body => response_body, :headers => response_headers)
22
+ .to_return(status: response_status, body: response_body, headers: response_headers)
23
23
  end
24
24
 
25
25
  after do
@@ -144,7 +144,6 @@ describe Shoes::Download do
144
144
  expect(download.gui).to have_received(:eval_block).with(finish_proc, subject)
145
145
  end
146
146
  end
147
-
148
147
  end
149
148
 
150
149
  describe 'when things go wrong' do
@@ -158,6 +157,18 @@ describe Shoes::Download do
158
157
  download.join_thread
159
158
  end
160
159
 
160
+ it 'reports empty values for the response' do
161
+ error = StandardError.new("Nope")
162
+ allow(download).to receive(:open).and_raise(error)
163
+
164
+ download.start
165
+ download.join_thread
166
+
167
+ expect(download.response.body).to be_empty
168
+ expect(download.response.headers).to be_empty
169
+ expect(download.response.status).to be_empty
170
+ end
171
+
161
172
  it 'does not die on socket errors, but logs them' do
162
173
  error = SocketError.new('Badumz')
163
174
 
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
  require 'shoes/helpers/fake_element'
3
3
 
4
4
  describe Shoes::Flow do
@@ -7,11 +7,11 @@ describe Shoes::Flow do
7
7
  subject(:flow) { Shoes::Flow.new(app, parent, input_opts, input_block) }
8
8
 
9
9
  it_behaves_like "clickable object"
10
- it_behaves_like "hover and leave events"
11
10
  it_behaves_like "Slot"
11
+ it_behaves_like "object with hover"
12
12
 
13
13
  describe "initialize" do
14
- let(:input_opts) { {:width => 131, :height => 137} }
14
+ let(:input_opts) { {width: 131, height: 137} }
15
15
  it "sets accessors" do
16
16
  expect(flow.parent).to eq(parent)
17
17
  expect(flow.width).to eq(131)
@@ -68,11 +68,10 @@ describe Shoes::Flow do
68
68
  let(:input_opts) {{width: element.width + element2.width}}
69
69
  it_behaves_like 'positioning in the same line'
70
70
  end
71
-
72
71
  end
73
72
 
74
73
  describe 'when the elements dont fit next to each other' do
75
- let(:input_opts){ {width: element.width + element2.width - 10} }
74
+ let(:input_opts) { {width: element.width + element2.width - 10} }
76
75
  it_behaves_like 'arranges elements underneath each other'
77
76
 
78
77
  describe 'and a third element that goes into the second line' do
@@ -95,12 +94,12 @@ describe Shoes::Flow do
95
94
  end
96
95
 
97
96
  describe 'elements dont fit next to each other and set big height' do
98
- let(:input_opts){ {width: element.width + 10, height: 1000} }
97
+ let(:input_opts) { { width: element.width + 10, height: 1000 } }
99
98
  it_behaves_like 'set height and contents alignment'
100
99
  end
101
100
 
102
101
  describe 'with margins and two elements not fitting next to each other' do
103
- let(:input_opts){{width: element.width + 10, margin: 27}}
102
+ let(:input_opts) {{ width: element.width + 10, margin: 27 }}
104
103
  it_behaves_like 'taking care of margin'
105
104
  end
106
105
  end
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  main_object = self
4
4
 
@@ -20,7 +20,7 @@ describe Shoes::Font do
20
20
  result = Shoes::Font.font_paths_from_dir(Shoes::FONT_DIR)
21
21
 
22
22
  expect(result).to include(Shoes::FONT_DIR + 'Coolvetica.ttf',
23
- Shoes::FONT_DIR + 'Lacuna.ttf')
23
+ Shoes::FONT_DIR + 'Lacuna.ttf')
24
24
  end
25
25
 
26
26
  it 'handles sub directories' do
@@ -33,5 +33,4 @@ describe Shoes::Font do
33
33
  FileUtils.rm_r tmp_font_dir
34
34
  end
35
35
  end
36
-
37
36
  end
@@ -1,4 +1,4 @@
1
- require "shoes/spec_helper"
1
+ require 'spec_helper'
2
2
 
3
3
  module Learning
4
4
  class App
@@ -23,7 +23,6 @@ end
23
23
  end
24
24
 
25
25
  describe "A Shoes Framework" do
26
-
27
26
  it "should include Framework Plugins" do
28
27
  expect(Learning::App.new.gui).to eq("Peter")
29
28
  end
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::Gradient do
4
4
  let(:color1) { Shoes::COLORS[:honeydew] }
@@ -27,6 +27,5 @@ describe Shoes::Gradient do
27
27
  gradient_2 = Shoes::Gradient.new(color1, new_color)
28
28
  expect(subject).not_to eq(gradient_2)
29
29
  end
30
-
31
30
  end
32
31
  end
@@ -0,0 +1,30 @@
1
+ class Shoes
2
+ class FakeAbsoluteElement
3
+ include Common::Inspect
4
+ include Common::Visibility
5
+ include Common::Positioning
6
+ include Common::Remove
7
+
8
+ include Shoes::DimensionsDelegations
9
+
10
+ def initialize
11
+ @dimensions = AbsoluteDimensions.new 0, 0, 100, 100
12
+ end
13
+
14
+ def add_child(element)
15
+ true
16
+ end
17
+
18
+ def adjust_current_position(*_)
19
+ end
20
+
21
+ # Fake this out instead of using Common::Style to avoid things like touching
22
+ # app level styles, etc. that we don't need for testing purposes
23
+ def style
24
+ @style ||= {}
25
+ @style
26
+ end
27
+
28
+ attr_accessor :dimensions, :parent, :gui
29
+ end
30
+ end
@@ -10,7 +10,6 @@
10
10
  # end
11
11
  #
12
12
  class Sample17Helper
13
-
14
13
  def initialize(app)
15
14
  # This gives us the Shoes::App
16
15
  @app = app.app
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::Image do
4
4
  include_context "dsl app"
@@ -23,6 +23,7 @@ describe Shoes::Image do
23
23
 
24
24
  it_behaves_like "movable object"
25
25
  it_behaves_like "object with dimensions"
26
+ it_behaves_like "object with hover"
26
27
 
27
28
  it_behaves_like "object with style" do
28
29
  let(:subject_without_style) { Shoes::Image.new(app, parent, filename) }
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::InputBox do
4
4
  include_context "dsl app"
@@ -58,7 +58,7 @@ describe Shoes::InputBox do
58
58
 
59
59
  describe Shoes::EditLine do
60
60
  describe "secret" do
61
- subject { Shoes::EditLine.new(app, parent, text, secret: true) }
61
+ subject { Shoes::EditLine.new(app, parent, text, secret: true, state: 'disabled') }
62
62
 
63
63
  it "gets initialized" do
64
64
  expect(subject.secret).to eq(true)
@@ -3,7 +3,6 @@ require 'spec_helper'
3
3
  # also for stuff that is hard/brittle to test in isolation
4
4
  describe 'Integration specs' do
5
5
  describe 'hover & leave' do
6
-
7
6
  # that #hover and #leave are called with @__app__.current_slot is hard to
8
7
  # test since therefore there needs to be a current slot which is only during
9
8
  # block execution, stubbing it seems fairly brittle and dependent on
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::InternalApp do
4
4
  include_context "dsl app"
@@ -31,7 +31,7 @@ describe Shoes::InternalApp do
31
31
  end
32
32
 
33
33
  context "with custom opts" do
34
- let(:input_opts) { {:width => 150, :height => 2, :title => "Shoes::App Spec", :resizable => false} }
34
+ let(:input_opts) { {width: 150, height: 2, title: "Shoes::App Spec", resizable: false} }
35
35
 
36
36
  it "sets title", :qt do
37
37
  expect(subject.app_title).to eq input_opts[:title]
@@ -52,9 +52,9 @@ describe Shoes::InternalApp do
52
52
  end
53
53
 
54
54
  describe 'fullscreen' do
55
- let(:input_opts) { {:fullscreen => true} }
55
+ let(:input_opts) { {fullscreen: true} }
56
56
 
57
- it "sets fullscreen" do
57
+ it "sets fullscreen", :fullscreen do
58
58
  expect(subject.start_as_fullscreen?).to be_truthy
59
59
  end
60
60
  end
@@ -144,6 +144,5 @@ describe Shoes::InternalApp do
144
144
  end
145
145
  end
146
146
  end
147
-
148
147
  end
149
148
  end
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::Keypress do
4
4
  include_context "dsl app"
@@ -1,4 +1,4 @@
1
- require 'shoes/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Shoes::Keyrelease do
4
4
  include_context "dsl app"
@@ -8,5 +8,4 @@ describe Shoes::Keyrelease do
8
8
  it "should clear" do
9
9
  expect(keyrelease).to respond_to(:remove)
10
10
  end
11
-
12
11
  end