Sha256: 62d3d80815a12ab80165e4a1f3e8d7cff6a8c424ffceca744726a4821bfc5073
Contents?: true
Size: 514 Bytes
Versions: 7
Compression:
Stored size: 514 Bytes
Contents
describe 'Constraints - activate/deactivate helpers' do before do @layout = MotionKit::Layout.new @constraint = nil @view = NSView.new end should 'should activate/deactivate constraints' do @layout.context(@view) do @layout.constraints do @constraint = @layout.height(10) end end @view.constraints.count.should == 1 @constraint.deactivate @view.constraints.count.should == 0 @constraint.activate @view.constraints.count.should == 1 end end
Version data entries
7 entries across 7 versions & 1 rubygems