Sha256: ff73d6e8241f13dd507fb76c658c7387ddee591e62026713a815e5e69ecfa7a7
Contents?: true
Size: 876 Bytes
Versions: 2
Compression:
Stored size: 876 Bytes
Contents
require 'spec_helper' describe Shoes::Swt::Check do include_context "swt app" let(:text) { "TEXT" } let(:dsl) { double('dsl', :app => shoes_app, :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: []) } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoes-swt-4.0.0.pre6 | spec/shoes/swt/check_spec.rb |
shoes-swt-4.0.0.pre5 | spec/shoes/swt/check_spec.rb |