Skip to content

Commit

Permalink
chore: add support for ruby 3.0 (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
shwetha-manvinkurke authored Sep 8, 2021
1 parent 9c4dfb9 commit 2f288cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: ruby
env:
- version=ruby:3.0
- version=ruby:2.7
- version=ruby:2.6
- version=ruby:2.5
Expand Down
4 changes: 2 additions & 2 deletions spec/sendgrid/helpers/settings/mail_settings_dto_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
describe '.fetch' do
it 'calls get on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, query_params: {} }
expect(mail_settings.fetch(args)).to be_a SendGrid::Response
expect(mail_settings.fetch(**args)).to be_a SendGrid::Response
end
end

describe '.update' do
it 'calls patch on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, request_body: setting_params }
expect(mail_settings.update(args)).to be_a SendGrid::Response
expect(mail_settings.update(**args)).to be_a SendGrid::Response
end
end
end
4 changes: 2 additions & 2 deletions spec/sendgrid/helpers/settings/partner_settings_dto_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
describe '.fetch' do
it 'calls get on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, query_params: {} }
expect(partner_settings.fetch(args)).to be_a SendGrid::Response
expect(partner_settings.fetch(**args)).to be_a SendGrid::Response
end
end

describe '.update' do
it 'calls patch on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, request_body: setting_params }
expect(partner_settings.update(args)).to be_a SendGrid::Response
expect(partner_settings.update(**args)).to be_a SendGrid::Response
end
end
end
4 changes: 2 additions & 2 deletions spec/sendgrid/helpers/settings/tracking_settings_dto_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
describe '.fetch' do
it 'calls get on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, query_params: {} }
expect(tracking_settings.fetch(args)).to be_a SendGrid::Response
expect(tracking_settings.fetch(**args)).to be_a SendGrid::Response
end
end

describe '.update' do
it 'calls patch on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, request_body: setting_params }
expect(tracking_settings.update(args)).to be_a SendGrid::Response
expect(tracking_settings.update(**args)).to be_a SendGrid::Response
end
end
end
4 changes: 2 additions & 2 deletions spec/sendgrid/helpers/settings/user_settings_dto_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
describe '.fetch' do
it 'calls get on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, query_params: {} }
expect(user_settings.fetch(args)).to be_a SendGrid::Response
expect(user_settings.fetch(**args)).to be_a SendGrid::Response
end
end

describe '.update' do
it 'calls patch on sendgrid_client' do
args = { sendgrid_client: sendgrid_client, name: setting_name, request_body: setting_params }
expect(user_settings.update(args)).to be_a SendGrid::Response
expect(user_settings.update(**args)).to be_a SendGrid::Response
end
end
end

0 comments on commit 2f288cb

Please sign in to comment.