docbrown/spec/forms
Daniel Uber 1d26485c36
Clear changes to settings after checking form saves them (#15746)
* Clear the cached community name before loading new page

When the creator settings form had been run before the create new page
spec, the community name would be changed from the default
"DEV(local)" to "Climbing Life". Since the application helper can
memoize this value - and the database will not - ensure these are in
sync by clearing the settings cache before requesting the page (which
will be prefilled based on the setting).

This "fix" should probably be moved into the test introducing the
change, rather than the one impacted by it.

* Move clearing the settings cache closer to the change

Rather than clearing the cache where we were impacted, clear
immediately after the save spec completes.
2021-12-14 08:39:14 -06:00
..
creator_settings_form_spec.rb Clear changes to settings after checking form saves them (#15746) 2021-12-14 08:39:14 -06:00