diff --git a/Gemfile b/Gemfile index facfc0d..4bf3104 100644 --- a/Gemfile +++ b/Gemfile @@ -14,6 +14,7 @@ group :development, :test do gem 'byebug' # Call 'byebug' in code to stop execution and get a debugger console gem 'web-console', '~> 2.0' # Access IRB on error pages or by <%= console %> in views gem 'spring' # Spring background-runs app in dev for speed + gem 'spring-commands-rspec' gem 'rspec-rails', '~> 3.2' gem 'capybara' diff --git a/Gemfile.lock b/Gemfile.lock index 6689881..914daa8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -212,6 +212,8 @@ GEM activesupport (>= 3.0.0) slop (3.6.0) spring (1.2.0) + spring-commands-rspec (1.0.4) + spring (>= 0.9.1) sprockets (2.12.3) hike (~> 1.2) multi_json (~> 1.0) @@ -273,6 +275,7 @@ DEPENDENCIES selenium-webdriver shoulda-matchers spring + spring-commands-rspec sqlite3 turbolinks uglifier (>= 1.3.0) diff --git a/bin/rspec b/bin/rspec index 0c86b5c..5318d0c 100755 --- a/bin/rspec +++ b/bin/rspec @@ -1,4 +1,8 @@ #!/usr/bin/env ruby +begin + load File.expand_path("../spring", __FILE__) +rescue LoadError +end # # This file was generated by Bundler. #