Sha256: 87d2eed4d33efaf4d7ecef92eb3acf4037362f7ed4e395cfde5495ac0eed82a3

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

shared_examples "buttons" do
  it "calls set_focus when focus is called" do
    expect(real).to receive(:set_focus)
    subject.focus
  end
end

# Check and Radio
shared_examples "selectable" do
  it "calls get_selection when checked? is called" do
    expect(real).to receive(:get_selection)
    subject.checked?
  end

  it "calls set_selection when checked= is called" do
    expect(real).to receive(:set_selection).with(true)
    subject.checked = true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre7 spec/shoes/swt/shared_examples/button.rb
shoes-swt-4.0.0.pre6 spec/shoes/swt/shared_examples/button.rb
shoes-swt-4.0.0.pre5 spec/shoes/swt/shared_examples/button.rb