spec/shoes/swt/shape_spec.rb in shoes-swt-4.0.0.pre4 vs spec/shoes/swt/shape_spec.rb in shoes-swt-4.0.0.pre5
- old
+ new
@@ -1,12 +1,12 @@
-require 'shoes/swt/spec_helper'
+require 'spec_helper'
describe Shoes::Swt::Shape do
include_context "swt app"
let(:dsl) { instance_double("Shoes::Shape", hidden: false,
- needs_rotate?: false,style: {}).as_null_object }
+ needs_rotate?: false,style: {}).as_null_object }
subject { Shoes::Swt::Shape.new dsl, swt_app }
shared_examples_for "Swt::Shape" do
let(:ancestors) { subject.class.ancestors.map(&:name) }
@@ -63,10 +63,9 @@
allow(dsl).to receive(:element_left) { 20 }
allow(dsl).to receive(:element_top) { 30 }
expect(transform).to receive(:translate).with(20, 30)
subject.update_position
end
-
end
describe "painter" do
include_context "painter context"