Ruby On Rails Classroom image

Neeraj  Amoli / 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
Neeraj  Amoli

Skills    Ruby On Rails

Qualifications :-
Location :-Dehradun,Dehradun,Uttrakhand,India
Description:-

I have 3 year experience as a Software Engineer. My Skilled are Android Development (Java), ROR Development .   


Explore
 

  Students (0)