mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 11:04:14 +00:00
Remove Synth Finance references (#47)
* Remove Synth Finance integration * Linter noise * Fix failing (old) test, use it for Twelve Data --------- Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
@@ -8,7 +8,6 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
|
||||
sign_in users(:family_admin)
|
||||
|
||||
@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(
|
||||
@@ -32,7 +31,6 @@ 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
|
||||
@@ -42,9 +40,9 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
test "can update settings when self hosting is enabled" do
|
||||
with_self_hosting do
|
||||
patch settings_hosting_url, params: { setting: { synth_api_key: "1234567890" } }
|
||||
patch settings_hosting_url, params: { setting: { twelve_data_api_key: "1234567890" } }
|
||||
|
||||
assert_equal "1234567890", Setting.synth_api_key
|
||||
assert_equal "1234567890", Setting.twelve_data_api_key
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user