Skip to content

Commit

Permalink
Formatting: prefer single quoted strings
Browse files Browse the repository at this point in the history
  • Loading branch information
timcraft committed Dec 10, 2024
1 parent 6632861 commit a559b59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/noko/client/webhooks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
it 'encodes params' do
expect_request(:get, "#{base_url}/webhooks?name=Notifier")

client.get_webhooks(name: "Notifier")
client.get_webhooks(name: 'Notifier')
end
end

Expand All @@ -29,31 +29,31 @@
it 'returns a record' do
expect_request(:post, "#{base_url}/webhooks").with(json_request).to_return(json_response.merge(status: 201))

expect(client.create_webhook(name: "My Webhook", payload_uri: "http://testnokoapp.com/webhooks/entry_events", events: ["*"])).to be_instance_of(Noko::Record)
expect(client.create_webhook(name: 'My Webhook', payload_uri: 'http://testnokoapp.com/webhooks/entry_events', events: ['*'])).to be_instance_of(Noko::Record)
end
end

describe '#update_webhook' do
it 'returns a record' do
expect_request(:put, "#{base_url}/webhooks/#{id}").with(json_request).to_return(json_response)

expect(client.update_webhook(id, name: "The Best Webhook", payload_uri: "http://dabestnokoapp.com/webhooks/entry_events")).to be_instance_of(Noko::Record)
expect(client.update_webhook(id, name: 'The Best Webhook', payload_uri: 'http://dabestnokoapp.com/webhooks/entry_events')).to be_instance_of(Noko::Record)
end
end

describe '#add_webhook_events' do
it 'returns a record' do
expect_request(:put, "#{base_url}/webhooks/#{id}/add_events").with(json_request).to_return(json_response)

expect(client.add_webhook_events(id, events: ["entry.updated"])).to be_instance_of(Noko::Record)
expect(client.add_webhook_events(id, events: ['entry.updated'])).to be_instance_of(Noko::Record)
end
end

describe '#remove_webhook_events' do
it 'returns a record' do
expect_request(:put, "#{base_url}/webhooks/#{id}/remove_events").with(json_request).to_return(json_response)

expect(client.remove_webhook_events(id, events: ["tag.created", "tag.deleted.merged"])).to be_instance_of(Noko::Record)
expect(client.remove_webhook_events(id, events: ['tag.created', 'tag.deleted.merged'])).to be_instance_of(Noko::Record)
end
end

Expand Down

0 comments on commit a559b59

Please sign in to comment.