I am trying to run tests for a single plugin using
bundle exec rake plugin:spec["discourse-details"]
But its failing with the error
An error occurred while loading ./plugins/discourse-presence/spec/presence_manager_spec.rb. Failure/Error: UserOption.create(user_id: id) NoMethodError: undefined method `text_size_key' for #<UserOption:0x00007f84ddd6da80> Did you mean? text_size text_size= # ./app/models/user.rb:1222:in `create_user_option' # (eval):17:in `block (2 levels) in run_file' # ./spec/rails_helper.rb:65:in `<top (required)>' # ./plugins/discourse-presence/spec/presence_manager_spec.rb:1:in `require' # ./plugins/discourse-presence/spec/presence_manager_spec.rb:1:in `<top (required)>'
This persists for every plugin I tried. My local discourse instance is in the latest version