Adding export: true on routes makes tests to fail. #25
-
Basically I follow what you have on the documentation but it breaks my tests. I add the export property on my routes.rb. The route generation goes fine.
but on my tests
This is the error:
I did not create an issue because I don't know if there is something that I miss or It's a bug. I saw on the rails documentation that the route will have a key with :export and value of true and this will be mandatory. What do you think? Modifying the test to this, it makes it green
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi Humberto! Thanks for reporting, this is indeed a bug. As you mentioned, using I've released 2.0.5 to prevent this behavior. |
Beta Was this translation helpful? Give feedback.
-
Hi Máximo, I updated the gem but I'm still having the same error. :( |
Beta Was this translation helpful? Give feedback.
Hi Humberto! Thanks for reporting, this is indeed a bug.
As you mentioned, using
:export
in the route makes it a required default, which doesn't affect how the route is processed but it does affect controller specs.I've released 2.0.5 to prevent this behavior.
Please upgrade and let me know how it goes 😃 @hbarrientosg