Sha256: 7ffe54a2cd89e0f0c8ef4349d041aafe5b36373e363dd9ab0a1a831ef082c81c
Contents?: true
Size: 911 Bytes
Versions: 6
Compression:
Stored size: 911 Bytes
Contents
# frozen_string_literal: true require "test_helper" module Availabilities class UserScheduleObjectTest < Minitest::Test def setup stub(path: "users/abc123", response: {body: fixture_file("users/retrieve"), status: 200}) json = JSON.parse(fixture_file("objects/availabilities/user_schedule")).merge(client: client) @user_availability_schedule = Calendlyr::Availabilities::UserSchedule.new(json) end def test_associated_user assert_equal Calendlyr::User, @user_availability_schedule.associated_user.class end def test_availability_schedule assert_equal "America\\/New_York", @user_availability_schedule.timezone end def test_availability_rules assert_equal 7, @user_availability_schedule.availability_rules.count assert_equal Calendlyr::Availabilities::Rule, @user_availability_schedule.availability_rules.first.class end end end
Version data entries
6 entries across 6 versions & 1 rubygems