docbrown/spec/requests/user
Julianna Tetreault d7b3b770e7
Refactor JSON-LD Within user_show_spec to Improve Testing (#7672)
* Refactor user_show_spec to check for exact JSON-LD data to improve testing
  * Extracts data out into factory objects to shorten # of lines in test
  * Extracts JSON-LD into a parsed object for more precise testing
  * Shortens test to be within the 15 line rubocop limit
  * Resolves rubocop multi-line errors

* Refactor user.update_columns to be a single method

* Add :with_all_info trait to users factory
  * Adds trait that holds all necessary info for user JSON-LD
  * Removes user.update_columns method from the user_show_spec
  * Adds the :with_all_info trait to the user in the spec

* Wrap test in rubocop:disable to resolve ExampleLength errors
  * Removes let blocks that once held extracted code
  * Adds code back to the data structure as inline code
  * Resolves even more rubocop errors... hopefully
2020-05-04 15:10:51 -06:00
..
user_destroy_spec.rb Settings style updates: Crayons! (#7393) 2020-04-22 19:18:19 +02:00
user_organization_spec.rb [deploy] RateLimit Refactor: Consolidate Logic for Checking a Limit and Raising an Error (#7636) 2020-05-01 13:31:44 -05:00
user_profile_spec.rb Do not render or link to empty rss feeds (#6429) [deploy] 2020-03-03 21:37:51 -05:00
user_settings_spec.rb Fix showing "Remove OAuth" in settings with disabled identities (#7665) 2020-05-04 20:00:43 +02:00
user_show_spec.rb Refactor JSON-LD Within user_show_spec to Improve Testing (#7672) 2020-05-04 15:10:51 -06:00
user_suggestions_spec.rb Allow admins to configure default users to follow during onboarding (#7637) [deploy] 2020-05-01 14:03:48 -07:00