Ruby On Rails Classroom image

prateek  darmwal / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3|
Lessons:- Requiring Signed-in Users

Unfortunately, in the process of getting the authorization tests from Listing 9.11 to pass, we’ve broken the tests in Listing 9.1. Code like

describe  "edit"  do
let(:user) { FactoryGirl.create ( : user ) }
before { visit edit user path(user) }
.
.
.

 

no longer works because visiting the edit user path requires a signed-in user. The solution is to sign in the user with the sign_in utility from Listing 9.6, as shown in Listing 9.13. 

 

At this point our test suite should be green:

bundle exec rspec spec/
 
 
 
image
prateek  darmwal

Skills    Ruby On Rails

Qualifications :- High School - S.K.M. Sn. Sec. School, Haldwani, College/University - Graphic Era Hill University, Bhimtal,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:- I like to explore new technologies. I have skills in ruby on rails, php5, cakephp, jquery, javascript, html/css, java, c & c++. I love coding
Explore
 

  Students (0)