Spork support added
This commit is contained in:
parent
90db28d6d0
commit
5949e30243
2
Gemfile
2
Gemfile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue