Sha256: f2becac7535830db0af70e239bd3251e5b7776833b85e63493797dbf181ed809

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

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

    it 'is possible to set :enabled attribute to false' do
      button = Swing::JButton.new 'Disconnect', :enabled => false
      button.should_not be_enabled
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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