first, sorry for the bad english.
I have a test that represents a login form. after redirecting, when I check the message "successfully registered ..." then my page.body
'<h1>Not Found</h1>'
but this works fine in a manual browser test.
what should i do wrong?
It seems like one of your steps is being redirected in a way that you are not expecting.
Check the filters in front of the controller and application controller to determine if the I18n I / O filter will redirect your page.
-, :
And show me the page
, capybara, .
!
. , , rake db:test:prepare, , , . (I.e. Given there is a user named "Joe"...)
rake db:test:prepare
Given there is a user named "Joe"...
Source: https://habr.com/ru/post/1775720/More articles:A compiled EF request occasionally raises a SqlException - c #Android app. Can we reuse images while we work? - androidDuplicate JavaScript names. Is it really bad? - javascriptHow can I get the text of a hidden element in jQuery? - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1775719/can-a-subversion-repository-be-moved-but-its-mirror-remain-the-same&usg=ALkJrhge5_pYbolOWBnaOjGTsEoTQ_iNYgjQuery How to get the topmost container id? - jquerySet the first and last bindings in the list item of unordered lists - htmlHow to wrap a Ruby method call by including a module? - methodsWindows Azure site and ASP.NET MVC deployed on it? - asp.net-mvcHow to dynamically resolve JSP pages from an external source such as a database - dynamicAll Articles