- ## now set auth for the public data user
- basic_authorization(users(:public_user).email, "test")
+ content(private_used_node2.to_xml)
+ delete :delete, :params => { :id => private_used_node2.id }
+ assert_require_public_data "shouldn't be able to delete a node used in a relation (#{@response.body})"
+
+ ## now setup for the public data user
+ user = create(:user, :data_public => true)
+ changeset = create(:changeset, :user => user)
+ closed_changeset = create(:changeset, :closed, :user => user)
+ node = create(:node, :changeset => changeset)
+ basic_authorization user.email, "test"