mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 04:54:11 +00:00
feat: Add Twelve Data provider for exchange rates and securities (#2)
* feat: Add Twelve Data provider for exchange rates and securities * test: fix hosting controller test, linting * fix: add countries gem to handle country codes in Twelve Data provider * fix: allow security search combobox to have no logo * refactor: update Twelve Data provider use time series endpoint * fix: set twelve data as default provider
This commit is contained in:
@@ -9,6 +9,7 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
@provider = mock
|
||||
Provider::Registry.stubs(:get_provider).with(:synth).returns(@provider)
|
||||
Provider::Registry.stubs(:get_provider).with(:twelve_data).returns(@provider)
|
||||
@usage_response = provider_success_response(
|
||||
OpenStruct.new(
|
||||
used: 10,
|
||||
@@ -31,6 +32,7 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
test "should get edit when self hosting is enabled" do
|
||||
@provider.expects(:usage).returns(@usage_response)
|
||||
@provider.expects(:usage).returns(@usage_response)
|
||||
|
||||
with_self_hosting do
|
||||
get settings_hosting_url
|
||||
|
||||
Reference in New Issue
Block a user