spec/swing/j_frame_spec.rb in swing-0.1.4 vs spec/swing/j_frame_spec.rb in swing-0.1.5

- old
+ new

@@ -1,17 +1,20 @@ require 'spec_helper' require 'swing/shared' describe Swing::JFrame do - context 'creation' do - let(:new_args) { ['Text'] } + context 'creating' do + after(:each) {@frame.dispose if @frame} + let(:new_args) { ['Frame'] } it_behaves_like 'enhanced awt component' - it 'is possible to create frame' do - f = Swing::JFrame.new "Swing GUI", + it 'is possible to create Frame with options' do + @frame = Swing::JFrame.new "Swing GUI", :layout => Awt::FlowLayout.new(Awt::FlowLayout::LEFT), :size => [1100, 1200] end + + end end