docbrown/spec/support
Daniel Uber afa214ac52
Require profile fields to belong to a group (#16390)
* Require profile fields to belong to a group

Remove the empty group dropdown from the group select tag

Remove the optional: true from the belongs_to validation (raise a
validation error on save if the group is not provided)

Update test to remove belongs_to's optional setting

* Update ProfileFields::Add spec to include profile field group

* update factory to ensure a non-empty profile field group

* Add required profile field group to seeded profile fields

Since profile field is required, create was failing (silently).

Add required field so these are available in e2e tests.

* Use factory `association` to create a profile field group

https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#explicit-definition

* provide required profile field group when posting data

* Fix one spec, drop another

Both of these scripts will be removed in the other branch (changing
the attribute name) - dropping the test here seems lower trouble than
modifying an out of data data update script to pass.

* skip test slated for removal

Similar to the last commit - this test exercises a script about to be
archived in the other branch.
2022-02-15 09:27:18 -06:00
..
fixtures Fix Github Liquid Tag from repositories with dot character (#16551) 2022-02-14 16:15:09 -05:00
initializers Remove "New Admin Member"-Related Code (#16475) 2022-02-10 06:42:56 -07:00
seeds Require profile fields to belong to a group (#16390) 2022-02-15 09:27:18 -06:00
shared_examples Remove "New Admin Member"-Related Code (#16475) 2022-02-10 06:42:56 -07:00
omniauth_helpers.rb Login with Google (#15986) 2022-01-13 10:25:52 -06:00
rpush_helpers.rb Adds validations to avoid creating unnecessary PNs (#14621) 2021-08-31 15:00:30 -06:00
runkit_tag_context.rb Fix Runkit tags not being activated when comment is added (#6767) 2020-05-15 14:27:46 +02:00
shared_context.rb [15-minute fix] Add ThrottledCall to DisplayAdEventsController (#12924) 2021-03-09 09:06:11 +07:00
sidekiq_test_helpers.rb Add implicit points to follows to improve feed relevancy (in all algorithms) (#11513) 2020-11-25 16:09:51 -05:00
within_block_is_expected.rb Improve ArticlesController's authorization (#466) 2018-06-21 14:18:32 -04:00