Ruby On Rails Classroom image

Anil  Bist / 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
Anil  Bist

Skills    Ruby On Rails

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)