← Back to Upcase

Rake is not running my tests when I use guard


(Lionel Ramos) #1

I’m using rails 4.0 and ruby 2.0.0p247.

My Gemfile includes:

group :test, :development do
	gem 'rspec-rails'
	gem 'capybara'
	gem 'guard-spork', github: 'elasticad/guard-spork', branch: 'uptodate-gem-versions'
	gem 'spork-rails', git: 'http://github.com/sporkrb/spork-rails.git'
end

group :test do
	gem 'bourne'
end

When I run guard I get: (seems like it may be starting several Sporks, How can I fix this?)

10:15:03 - INFO - Guard is using TerminalTitle to send notifications.
10:15:03 - INFO - Starting Spork for RSpec
Using RSpec, Rails
Preloading Rails environment
Faraday::Builder is now Faraday::RackBuilder.
Loading Spork.prefork block...
Spork is ready and listening on 8989!
10:15:07 - INFO - Spork server for RSpec successfully started

10:15:07 - INFO - Starting Spork for RSpec
Using RSpec, Rails
Preloading Rails environment
Faraday::Builder is now Faraday::RackBuilder.
Loading Spork.prefork block...
Spork is ready and listening on 8989!
10:15:11 - INFO - Spork server for RSpec successfully started

10:15:11 - INFO - Starting Spork for RSpec
Using RSpec, Rails
Preloading Rails environment
Faraday::Builder is now Faraday::RackBuilder.
Loading Spork.prefork block...
Spork is ready and listening on 8989!
10:15:15 - INFO - Spork server for RSpec successfully started

10:15:15 - INFO - Guard is now watching at '/Users/lionelramos/thoughtbot learn/hashtag'
[1] guard(main)> Running tests with args ["--color", "./spec/features/search_twitter_spec.rb", "./spec/features/view_homepage_spec.rb", "./spec/lib/fake_twitter_spec.rb", "./spec/models/searcher_spec.rb"]...
DEPRECATION: Rspec is deprecated. Use RSpec instead. Called from /Users/lionelramos/thoughtbot learn/hashtag/spec/support/fake_twitter.rb:1:in `<top (required)>'.
DEPRECATION: Rspec is deprecated. Use RSpec instead. Called from /Users/lionelramos/thoughtbot learn/hashtag/spec/support/searcher.rb:1:in `<top (required)>'.
Done.

When I run rake I get:

Faraday::Builder is now Faraday::RackBuilder.
/Users/lionelramos/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -S rspec ./spec/features/search_twitter_spec.rb ./spec/features/view_homepage_spec.rb ./spec/lib/fake_twitter_spec.rb ./spec/models/searcher_spec.rb
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.