Sha256: c1fb54aa2804eb11224e6eec1cd6219666ed1a83a32b00794edf31677ec73ac4

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

module Webhooks
  class PayloadObjectTest < Minitest::Test
    def setup
      json = JSON.parse(fixture_file("objects/webhooks/payload")).merge(client: client)
      @payload = Calendlyr::Webhooks::Payload.new(json)
    end

    def test_event
      assert_equal "invitee.created", @payload.event
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
calendlyr-0.7.5 test/calendlyr/objects/webhooks/payload_test.rb
calendlyr-0.7.4 test/calendlyr/objects/webhooks/payload_test.rb
calendlyr-0.7.3 test/calendlyr/objects/webhooks/payload_test.rb
calendlyr-0.7.2 test/calendlyr/objects/webhooks/payload_test.rb
calendlyr-0.7.1 test/calendlyr/objects/webhooks/payload_test.rb
calendlyr-0.7.0 test/calendlyr/objects/webhooks/payload_test.rb