Sha256: 5eb7ab76d3865f19f5c3fc5c9a67147470ab0e17777c7031a6be9ee87b0f253b

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

shared_examples_for "updating visibility" do
  it "triggers redrawing on the app" do
    with_redraws do
      expect(swt_app).to receive(:redraw)
      subject.update_visibility
    end
  end

  it "passes visibility to real object" do
    if subject.respond_to?(:gui) && subject.gui.respond_to?(:real)
      expect(subject.gui.real).to receive(:set_visible)
      subject.update_visibility
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre7 spec/shoes/swt/shared_examples/visibility.rb
shoes-swt-4.0.0.pre6 spec/shoes/swt/shared_examples/visibility.rb
shoes-swt-4.0.0.pre5 spec/shoes/swt/shared_examples/visibility.rb
shoes-swt-4.0.0.pre4 spec/shoes/swt/shared_examples/visibility.rb
shoes-swt-4.0.0.pre3 spec/shoes/swt/shared_examples/visibility.rb
shoes-swt-4.0.0.pre2 spec/swt_shoes/shared_examples/visibility.rb