spec/shoes/swt/flow_spec.rb in shoes-swt-4.0.0.pre4 vs spec/shoes/swt/flow_spec.rb in shoes-swt-4.0.0.pre5
- old
+ new
@@ -1,14 +1,14 @@
-require 'shoes/swt/spec_helper'
+require 'spec_helper'
describe Shoes::Swt::Flow do
include_context "swt app"
let(:dsl) { double('dsl', app: shoes_app,
- pass_coordinates?: true).as_null_object }
+ pass_coordinates?: true).as_null_object }
let(:real) { double('real', disposed?: false) }
- let(:parent_real) { double('parent_real', :get_layout => "ok") }
+ let(:parent_real) { double('parent_real', get_layout: "ok") }
subject { Shoes::Swt::Flow.new(dsl, parent) }
# it does not use toggle anymore and hides each element individually
# which means that each element takes care of what this spec specs,
@@ -22,10 +22,10 @@
end
describe "#initialize" do
before do
allow(parent).to receive(:real) { parent_real }
- allow(parent_real).to receive(:get_layout){double(top_slot: true)}
+ allow(parent_real).to receive(:get_layout) {double(top_slot: true)}
end
it "sets readers" do
expect(subject.parent).to eq parent
expect(subject.dsl).to eq dsl