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

Fix deprecation warning (template vs view in rspec-rails) #2008

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

pablobm
Copy link
Collaborator

@pablobm pablobm commented Jun 24, 2021

We are getting the following warning when running this example:

template is deprecated. Use view instead. Called from
PATH/spec/administrate/views/fields/has_one/_show_spec.rb:56:in `block
(3 levels) in <top (required)>'.

If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.

We are getting the following warning when running this example:

```
template is deprecated. Use view instead. Called from
PATH/spec/administrate/views/fields/has_one/_show_spec.rb:56:in `block
(3 levels) in <top (required)>'.

If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
```
@pablobm pablobm merged commit 0ce78ef into thoughtbot:main Jun 24, 2021
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.

1 participant