Skip to content

Rails 5 - Deprecated behavior - Passing an arg to force association to reload is deprecated. Call reload instead on message_spec.rb #257

Rails 5 - Deprecated behavior - Passing an arg to force association to reload is deprecated. Call reload instead on message_spec.rb

Rails 5 - Deprecated behavior - Passing an arg to force association to reload is deprecated. Call reload instead on message_spec.rb #257

Workflow file for this run

name: Zooni CI
on:
pull_request:
push: { branches: master }
env:
DATABASE_URL: postgresql://talk:password@localhost/gh_ci_test
PANOPTES_DATABASE_URL: postgresql://talk:password@localhost/gh_ci_panoptes_test
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
env:
POSTGRES_USER: talk
POSTGRES_PASSWORD: password
ports: ['5432:5432']
options:
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
continue-on-error: true
strategy:
matrix:
gemfile:
- Gemfile
- Gemfile.next
ruby:
- 2.6
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install PG Client
run: |
sudo apt-get -yqq install libpq-dev
- name: Setup Databases
run: |
RAILS_ENV=test bundle exec rake db:create
RAILS_ENV=test bundle exec rake db:schema:load
RAILS_ENV=panoptes_test bundle exec rake db:create
RAILS_ENV=test bundle exec rake panoptes:db:create_tables
RAILS_ENV=test bundle exec rake panoptes:db:setup
- name: Run tests
run: bundle exec rspec
env:
RAILS_ENV: test