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:
evazion
2020-02-19 15:20:39 -06:00
parent 0aa05a116f
commit f54470ddfb
5 changed files with 6 additions and 10 deletions

View File

@@ -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