Sha256: 8f8838a9f725f06b4b0fc5308da01d6f9cefc62a06b37ff5fd182c8bbb184713

Contents?: true

Size: 970 Bytes

Versions: 1

Compression:

Stored size: 970 Bytes

Contents

require 'spec_helper'

describe Shoes::Swt::Check do
  include_context "swt app"

  let(:text) { "TEXT" }

  let(:dsl) do
    double('dsl', app: shoes_app,
                  gui: real,
                  visible?: true,
                  left: 42,
                  top: 66,
                  element_left: 42,
                  element_top: 66,
                  width: 100,
                  :width= => true,
                  element_width: 100,
                  element_height: 200,
                  height: 200,
                  :height= => true,
                  blk: block,
                  contents: [])
  end

  let(:block) { proc {} }
  let(:real) { double('real').as_null_object }

  subject { Shoes::Swt::Check.new dsl, parent }

  before :each do
    allow(::Swt::Widgets::Button).to receive(:new) { real }
  end

  it_behaves_like "buttons"
  it_behaves_like "movable element"
  it_behaves_like "selectable"
  it_behaves_like "updating visibility"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre7 spec/shoes/swt/check_spec.rb