spec/ios/autoresizing_helper_spec.rb in motion-kit-0.14.0 vs spec/ios/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 == UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin end + it 'should support :fill_width' do + mask = nil + @layout.context(@view) do + mask = @layout.autoresizing_mask :fill_width + end + mask.should == UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin + 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 == UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleLeftMargin + end + + it 'should support :fill_height' do + mask = nil + @layout.context(@view) do + mask = @layout.autoresizing_mask :fill_height + end + mask.should == UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin end it 'should support :pin_to_top_left' do mask = nil @layout.context(@view) do