Upgrade to Ruby 3.0.4
This commit is contained in:
parent
ebda664898
commit
62b29b3bd1
|
@ -1 +1 @@
|
|||
2.7.1
|
||||
3.0.4
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'dry-initializer'
|
||||
require 'types'
|
||||
require 'errors'
|
||||
require "dry-initializer"
|
||||
require "types"
|
||||
require "errors"
|
||||
|
||||
module UseCase
|
||||
class Base
|
||||
extend Dry::Initializer
|
||||
|
||||
def self.call(*args, **kwargs)
|
||||
new(*args, **kwargs).call
|
||||
def self.call(...)
|
||||
new(...).call
|
||||
end
|
||||
|
||||
def call
|
||||
|
|
|
@ -42,14 +42,14 @@ describe UseCase::Relationship::Create do
|
|||
let!(:user1) { FactoryBot.create(:user, screen_name: "timallen") }
|
||||
let!(:user2) { FactoryBot.create(:user, screen_name: "joehilyar") }
|
||||
|
||||
subject { described_class.call(params) }
|
||||
subject { described_class.call(**params) }
|
||||
|
||||
context "type = 'follow'" do
|
||||
let(:type) { "follow" }
|
||||
|
||||
include_examples "valid relationship type"
|
||||
|
||||
context "using screen names" do
|
||||
context "using User model instances" do
|
||||
let(:source_user) { user1 }
|
||||
let(:target_user) { user2 }
|
||||
|
||||
|
@ -62,7 +62,7 @@ describe UseCase::Relationship::Create do
|
|||
|
||||
include_examples "valid relationship type"
|
||||
|
||||
context "using screen names" do
|
||||
context "using User model instances" do
|
||||
let(:source_user) { user1 }
|
||||
let(:target_user) { user2 }
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ describe UseCase::Relationship::Destroy do
|
|||
let!(:user1) { FactoryBot.create(:user, screen_name: "timallen") }
|
||||
let!(:user2) { FactoryBot.create(:user, screen_name: "joehilyar") }
|
||||
|
||||
subject { described_class.call(params) }
|
||||
subject { described_class.call(**params) }
|
||||
|
||||
context "type = 'follow'" do
|
||||
let(:type) { "follow" }
|
||||
|
|
Loading…
Reference in New Issue