Sha256: 2fc05fea646ad85f116222cc1d39a915676e604f4adc4db88f70078dcaf72c31

Contents?: true

Size: 973 Bytes

Versions: 1

Compression:

Stored size: 973 Bytes

Contents

# This is a common context for running Shoes::Swt specs.
#   - parent:    use for instantiating a Shoes::Swt object
#   - swt_app:   use for instantiating a Shoes::Swt object
#   - shoes_app: use for instantiating a Shoes DSL object
shared_context "swt app" do
  let(:swt_app_real) { double('swt app real', disposed?: false) }
  let(:swt_app) { double('swt app', real: swt_app_real, disposed?: false, 
                         add_paint_listener: true, remove_paint_listener: true,
                         add_clickable_element: true, add_listener: true,
                         flush: true, redraw: true) }
  let(:shoes_app) { double('shoes app', gui: swt_app, rotate: 0) }
  let(:parent) { double('parent', app: swt_app, add_child: true, real: true) }
  let(:parent_dsl) {double("parent dsl", add_child: true, contents: [],
                           gui: parent, x_dimension: double.as_null_object,
                           y_dimension: double.as_null_object)}
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre1 spec/swt_shoes/shared_examples/swt_app_context.rb