diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-06 14:22:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 14:22:54 +0200 |
commit | 566fc909134586d1746ad60ee455832dec6bc61a (patch) | |
tree | 26c8f77002555a8e7277d6ab9b2f4241b3fdbc38 /spec/models/session_activation_spec.rb | |
parent | 0a3fa034fc66246dbf9dfb4627a983e0903042d4 (diff) |
Add Ruby 3.0 support (#16046)
* Fix issues with POSIX::Spawn, Terrapin and Ruby 3.0 Also improve the Terrapin monkey-patch for the stderr/stdout issue. * Fix keyword argument handling throughout the codebase * Monkey-patch Paperclip to fix keyword arguments handling in validators * Change validation_extensions to please CodeClimate * Bump microformats from 4.2.1 to 4.3.1 * Allow Ruby 3.0 * Add Ruby 3.0 test target to CircleCI * Add test for admin dashboard warnings * Fix admin dashboard warnings on Ruby 3.0
Diffstat (limited to 'spec/models/session_activation_spec.rb')
-rw-r--r-- | spec/models/session_activation_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/session_activation_spec.rb b/spec/models/session_activation_spec.rb index 2aa695037..450dc1399 100644 --- a/spec/models/session_activation_spec.rb +++ b/spec/models/session_activation_spec.rb @@ -74,13 +74,13 @@ RSpec.describe SessionActivation, type: :model do let(:options) { { user: Fabricate(:user), session_id: '1' } } it 'calls create! and purge_old' do - expect(described_class).to receive(:create!).with(options) + expect(described_class).to receive(:create!).with(**options) expect(described_class).to receive(:purge_old) - described_class.activate(options) + described_class.activate(**options) end it 'returns an instance of SessionActivation' do - expect(described_class.activate(options)).to be_kind_of SessionActivation + expect(described_class.activate(**options)).to be_kind_of SessionActivation end end |