1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

Fix tests

This commit is contained in:
Zach Gollwitzer 2025-04-30 17:56:02 -04:00
parent ffbd697543
commit 045dbcf027
2 changed files with 1 additions and 7 deletions

View file

@ -7,12 +7,6 @@ class ChatsControllerTest < ActionDispatch::IntegrationTest
sign_in @user sign_in @user
end end
test "cannot create a chat if AI is disabled" do
@user.update!(ai_enabled: false)
post chats_url, params: { chat: { content: "Hello", ai_model: "gpt-4o" } }
assert_response :forbidden
end
test "gets index" do test "gets index" do
get chats_url get chats_url
assert_response :success assert_response :success

View file

@ -12,7 +12,7 @@ class ChatsTest < ApplicationSystemTestCase
visit root_path visit root_path
within "#chat-container" do within "#chat-container" do
assert_selector "h3", text: "Enable Personal Finance AI" assert_selector "h3", text: "Enable Maybe AI"
end end
end end