Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2

defaults: &defaults
docker:
- image: circleci/ruby:2.5.1-node
- image: circleci/ruby:2.6.0-node
working_directory: ~/api.goodcity

jobs:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
test:
<<: *defaults
docker:
- image: circleci/ruby:2.5.1-node
- image: circleci/ruby:2.6.0-node
- image: circleci/postgres:9.6.9-alpine-ram
- image: circleci/redis:4.0.9-alpine
parallelism: 4
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://rubygems.org'
ruby "2.5.1"
ruby "2.6.0"

gem 'rails', '~> 4.2.11.1'
gem 'rails-api'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ DEPENDENCIES
with_advisory_lock

RUBY VERSION
ruby 2.5.1p57
ruby 2.6.0p0

BUNDLED WITH
1.17.3
19 changes: 18 additions & 1 deletion spec/support/controller_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# test/test_helpers/warden.rb
# Based on http://stackoverflow.com/questions/13420923/configuring-warden-for-use-in-rspec-controller-specs

if RUBY_VERSION >= '2.6.0'
if Rails.version < '5'
module ActionController
class TestResponse < ActionDispatch::TestResponse
def recycle!
# HACK: to avoid MonitorMixin double-initialize error:
@mon_mutex_owner_object_id = nil
@mon_mutex = nil
initialize
end
end
end
else
puts 'Monkeypatch for ActionController::TestResponse no longer needed'
end
end

# Based on http://stackoverflow.com/questions/13420923/configuring-warden-for-use-in-rspec-controller-specs
module Warden
# Warden::Test::ControllerHelpers provides a facility to test controllers in isolation
# Most of the code was extracted from Devise's Devise::TestHelpers.
Expand Down