Skip to content

Commit

Permalink
Construct capybara server with webrick
Browse files Browse the repository at this point in the history
  • Loading branch information
cilim committed Sep 7, 2018
1 parent c2227eb commit 729cabe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/spec_helper.rb
@@ -1,12 +1,13 @@
ENV["RAILS_ENV"] = 'test'
require File.expand_path("../dummy/config/environment.rb", __FILE__)
ENV['RAILS_ENV'] = 'test'
require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rspec/rails'
require 'capybara/rspec'
require 'capybara/poltergeist'
require 'tempfile'
require 'pry'

Capybara.javascript_driver = :poltergeist
Capybara.server = :webrick

Dir["#{File.dirname(__FILE__)}/factories/**/*.rb"].each { |f| require f }

Expand Down

0 comments on commit 729cabe

Please sign in to comment.