commit
58a1ed6dd3
4 changed files with 57 additions and 38 deletions
2
.rspec
2
.rspec
|
@ -1 +1 @@
|
||||||
--colour
|
--colour --drb
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -173,6 +173,8 @@ group :development, :test do
|
||||||
|
|
||||||
# PhantomJS driver for Capybara
|
# PhantomJS driver for Capybara
|
||||||
gem 'poltergeist', '1.1.0'
|
gem 'poltergeist', '1.1.0'
|
||||||
|
|
||||||
|
gem 'spork', '~> 1.0rc'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
|
|
@ -447,6 +447,7 @@ GEM
|
||||||
capybara (~> 2.0.0)
|
capybara (~> 2.0.0)
|
||||||
railties (>= 3)
|
railties (>= 3)
|
||||||
spinach (>= 0.4)
|
spinach (>= 0.4)
|
||||||
|
spork (1.0.0rc3)
|
||||||
sprockets (2.2.2)
|
sprockets (2.2.2)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
|
@ -574,6 +575,7 @@ DEPENDENCIES
|
||||||
six
|
six
|
||||||
slim
|
slim
|
||||||
spinach-rails (= 0.2.0)
|
spinach-rails (= 0.2.0)
|
||||||
|
spork (~> 1.0rc)
|
||||||
stamp
|
stamp
|
||||||
state_machine
|
state_machine
|
||||||
test_after_commit
|
test_after_commit
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
require 'rubygems'
|
||||||
|
require 'spork'
|
||||||
|
|
||||||
|
Spork.prefork do
|
||||||
require 'simplecov' unless ENV['CI']
|
require 'simplecov' unless ENV['CI']
|
||||||
|
|
||||||
if ENV['TRAVIS']
|
if ENV['TRAVIS']
|
||||||
|
@ -15,6 +19,11 @@ require 'webmock/rspec'
|
||||||
require 'email_spec'
|
require 'email_spec'
|
||||||
require 'sidekiq/testing/inline'
|
require 'sidekiq/testing/inline'
|
||||||
require 'capybara/poltergeist'
|
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.javascript_driver = :poltergeist
|
||||||
Capybara.default_wait_time = 10
|
Capybara.default_wait_time = 10
|
||||||
|
|
||||||
|
@ -45,3 +54,9 @@ RSpec.configure do |config|
|
||||||
FileUtils.mkdir_p temp_repos_path
|
FileUtils.mkdir_p temp_repos_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
Spork.each_run do
|
||||||
|
# This code will be run each time you run your specs.
|
||||||
|
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue