Skip to content

Commit 7082faa

Browse files
test(integration): add title update integration test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ba7e01b commit 7082faa

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

test/integration/update_webset_integration_test.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,26 @@ def test_update_webset_returns_updated_resource
115115
assert_equal "true", updated.metadata["updated"]
116116
end
117117
end
118+
119+
def test_update_webset_title
120+
VCR.use_cassette("update_webset_title", record: :new_episodes) do
121+
client = Exa::Client.new(api_key: @api_key)
122+
123+
webset = client.create_webset(
124+
search: {
125+
query: "B2B software companies in Austin",
126+
count: 1
127+
}
128+
)
129+
track_webset(webset.id)
130+
131+
assert_nil webset.title
132+
133+
updated = client.update_webset(webset.id, title: "Austin B2B Research")
134+
135+
assert_instance_of Exa::Resources::Webset, updated
136+
assert_equal webset.id, updated.id
137+
assert_equal "Austin B2B Research", updated.title
138+
end
139+
end
118140
end

0 commit comments

Comments
 (0)