Sha256: d8743cee15dde5b2dc23e5d620cdcc6ccd11bf74d69bd647f5ef2409dd5e0875
Contents?: true
Size: 671 Bytes
Versions: 7
Compression:
Stored size: 671 Bytes
Contents
require 'spec_helper' require 'awt/component' describe 'java.awt.Component' do context 'defining new methods' do [Swing::JButton, javax.swing.JButton, Swing::JLabel, Swing::Box].each do |klass| it "changes derived subclases #{klass}" do component = klass == Swing::Box ? klass.new(1) : klass.new('Test') component.should respond_to :attach_to component.should respond_to :post_process end end end context 'with Attributes extension' do it 'allows pure Java subclasses to accept options' do button = javax.swing.JButton.new 'Disconnect', :enabled => false button.should_not be_enabled end end end
Version data entries
7 entries across 7 versions & 1 rubygems