Skip to content

Commit

Permalink
Add a refute_nil before we refute empty for better error messages
Browse files Browse the repository at this point in the history
Co-authored-by: Vinicius Stock <vinistock@users.noreply.github.com>
  • Loading branch information
nikijiandani and vinistock committed Apr 18, 2024
1 parent b362ffc commit 20b01c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby_indexer/test/test_case.rb
Expand Up @@ -17,6 +17,7 @@ def index(source)

def assert_entry(expected_name, type, expected_location)
entries = @index[expected_name]
refute_nil(entries, "Expected #{expected_name} to be indexed")
refute_empty(entries, "Expected #{expected_name} to be indexed")

entry = entries.first
Expand Down

0 comments on commit 20b01c9

Please sign in to comment.