mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
Fix tests
This commit is contained in:
parent
ffbd697543
commit
045dbcf027
2 changed files with 1 additions and 7 deletions
|
@ -7,12 +7,6 @@ class ChatsControllerTest < ActionDispatch::IntegrationTest
|
|||
sign_in @user
|
||||
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
|
||||
get chats_url
|
||||
assert_response :success
|
||||
|
|
|
@ -12,7 +12,7 @@ class ChatsTest < ApplicationSystemTestCase
|
|||
visit root_path
|
||||
|
||||
within "#chat-container" do
|
||||
assert_selector "h3", text: "Enable Personal Finance AI"
|
||||
assert_selector "h3", text: "Enable Maybe AI"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue