Skip to content

Commit e68ac38

Browse files
committed
Ready for writing integration tests requiring JS
1 parent f2eb81d commit e68ac38

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: "ruby:2.4"
1+
image: "ruby:2.4-stretch"
22

33
services:
44
- postgres:latest
@@ -10,7 +10,7 @@ variables:
1010
POSTGRES_PASSWORD: ""
1111

1212
before_script:
13-
- apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs postgresql
13+
- apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs postgresql chromedriver
1414
- gem install bundler --no-ri --no-rdoc
1515
- bundle install --jobs $(nproc) "${FLAGS[@]}"
1616
- cp config/database.yml.gitlab config/database.yml

README.org

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ macOS: =rbenv install 2.4.1=
2222

2323
Within your local checkout run =bundle=.
2424

25+
For testing, install =chromedriver= > v59.
26+
2527
*** Configure Database
2628

2729
Every host that runs this application can have a different database

spec/spec_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,5 @@
110110
end
111111

112112
require 'capybara/rspec'
113+
Capybara.asset_host = 'http://localhost:3000'
114+
Capybara.javascript_driver = :selenium_chrome_headless

0 commit comments

Comments
 (0)