mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 22:29:38 +02:00
* Ignore env.test from source control * Simplification of providers interface * Synth tests * Update money to use new find rates method * Remove unused issues code * Additional issue feature removals * Update price data fetching and tests * Update documentation for providers * Security test fixes * Fix self host test * Update synth usage data access * Remove AI pr schema changes
17 lines
318 B
Ruby
17 lines
318 B
Ruby
module ProviderTestHelper
|
|
def provider_success_response(data)
|
|
Provider::ProviderResponse.new(
|
|
success?: true,
|
|
data: data,
|
|
error: nil
|
|
)
|
|
end
|
|
|
|
def provider_error_response(error)
|
|
Provider::ProviderResponse.new(
|
|
success?: false,
|
|
data: nil,
|
|
error: error
|
|
)
|
|
end
|
|
end
|