Sha256: 1411060cc550648851aa6a4ba3665923ce9458b3d09c58531eea6d5d8b190003

Contents?: true

Size: 400 Bytes

Versions: 7

Compression:

Stored size: 400 Bytes

Contents

shared_examples_for "flow DSL method" do
  let(:flow) {dsl.flow}

  it "creates a Shoes::Flow" do
    expect(flow).to be_an_instance_of(Shoes::Flow)
  end

  it 'reports an instance of Shoes::App when asked for its app' do
    expect(flow.app.class).to eq Shoes::App
  end

  it 'reports an object that responds to stack when asked for its app' do
    expect(flow.app).to respond_to :stack
  end
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
shoes-core-4.0.0.pre6 spec/shoes/shared_examples/dsl/flow.rb
shoes-core-4.0.0.pre5 spec/shoes/shared_examples/dsl/flow.rb
shoes-core-4.0.0.pre4 spec/shoes/shared_examples/dsl/flow.rb
shoes-core-4.0.0.pre3 spec/shoes/shared_examples/dsl/flow.rb
shoes-swt-4.0.0.pre2 spec/shoes/shared_examples/dsl/flow.rb
shoes-dsl-4.0.0.pre2 spec/shoes/shared_examples/dsl/flow.rb
shoes-4.0.0.pre1 spec/shoes/shared_examples/dsl/flow.rb