Changeset [ba7ce6b90039e67cfea0a61314fe5c89b729a528] by Daniel O'Connor
January 20th, 2018 @ 12:01 AM
Refactoring to minimize current_user in model specs (#710)
-
Rely on factory
-
One less create, and avoid running multiple setups per expectation
-
Remove current_user and rely on factories
-
Rely on factories
-
Run once, not repeatedly
-
Rely on factory
-
Rely on factories, or explicitly define a current user for scenarios relating to that https://github.com/fatfreecrm/fat_free_crm/commit/ba7ce6b90039e67cf...
Committed by Daniel O'Connor
- M spec/models/entities/account_spec.rb
- M spec/models/entities/campaign_spec.rb
- M spec/models/entities/contact_spec.rb
- M spec/models/entities/lead_spec.rb
- M spec/models/polymorphic/task_spec.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby on Rails CRM platform for Web 2.0 and beyond