Unnamed imported tracks (FIT, ...) take the file's name, backfilled once for earlier imports; split and best-effort times with seconds
This commit is contained in:
1 parent
21c5c2f21b
commit
d87b8b8f80
5 files changed
+30
-11
No files matched your search
+2
-2
@@ -25,7 +25,7 @@ class SearchTest < Minitest::Test
|
||||
|
||||
def test_finds_across_sources_ignoring_case_and_diacritics_and_says_where
|
||||
layer = search("kosice")
|
||||
assert_equal [["Kemp Košice", "layers", "trips / Track"]], layer.map { |r| r.values_at(:name, :source, :source_label) }
|
||||
assert_equal [["Kemp Košice", "layers", "trips / camps"]], layer.map { |r| r.values_at(:name, :source, :source_label) }
|
||||
assert_match(/\Aitem:/, layer.first[:ref])
|
||||
|
||||
trail = search("snp hrdinov").first
|
||||
@@ -35,7 +35,7 @@ class SearchTest < Minitest::Test
|
||||
def test_matches_description_and_falls_back_to_node_label_with_bbox
|
||||
assert_equal ["Kemp Košice"], search("voda").map { |r| r[:name] }
|
||||
|
||||
track = search("trips track").first
|
||||
track = search("camps").find { |r| r[:name] == "camps" }
|
||||
assert_equal [17.0, 48.0, 18.0, 49.0], track[:bbox]
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user