ruby - Rails view Rspec tests expectations not met -
I think PP views are messing around because the links which the tests are looking for are part of the real view Not, but for example, I have the following CPC code:
Description 'signups / new.html.' Do the first: Each template is to render: "signup / new", layout: eliminates "layout / application", does not display signup page on link request page.
The error I am getting is the error of "rendered.should_not has_link" ("mailing list", href: new_signup_path) to "request a new one", href: new_request_path That's got the "Include me in the mailing list" link. Still, I assure you that this is not the case with the local server.
What's going on in the scene is down (again all of this layout / App file, not signup / new):
& lt; nav class = "navbar navbar-inverse navbar-static-top" role = "navig Section ""> a class = "navbar-brand" href = " I am thinking in some way that the test is not repeating the statement / again, but it is not certain how to fix it.
puts a put page. It is possible. ("Request new", href: new_request_path)
I do not think your imagery is on the page as well.
Doing this
Displays the link to 'Signup page' on this 'Request page'. 'Leaves the page. The page is presented. Edit_index
edit the link: "Make a new request", href: new_request_path) rendered.should_not has_link ("Add me to mailing list", href: new_signup_path) P> Read the question again, my previous advice is not all useful, though it is a good thing to help with the puts page.body
test. I think maybe this is because you signup / New is providing, but this is not the path, so this is not the "current page" probably instead of a redirect Try _to.
Try Go to new_signups_path
or whatever your path is (check with rake routes
, where I had puts you could ( I think, but it depends on your other tests) can get rid of each:
Comments
Post a Comment