mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 02:54:10 +00:00
Show UI warning to user when they need provider data but have not setup Synth yet (#1926)
* Simplify provider concerns * Update tests * Add UI warning for missing Synth key if family requires external data
This commit is contained in:
@@ -52,6 +52,8 @@ class ImportsTest < ApplicationSystemTestCase
|
||||
end
|
||||
|
||||
test "trade import" do
|
||||
Security.stubs(:search_provider).returns([])
|
||||
|
||||
visit new_import_path
|
||||
|
||||
click_on "Import investments"
|
||||
|
||||
@@ -10,7 +10,7 @@ class TradesTest < ApplicationSystemTestCase
|
||||
|
||||
visit_account_portfolio
|
||||
|
||||
Security.stubs(:search).returns([
|
||||
Security.stubs(:search_provider).returns([
|
||||
Security.new(
|
||||
ticker: "AAPL",
|
||||
name: "Apple Inc.",
|
||||
|
||||
Reference in New Issue
Block a user