Sha256: 77efee6a323a901cbe21f645c134a551154b3a74b6424a16a805aadfb772f466

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'
require 'swing/shared'

describe Swing::JCheckBox do

  context 'creation' do
    let(:new_args) { ['Text'] }

    it_behaves_like 'enhanced Awt::Component'
    it_behaves_like 'enhanced Swing::JComponent'

    it 'is possible to set :selected attribute' do
      box = Swing::JCheckBox.new 'Disconnect', :selected => true
      box.should be_selected
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
swing-0.1.16 spec/swing/j_check_box_spec.rb
swing-0.1.15 spec/swing/j_check_box_spec.rb
swing-0.1.14 spec/swing/j_check_box_spec.rb
swing-0.1.12 spec/swing/j_check_box_spec.rb
swing-0.1.10 spec/swing/j_check_box_spec.rb