spec/shoes/swt/link_segment_spec.rb in shoes-swt-4.0.0.pre4 vs spec/shoes/swt/link_segment_spec.rb in shoes-swt-4.0.0.pre5

- old
+ new

@@ -1,20 +1,19 @@ -require 'shoes/swt/spec_helper' +require 'spec_helper' describe Shoes::Swt::LinkSegment do let(:range) { (2..10) } let(:line_width) { 20 } let(:line_height) { 14 } let(:layout) { double('swt layout', width: line_width, line_count: 10) } let(:text_segment) { double('text segment', layout: layout, - element_left: 0, element_top: 0) } + element_left: 0, element_top: 0) } subject { Shoes::Swt::LinkSegment.new(text_segment, range) } before(:each) do 10.times {|i| stub_line_bounds(i)} end - # .................... context "empty link" do let(:range) { (0...0) }