Sha256: 2333eaa337dba2dccbca62906e98eaafb0302502f7e0cf503ef2ca3a4e1f5c47
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'swt_shoes/spec_helper' describe Shoes::Swt::Flow do include_context "swt app" let(:dsl) { double('dsl', app: shoes_app).as_null_object } let(:real) { double('real', disposed?: false) } let(:parent_real) { double('parent_real', :get_layout => "ok") } subject { Shoes::Swt::Flow.new(dsl, parent) } it_behaves_like "togglable" describe "#initialize" do before do parent.stub(:real) { parent_real } parent_real.stub(:get_layout){double(top_slot: true)} end it "sets readers" do expect(subject.parent).to eq parent expect(subject.dsl).to eq dsl expect(subject.real).to eq parent_real end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre1 | spec/swt_shoes/flow_spec.rb |