1) CustomWizard::Action updates a profile
Failure/Error: raise BlockedSerializationError.new(message)
ActiveRecordSerializationSafety::BlockedSerializationError:
Serializing ActiveRecord models (Upload) without specifying fields is not allowed. Use a Serializer, or pass the :only option to #serializable_hash. More info: https://meta.discourse.org/t/-/314495
# ./lib/freedom_patches/active_record_disable_serialization.rb:15:in `serializable_hash'
# ./plugins/discourse-custom-wizard/spec/components/custom_wizard/action_spec.rb:176:in `block (2 levels) in <main>'
# ./spec/rails_helper.rb:513:in `block (3 levels) in <top (required)>'
# ./spec/rails_helper.rb:503:in `block (2 levels) in <top (required)>'
# ./spec/rails_helper.rb:460:in `block (2 levels) in <top (required)>'
2) CustomWizard::Wizard with subscription and restart upon revisit returns to step 1 if option to clear submissions on each visit is set
Failure/Error: raise BlockedSerializationError.new(message)
ActiveRecordSerializationSafety::BlockedSerializationError:
Serializing ActiveRecord models (User) without specifying fields is not allowed. Use a Serializer, or pass the :only option to #serializable_hash. More info: https://meta.discourse.org/t/-/314495
# ./lib/freedom_patches/active_record_disable_serialization.rb:15:in `serializable_hash'
# ./plugins/discourse-custom-wizard/spec/components/custom_wizard/wizard_spec.rb:233:in `block (3 levels) in <main>'
# ./spec/rails_helper.rb:513:in `block (3 levels) in <top (required)>'
# ./spec/rails_helper.rb:503:in `block (2 levels) in <top (required)>'
# ./spec/rails_helper.rb:460:in `block (2 levels) in <top (required)>'