Sha256: 58d1c12796e9566e8d90b75772c6ebeaba77639679f98e1c632f41ea96f21be8
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' require 'swing/shared' describe Swing::JButton 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 :enabled attribute to false' do button = Swing::JButton.new 'Test', :enabled => false button.should_not be_enabled end it 'accepts action listener block' do button = Swing::JButton.new('Test') { @block_called = true} @block_called.should be_false button.do_click @block_called.should be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swing-0.1.16 | spec/swing/j_button_spec.rb |
swing-0.1.15 | spec/swing/j_button_spec.rb |