Sha256: fb51bd7550e82ec67f89128d409a412f18f7ec34d9159bb4215f1d0216b21533
Contents?: true
Size: 700 Bytes
Versions: 5
Compression:
Stored size: 700 Bytes
Contents
# frozen_string_literal: true require_relative "../test_helper" module Telnyx class EmbeddingTest < Test::Unit::TestCase setup do @embedding = Embedding.create(bucket_name: "Foo") @task_id = @embedding[:data][:task_id].freeze end should "be creatable" do assert_requested :post, "#{Telnyx.api_base}/v2/ai/embeddings" end should "be lists of buckets" do buckets = Embedding.buckets assert buckets.is_a?(TelnyxObject) assert buckets[:data][:buckets].is_a?(Array) end should "be retrievable task" do Embedding.retrieve(@task_id) assert_requested :get, "#{Telnyx.api_base}/v2/ai/embeddings/#{@task_id}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems