1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Remove existing data enrichment for clean slate

This commit is contained in:
Zach Gollwitzer 2025-04-01 15:32:31 -04:00
parent 6644afe147
commit 8effdcb2d3
10 changed files with 7 additions and 98 deletions

View file

@ -8,6 +8,9 @@ class Provider::SynthTest < ActiveSupport::TestCase
@subject = @synth = Provider::Synth.new(ENV["SYNTH_API_KEY"])
end
test "health check" do
VCR.use_cassette("synth/health") do
assert @synth.healthy?
test "health check" do
VCR.use_cassette("synth/health") do
assert @synth.healthy?
@ -23,21 +26,4 @@ class Provider::SynthTest < ActiveSupport::TestCase
assert usage.plan.present?
end
end
test "enriches transaction" do
VCR.use_cassette("synth/transaction_enrich") do
response = @synth.enrich_transaction(
"UBER EATS",
amount: 25.50,
date: Date.iso8601("2025-03-16"),
city: "San Francisco",
state: "CA",
country: "US"
)
data = response.data
assert data.name.present?
assert data.category.present?
end
end
end