spec/osx/autoresizing_helper_spec.rb in motion-kit-0.14.0 vs spec/osx/autoresizing_helper_spec.rb in motion-kit-0.14.1

- old
+ new

@@ -123,10 +123,18 @@ mask = @layout.autoresizing_mask :fill_bottom end mask.should == NSViewWidthSizable | NSViewMaxYMargin end + it 'should support :fill_width' do + mask = nil + @layout.context(@view) do + mask = @layout.autoresizing_mask :fill_width + end + mask.should == NSViewWidthSizable | NSViewMinYMargin | NSViewMaxYMargin + end + it 'should support :fill_left' do mask = nil @layout.context(@view) do mask = @layout.autoresizing_mask :fill_left end @@ -137,9 +145,17 @@ mask = nil @layout.context(@view) do mask = @layout.autoresizing_mask :fill_right end mask.should == NSViewHeightSizable | NSViewMinXMargin + end + + it 'should support :fill_height' do + mask = nil + @layout.context(@view) do + mask = @layout.autoresizing_mask :fill_height + end + mask.should == NSViewHeightSizable | NSViewMinXMargin | NSViewMaxXMargin end it 'should support :pin_to_top_left' do mask = nil @layout.context(@view) do