Skip to content

Commit

Permalink
Goodbye poltergeist and hello selenium-webdriver
Browse files Browse the repository at this point in the history
  • Loading branch information
shimbaco committed Jul 15, 2018
1 parent 1fe467f commit d3813cc
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 45 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -115,9 +115,10 @@ end

group :test do
gem "capybara"
gem "chromedriver-helper"
gem "database_rewinder"
gem "factory_bot_rails"
gem "poltergeist"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "timecop"
end
Expand Down
20 changes: 14 additions & 6 deletions Gemfile.lock
Expand Up @@ -72,6 +72,8 @@ GEM
annotate (2.7.4)
activerecord (>= 3.2, < 6.0)
rake (>= 10.4, < 13.0)
archive-zip (0.11.0)
io-like (~> 0.3.0)
arel (9.0.0)
ast (2.4.0)
awesome_print (1.8.0)
Expand Down Expand Up @@ -121,11 +123,15 @@ GEM
rack (>= 1.6.0)
rack-test (>= 0.6.3)
xpath (~> 3.1)
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
chromedriver-helper (1.2.0)
archive-zip (~> 0.10)
nokogiri (~> 1.8)
chunky_png (1.3.10)
cld (0.7.0)
ffi
climate_control (0.2.0)
cliver (0.3.2)
cocaine (0.6.0)
terrapin (= 0.6.0)
coderay (1.1.2)
Expand Down Expand Up @@ -264,6 +270,7 @@ GEM
imgix (~> 1.1, >= 1.1.0)
impressionist (1.6.1)
nokogiri (~> 1)
io-like (0.3.0)
jaro_winkler (1.5.1)
jb (0.5.0)
multi_json
Expand Down Expand Up @@ -380,10 +387,6 @@ GEM
parser (2.5.1.2)
ast (~> 2.4.0)
pg (1.0.0)
poltergeist (1.18.1)
capybara (>= 2.1, < 4)
cliver (~> 0.3.1)
websocket-driver (>= 0.2.0)
polyamorous (1.3.3)
activerecord (>= 3.0)
powerpack (0.1.2)
Expand Down Expand Up @@ -497,6 +500,7 @@ GEM
ruby_dep (1.5.0)
ruby_identicon (0.0.5)
chunky_png (~> 1.3.5)
rubyzip (1.2.1)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
Expand All @@ -505,6 +509,9 @@ GEM
scss_lint (0.57.0)
rake (>= 0.9, < 13)
sass (~> 3.5.5)
selenium-webdriver (3.13.0)
childprocess (~> 0.5)
rubyzip (~> 1.2)
sentry-raven (2.7.4)
faraday (>= 0.7.6, < 1.0)
simple_oauth (0.3.1)
Expand Down Expand Up @@ -612,6 +619,7 @@ DEPENDENCIES
bullet
by_star
capybara
chromedriver-helper
cld
commonmarker
counter_culture
Expand Down Expand Up @@ -663,7 +671,6 @@ DEPENDENCIES
omniauth-twitter
paperclip
pg
poltergeist
pry
pry-alias
pry-byebug
Expand All @@ -686,6 +693,7 @@ DEPENDENCIES
rubocop
ruby_identicon
scss_lint
selenium-webdriver
sentry-raven
simplecov
sitemap_generator
Expand Down
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -16,8 +16,7 @@ To run Annict on a local machine, you need to have the following dependencies in
* Ruby 2.5
* PostgreSQL 10.4
* ImageMagick
* PhantomJS
* For tests
* ChromeDriver

#### Running the app

Expand Down
5 changes: 4 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -7,7 +7,6 @@

require File.expand_path("../../config/environment", __FILE__)
require "rspec/rails"
require "capybara/poltergeist"
require "capybara/rails"
require "capybara/rspec"

Expand Down Expand Up @@ -48,4 +47,8 @@
# the seed, which is printed after each run.
# --seed 1234
config.order = "random"

config.before(:each, type: :system) do
driven_by :selenium_chrome_headless
end
end
35 changes: 0 additions & 35 deletions spec/support/capybara.rb

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit d3813cc

Please sign in to comment.