Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 6f71b49

Browse files
Use more sensible variable names and try to use normal Firefox from
the Ubuntu repo
1 parent dd4cc47 commit 6f71b49

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

‎.travis.yml‎

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,25 @@ rvm:
55
- 2.5.1
66
- ruby-head
77
env:
8-
- DRIVER=travis TZ=Europe/Berlin
9-
- DRIVER=beheaded TZ=Europe/Berlin
8+
- DRIVER=google-chrome TZ=Europe/Berlin
9+
- DRIVER=firefox TZ=Europe/Berlin
1010
before_install:
11-
- if [[ "$DRIVER" == "travis" ]]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; fi
12-
- if [[ "$DRIVER" == "travis" ]]; then echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list; fi
13-
- if [[ "$DRIVER" == "travis" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y google-chrome-stable; fi
14-
- if [[ "$DRIVER" == "beheaded" ]]; then wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz; fi
15-
- if [[ "$DRIVER" == "beheaded" ]]; then tar zxf geckodriver-v0.19.1-linux64.tar.gz; fi
16-
- if [[ "$DRIVER" == "beheaded" ]]; then sudo mv geckodriver /usr/local/bin/; fi
11+
- if [[ "$DRIVER" == "google-chrome" ]]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; fi
12+
- if [[ "$DRIVER" == "google-chrome" ]]; then echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list; fi
13+
- if [[ "$DRIVER" == "google-chrome" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y google-chrome-stable; fi
14+
- if [[ "$DRIVER" == "firefox" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y firefox; fi
1715
- gem install bundler
1816
before_script:
1917
- cd spec/test_app
2018
- bundle install --jobs=3 --retry=3
2119
- bundle exec rails db:setup
2220
- cd ../../
23-
- if [[ "$DRIVER" == "travis" ]]; then chromedriver-update; fi
24-
- if [[ "$DRIVER" == "travis" ]]; then ls -lR ~/.chromedriver-helper/; fi
25-
- if [[ "$DRIVER" == "travis" ]]; then chromedriver --version; fi
26-
- if [[ "$DRIVER" == "travis" ]]; then google-chrome --version; fi
27-
- if [[ "$DRIVER" == "travis" ]]; then which chromedriver; fi
28-
- if [[ "$DRIVER" == "travis" ]]; then which google-chrome; fi
29-
- if [[ "$DRIVER" == "beheaded" ]]; then firefox --version; fi
30-
- if [[ "$DRIVER" == "beheaded" ]]; then geckodriver --version; fi
31-
- if [[ "$DRIVER" == "beheaded" ]]; then which firefox; fi
32-
- if [[ "$DRIVER" == "beheaded" ]]; then which geckodriver; fi
21+
- if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver-update; fi
22+
- if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi
23+
- if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver --version; fi
24+
- if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi
25+
- if [[ "$DRIVER" == "google-chrome" ]]; then which chromedriver; fi
26+
- if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi
27+
- if [[ "$DRIVER" == "firefox" ]]; then firefox --version; fi
28+
- if [[ "$DRIVER" == "firefox" ]]; then which firefox; fi
3329
script: bundle exec rspec

‎spec/controller_helper_spec.rb‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
require 'rails-controller-testing'
44
Rails::Controller::Testing.install
55

6+
# Rails 5.2.0 migration of the sqlite boolean
7+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
8+
69
class TestController < ActionController::Base; end
710

811
RSpec.describe TestController, type: :controller do

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /