Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecation notice from tests #49

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

ollietreend
Copy link
Contributor

The following deprecation notice was being shown when running the RSpec test suite:

Rails 7.1 has deprecated the singular fixture_path in favour of an array

We should set config.fixture_paths = [] instead of config.fixture_path.

However, we don't actually use ActiveRecord fixtures. We prefer to use FactoryBot. So I've fixed the deprecation, but then have commented out the line since it's not something we use.

If we need to enable it in the future, I've fixed the deprecation notice so we should be able to simply uncomment the line.

The following deprecation notice was being shown when running the RSpec
test suite:

```
Rails 7.1 has deprecated the singular fixture_path in favour of an array
```

We should set `config.fixture_paths = []` instead of
`config.fixture_path`.

However, we don't actually use ActiveRecord fixtures. We prefer to use
FactoryBot. So I've fixed the deprecation, but then have commented out
the line since it's not something we use.

If we need to enable it in the future, I've fixed the deprecation notice
so we should be able to simply uncomment the line.
@ollietreend ollietreend enabled auto-merge (rebase) December 21, 2023 16:43
@ollietreend ollietreend merged commit 034ae92 into main Dec 21, 2023
4 checks passed
@ollietreend ollietreend deleted the remove-deprecation-notice branch December 21, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants