Ruby On Rails Classroom image

Neha  Jaggi / 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
Neha  Jaggi

Skills    Ruby On Rails

Qualifications :- High School - , College/University - Graphic Era Hill University, Dehradun, College/University - ,
Location :-Dehradun,Dehradun,UTTARAKHAND,India
Description:-

Experienced Software Developer with a demonstrated history of working in the Information Technology and services industry. Skilled in Web Technologies (Ruby on Rails, PostgreSQL, php, Laravel and AJAX). 


Explore
 

  Students (0)