* Prepare factories and associations for Users::DeleteActivity specs * Altered user associations, delete the needed associations in Users::DeleteActivity * Moved and refined user deletion spec * Removed useless commented user associations * Refactored BackupData factory * Refactored ProfilePin factory * Refactored Reaction factory * Fixed specs: Keep default _type in factories or specify it in tests * Ok, notes shouldn't be deleted on user deletion * Fixed creating reactable for specs * Specify commentable/commentable_type explicitly when creating data for tests * Fixed typo in the comments spec * Removed unnneeded space * Added aggregate_failures for testing user associations deletion * Keep feedback_messages while deleting user activities
7 lines
191 B
Ruby
7 lines
191 B
Ruby
FactoryBot.define do
|
|
factory :doorkeeper_access_grant, class: "Doorkeeper::AccessGrant" do
|
|
application
|
|
expires_in { 600 }
|
|
redirect_uri { "urn:ietf:wg:oauth:2.0:oob" }
|
|
end
|
|
end
|