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
Rspec ignores Controller Path #1767
Comments
@Prashant-Thorat I'm not sure what you're asking here. Could you format your code samples with ``` (three backticks). This will turn them into markdown code blocks so that we can understand what's going on. Thanks :) |
@samphippen
|
@Prashant-Thorat that error is raised when you don't have a matching route, take a look at your routes using |
i do have routes well define but my directory structure is something like
it works fine in browser request but fails when rspec test |
The error you've provided has nothing to do with physical file locations, it has to do with your url routes, in the browser the correct parameters are provided, in your test your missing some. |
case 1) -------------------------------------------- def new spec code require 'spec_helper' RSpec.describe ProductAdmins::UsersController, :type => :controller do
end
case 2)-----------------------------------------------------
|
I ran into something like this. I forked and wrote a spec for it, but couldn't get it to fail... Eventually stumbled on to this StackOverflow question which solved my problem. Seems like more of a problem with ruby namespaces and load order, not so much with rspec-rails. |
Closing as stale |
The text was updated successfully, but these errors were encountered: