Sha256: 487425495847dfbcb1bc84bd04175fab6cac5c744bb99da46fd8f3e75bbda827

Contents?: true

Size: 386 Bytes

Versions: 3

Compression:

Stored size: 386 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 'tool tipped component'

    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

3 entries across 3 versions & 1 rubygems

Version Path
swing-0.1.8 spec/swing/j_check_box_spec.rb
swing-0.1.7 spec/swing/j_check_box_spec.rb
swing-0.1.5 spec/swing/j_check_box_spec.rb