require "spec_helper" describe OpenXml::DrawingML::Elements::PictureLocks do include ElementTestMacros it_should_use tag: :picLocks, name: "picture_locks" for_attribute(:hide_adjust_handles) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_arrowhead_changes) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_aspect_ratio_changes) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_shape_type_changes) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_cropping) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_editing_points) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_grouping) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_moving) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_resizing) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_rotation) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end for_attribute(:disallow_selection) do with_value(true) do it_should_assign_successfully it_should_output "" end with_value(:not_a_boolean) do it_should_raise_an_exception end end end