We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba7e01b commit 7082faaCopy full SHA for 7082faa
1 file changed
test/integration/update_webset_integration_test.rb
@@ -115,4 +115,26 @@ def test_update_webset_returns_updated_resource
115
assert_equal "true", updated.metadata["updated"]
116
end
117
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
140
0 commit comments