Ruby On Rails Classroom image

Pooja  Negi / Student / 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
Pooja   Negi

Skills    Ruby On Rails

Qualifications :- High School - SSN high school, College/University - HNBGU, College/University - SRHU,
Location :-Ranipokhari,Rishikesh,Uttarakhand,India
Description:- Student
Explore
 

  Students (0)