Fix: VCR fixtures mismatches making it need test.key for credentials

This commit is contained in:
Jorge Manrubia
2025-05-20 15:01:44 +02:00
parent ea4a3e458d
commit 5ecb1b1a6d
6 changed files with 263 additions and 510 deletions
-5
View File
@@ -3,11 +3,6 @@ require "test_helper"
class Command::Ai::ParserTest < ActionDispatch::IntegrationTest
include CommandTestHelper, VcrTestHelper
test "the parsed command contains the raw line" do
result = parse_command "assign @kevin"
assert_equal "assign @kevin", result.line
end
test "parse command strings into a composite command containing the individual commands" do
result = parse_command "assign @kevin and close"
+1 -1
View File
@@ -54,7 +54,7 @@ class Command::Ai::TranslatorTest < ActionDispatch::IntegrationTest
assert_command({ commands: [ "/insight what's the issue here?" ] }, "what's the issue here?", context: :card)
end
test "filter by collection" do
test "filter by collections" do
assert_command({ context: { collection_ids: [ "writebook" ] } }, "writebook collection")
end
+1 -1
View File
@@ -2,7 +2,7 @@ require "test_helper"
# The parser is tested through the tests of specific commands. See +Command::AssignTests+, etc.
class Command::ParserTest < ActionDispatch::IntegrationTest
include CommandTestHelper
include CommandTestHelper, VcrTestHelper
test "the parsed command contains the raw line" do
result = parse_command "assign @kevin"