Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit be2176a

Browse files
committed
DEV: correct our tests for AiToolController
1 parent d7aff3a commit be2176a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/requests/admin/ai_tools_controller_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
describe "POST #create" do
4747
let(:valid_attributes) do
4848
{
49-
name: "TestTool",
49+
name: "Test_Tool_1",
5050
description: "A test tool",
5151
parameters: [{ name: "query", type: "string", description: "perform a search" }],
5252
script: "function invoke(params) { return params; }",
@@ -64,7 +64,7 @@
6464
}.to change(AiTool, :count).by(1)
6565

6666
expect(response).to have_http_status(:created)
67-
expect(response.parsed_body["ai_tool"]["name"]).to eq("TestTool")
67+
expect(response.parsed_body["ai_tool"]["name"]).to eq("Test_Tool_1")
6868
end
6969

7070
context "when the parameter is a enum" do

0 commit comments

Comments
 (0)