Sha256: b143393af372f994486af2589e80fda213218c25a2cc3850f1615442a55a3382

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

shared_examples 'clickable backend' do
  describe 'interaction with the swt app object' do
    it 'adds a listener for the MouseDown event when click is called' do
      subject.click Proc.new {}
      expect(click_listener).to have_received(:add_click_listener).at_least(1)
    end

    it 'adds a listener for the MouseUp event when release is called' do
      subject.release Proc.new {}
      expect(click_listener).to have_received(:add_release_listener).at_least(1)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre6 spec/shoes/swt/shared_examples/clickable.rb
shoes-swt-4.0.0.pre5 spec/shoes/swt/shared_examples/clickable.rb
shoes-swt-4.0.0.pre4 spec/shoes/swt/shared_examples/clickable.rb
shoes-swt-4.0.0.pre3 spec/shoes/swt/shared_examples/clickable.rb