You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'User creates a new Plan' test will not pass unless an org exists within the db such that `org.name == Rails.application.config.default_funder_name`. However, we have `config.default_funder_name = Rails.application.secrets.default_funder_name` within `config/application.rb`. This secret is not read while executing the tests via our GitHub actions and the following error is encountered:
```
1) Plans User creates a new Plan
Failure/Error: @funding_org = create(:org, :funder, templates: 1, name: Rails.application.config.default_funder_name)
ActiveRecord::RecordInvalid:
Validation failed: Name can't be blank
# ./spec/features/plans_spec.rb:13:in `block (2 levels) in <top (required)>'
```
Thus, we are overriding/setting that value within the test itself.
0 commit comments