Spork support added

This commit is contained in:
Andrew8xx8 2013-03-26 13:13:30 +04:00
parent 90db28d6d0
commit 5949e30243
4 changed files with 57 additions and 38 deletions

2
.rspec
View file

@ -1 +1 @@
--colour
--colour --drb

View file

@ -173,6 +173,8 @@ group :development, :test do
# PhantomJS driver for Capybara
gem 'poltergeist', '1.1.0'
gem 'spork', '~> 1.0rc'
end
group :test do

View file

@ -447,6 +447,7 @@ GEM
capybara (~> 2.0.0)
railties (>= 3)
spinach (>= 0.4)
spork (1.0.0rc3)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
@ -574,6 +575,7 @@ DEPENDENCIES
six
slim
spinach-rails (= 0.2.0)
spork (~> 1.0rc)
stamp
state_machine
test_after_commit

View file

@ -1,3 +1,7 @@
require 'rubygems'
require 'spork'
Spork.prefork do
require 'simplecov' unless ENV['CI']
if ENV['TRAVIS']
@ -15,6 +19,11 @@ require 'webmock/rspec'
require 'email_spec'
require 'sidekiq/testing/inline'
require 'capybara/poltergeist'
# Loading more in this block will cause your tests to run faster. However,
# if you change any configuration or code from libraries loaded here, you'll
# need to restart spork for it take effect.
Capybara.javascript_driver = :poltergeist
Capybara.default_wait_time = 10
@ -45,3 +54,9 @@ RSpec.configure do |config|
FileUtils.mkdir_p temp_repos_path
end
end
end
Spork.each_run do
# This code will be run each time you run your specs.
end