aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--spec/spec_helper.rb3
2 files changed, 3 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 6ba6013..f8a173e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -11,6 +11,7 @@ gem 'mime-types', '1.25.1'
group :test do
gem 'refinerycms-testing', github: 'refinery/refinerycms'
+ gem 'poltergeist'
end
# Database Configuration
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 4b29712..bc10eff 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -19,7 +19,8 @@ RSpec.configure do |config|
end
# set javascript driver for capybara
-Capybara.javascript_driver = :selenium
+require 'capybara/poltergeist'
+Capybara.javascript_driver = :poltergeist
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories including factories.