Je cherche à utiliser spring avec rspec et guard sur un projet Rails 3.2.16.
Après avoir installé spring et spring-commands-rspec, j'ai créé les binstubs avec :
> bundle exec spring binstub --all
* bin/rake: spring inséré
* bin/rspec: spring inséré
* bin/rails: spring inséré
Maintenant, en essayant d'exécuter spec avec spring échoue (les chemins des gems et le chemin du projet sont remplacés pour plus de lisibilité) :
> bin/rspec spec/
Version: 1.1.0
Usage: spring COMMANDE [ARGS]
Commandes pour spring lui-même :
binstub Générer des binstubs basés sur spring. Utilisez --all pour générer un binstub pour toutes les commandes connues.
help Afficher les commandes disponibles.
status Afficher l'état actuel.
stop Arrêter tous les processus spring pour ce projet.
Commandes pour votre application :
rails Exécuter une commande rails. Les sous-commandes suivantes utiliseront spring : console, runner, generate, destroy.
rake Exécute la commande rake
rspec Exécute la commande rspec
rspec binstub
Aucun serveur DRb n'est en cours d'exécution. Exécution en processus local à la place ...
gemspath/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load': impossible de charger le fichier -- [PROJECT_PATH]/rspec (LoadError)
from gemspath/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
from gemspath/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
from gemspath/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from gemspath/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
from gemspath/rspec-core-2.14.7/lib/rspec/core/runner.rb:77:in `rescue in run'
from gemspath/rspec-core-2.14.7/lib/rspec/core/runner.rb:73:in `run'
from gemspath/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
Autre essai :
> spring rspec
Affiche uniquement l'aide de spring
La même chose pour
> spring rspec spec/
Voici le rspec binstub (bin/rspec) :
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
require 'bundler/setup'
load Gem.bin_path('rspec', 'rspec')
Une idée ?