mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Replace phantomjs with capybara-webkit for headless testing
This commit is contained in:
parent
0890251eff
commit
42a6267fc0
4 changed files with 14 additions and 17 deletions
|
@ -1,8 +1,8 @@
|
||||||
FROM ruby:2.2
|
FROM ruby:2.2
|
||||||
RUN apt-get update && apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy npm
|
RUN apt-get update && \
|
||||||
|
apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy npm \
|
||||||
RUN npm install phantomjs-prebuilt
|
libxml2-dev libxslt1-dev pkg-config \
|
||||||
RUN ln -sf /node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /usr/local/bin/
|
libqt4-webkit libqt4-dev xvfb
|
||||||
|
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ WORKDIR /tmp
|
||||||
|
|
||||||
COPY Gemfile Gemfile
|
COPY Gemfile Gemfile
|
||||||
COPY Gemfile.lock Gemfile.lock
|
COPY Gemfile.lock Gemfile.lock
|
||||||
|
RUN bundle config build.nokogiri --use-system-libraries
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
||||||
ADD . /app
|
ADD . /app
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -64,7 +64,7 @@ group :test do
|
||||||
gem 'test_after_commit' # TODO remove when moving to rails 5
|
gem 'test_after_commit' # TODO remove when moving to rails 5
|
||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
gem 'coveralls', require: false
|
gem 'coveralls', require: false
|
||||||
gem 'poltergeist'
|
gem 'capybara-webkit'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
|
|
17
Gemfile.lock
17
Gemfile.lock
|
@ -47,7 +47,9 @@ GEM
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
rack-test (>= 0.5.4)
|
rack-test (>= 0.5.4)
|
||||||
xpath (~> 2.0)
|
xpath (~> 2.0)
|
||||||
cliver (0.3.2)
|
capybara-webkit (1.11.1)
|
||||||
|
capybara (>= 2.3.0, < 2.8.0)
|
||||||
|
json
|
||||||
coderay (1.1.0)
|
coderay (1.1.0)
|
||||||
coffee-rails (4.1.0)
|
coffee-rails (4.1.0)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
|
@ -155,11 +157,6 @@ GEM
|
||||||
faraday
|
faraday
|
||||||
multi_json
|
multi_json
|
||||||
omniauth (~> 1.0)
|
omniauth (~> 1.0)
|
||||||
poltergeist (1.9.0)
|
|
||||||
capybara (~> 2.1)
|
|
||||||
cliver (~> 0.3.1)
|
|
||||||
multi_json (~> 1.0)
|
|
||||||
websocket-driver (>= 0.2.0)
|
|
||||||
pry (0.10.1)
|
pry (0.10.1)
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
method_source (~> 0.8.1)
|
method_source (~> 0.8.1)
|
||||||
|
@ -290,9 +287,6 @@ GEM
|
||||||
validate_url (1.0.2)
|
validate_url (1.0.2)
|
||||||
activemodel (>= 3.0.0)
|
activemodel (>= 3.0.0)
|
||||||
addressable
|
addressable
|
||||||
websocket-driver (0.6.3)
|
|
||||||
websocket-extensions (>= 0.1.0)
|
|
||||||
websocket-extensions (0.1.2)
|
|
||||||
win32console (1.3.2)
|
win32console (1.3.2)
|
||||||
xpath (2.0.0)
|
xpath (2.0.0)
|
||||||
nokogiri (~> 1.3)
|
nokogiri (~> 1.3)
|
||||||
|
@ -304,6 +298,7 @@ PLATFORMS
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
awesome_print
|
awesome_print
|
||||||
capybara
|
capybara
|
||||||
|
capybara-webkit
|
||||||
coffee-rails
|
coffee-rails
|
||||||
coveralls
|
coveralls
|
||||||
database_cleaner
|
database_cleaner
|
||||||
|
@ -320,7 +315,6 @@ DEPENDENCIES
|
||||||
launchy
|
launchy
|
||||||
omniauth
|
omniauth
|
||||||
omniauth-browserid
|
omniauth-browserid
|
||||||
poltergeist
|
|
||||||
pry
|
pry
|
||||||
pry-rails
|
pry-rails
|
||||||
quiet_assets
|
quiet_assets
|
||||||
|
@ -340,3 +334,6 @@ DEPENDENCIES
|
||||||
tzinfo-data
|
tzinfo-data
|
||||||
uglifier
|
uglifier
|
||||||
validate_url
|
validate_url
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.11.2
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
require 'capybara/poltergeist'
|
Capybara.javascript_driver = :webkit
|
||||||
Capybara.javascript_driver = :poltergeist
|
|
||||||
|
|
Loading…
Reference in a new issue