samedi 28 mars 2015

Rspec + Spring not working

I have recently started development in Rails. I am experiencing a problem with Spring.


I am using Spring with Rspec to speed up my tests. Although tests are running fine, it does not seem to be giving me the massive speed improvements that it usually does. I suspect that it is not working properly.


I am using ruby 2.2.0 and Rails 4.2


I followed the following procedure during installation:



  • Add gem 'spring' to gem file

  • bundle install

  • I 'springified' the executables using bundle exec spring binstub --all


using bin/spring status show me that spring is running:



Spring is running:

16641 spring server | autoclave | started 12 mins ago
16899 spring app | autoclave | started 10 mins ago | test mode


As I use rspec, I have tried the following command to run tests:


bundle exec bin/rspec , bundle exec rspec


The github documentation for spring suggests using the 'spring-commands-rspec' gem for using Spring with rspec.


I tried installating that gem and generating bin/rspec, but it has not made any difference.


Please help


Aucun commentaire:

Enregistrer un commentaire