Ruby On Rails Classroom image

Neha  Jaggi / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3|Last
Lessons:-Signin Tests

Combining the title and flash tests gives the code in Listing 8.5. As we’ll see, these tests miss an important subtlety, which we’ll address in Section 8.1.5.

 

 

Having written tests for signin failure, we now turn to signin success. The changes we’ll test for are the rendering of the user’s profile page (as determined by the page title, which should be the user’s name), together with three planned changes to the site navigation:

1. The appearance of a link to the profile page
2. The appearance of a ‘‘Sign out’’ link
3. The disappearance of the ‘‘Sign in’’ link

 

 

(We’ll defer the test for the ‘‘Settings’’ link to Section 9.1 and for the ‘‘Users’’ link to Section 9.3.) A mockup of these changes appears in Figure 8.3.2 Note that the signout and profile links appear in a dropdown ‘‘Account’’ menu; in Section 8.2.4, we’ll see how to make such a menu with Bootstrap.

          The test code for signin success appears in Listing 8.6

 
 
 
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)