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:- Automated Tests with Guard

Then initialize Guard so that it works with RSpec:

$ bundle exec guard init rspec
   Writing new Guardfile to /Users/mhartl/rails projects/sample app/Guardfile
   rspec guard added to Guardfile, feel free to edit it

 

 Now edit the resulting Guardfile so that Guard will run the right tests when the integration tests and views are updated (Listing 3.34).

 

guard   'rspec', :version => 2, :all after pass =>  false do

 

  ensures that Guard doesn’t run all the tests after a failing test passes (to speed up the Red-Green-Refactor cycle).

           We can now start guard as follows:

$ bundle exec guard

To eliminate the need to prefix the command with bundle exec, re-follow the steps in Section 3.6.1  

 
 
 
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)