post disapprovals: fix tests and API create action.
* Fix tests. * Fix create action in API (couldn't redirect to show action). * Clean up user initialization.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
FactoryBot.define do
|
||||
factory(:post_disapproval) do
|
||||
user
|
||||
reason { %w(breaks_rules poor_quality disinterest).sample }
|
||||
message { FFaker::Lorem.sentence }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user