When I check the status of the response, it is correct in both, Rails 5.2 
and 6.1.5 version - 404.

On Tuesday, 24 May 2022 at 09:56:13 UTC+2 belgoros wrote:

> I have a controller spec passing in Rails 5.2 but failing in Rails 6.1.5:
>
> ```
> expect(response).to render_template(file: "#{Rails.root}/public/404.html")
> ```
> What can be different between 2 Rails versions?
>
> The error I get:
>
> ```
>
> Failure/Error: expect(response).to render_template(file: *"*
> #{Rails.root}/public/404.html*"*)
>
>        Expected [] to include "/Users/XXX/my_rails_app/public/404.html".
>
> ```
>
> Used spec-rails version: 4.0.2.
>
> Any ideas?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/395178c3-e0b6-4150-a568-8b3dc3998a4cn%40googlegroups.com.

Reply via email to