Skip to content

Commit

Permalink
More thorough tests for name ids param (name lookup)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jan 28, 2025
1 parent 7c15c8b commit defe252
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/classes/query/names_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_name_by_rss_log
assert_query(expects, :Name, by: :rss_log)
end

def names_set_for_ids
def names_set
[
names(:fungi),
names(:coprinus_comatus),
Expand All @@ -43,19 +43,19 @@ def names_set_for_ids
]
end

def test_name_ids_with_ids
assert_query(names_set_for_ids.map(&:id),
:Name, ids: names_set_for_ids.map(&:id))
def test_name_ids_with_name_ids
assert_query(names_set.map(&:id),
:Name, ids: names_set.map(&:id))
end

def test_name_ids_with_instances
assert_query(names_set_for_ids.map(&:id),
:Name, ids: names_set_for_ids)
def test_name_ids_with_name_instances
assert_query(names_set.map(&:id),
:Name, ids: names_set)
end

def test_name_ids_with_search_names
assert_query(names_set_for_ids.map(&:id),
:Name, ids: names_set_for_ids.map(&:search_name))
def test_name_ids_with_name_search_names
assert_query(names_set.map(&:id),
:Name, ids: names_set.map(&:search_name))
end

def test_name_by_user
Expand Down

0 comments on commit defe252

Please sign in to comment.