Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-lightspeed committed Dec 4, 2024
1 parent 1ffbd2d commit 3af24ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/lightspeed_restaurant/operations/renew.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module LightspeedRestaurantClient
module Operations
module Renew
def renew(id, configuration = nil)
response = JSON.parse(LightspeedRestaurantClient.post(default_resource_path + "/#{id}" + "/renew", {}, configuration))
response = JSON.parse(LightspeedRestaurantClient.post("#{default_resource_path}/#{id}/renew", {}, configuration))
new(response)
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/lightspeed_restaurant/webhook_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ module LightspeedRestaurantClient

it 'includes the notification URL' do
result = described_class.find(resource_id)
expect(result.notificationUrl).to eq "https://localhost"
expect(result.notificationUrl).to eq 'https://localhost'
end
end
end

context 'when creating' do
let(:valid_params) { { notificationUrl: 'https://localhost', type: "RECEIPT_CREATED", timeToLiveInSeconds: 900} }
let(:valid_params) { { notificationUrl: 'https://localhost', type: 'RECEIPT_CREATED', timeToLiveInSeconds: 900 } }
let(:invalid_params) { { notificationUrl: '' } }

context 'with invalid params' do
Expand Down

0 comments on commit 3af24ac

Please sign in to comment.