Skip to content

Commit

Permalink
fix search test
Browse files Browse the repository at this point in the history
  • Loading branch information
LEstradioto committed Oct 30, 2024
1 parent ed58d4f commit 58ef5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/madmin/search_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

class SearchTest < ActiveSupport::TestCase
test "generates query" do
results = Madmin::Search.new(User.all, UserResource, "chris").run
results = Madmin::Search.new(User.all, UserResource, "chris", {}).run
assert_equal users(:one), results.first
end

test "returns empty relation when no results found" do
assert_empty Madmin::Search.new(User.all, UserResource, "nothing").run
assert_empty Madmin::Search.new(User.all, UserResource, "nothing", {}).run
end
end

0 comments on commit 58ef5b1

Please sign in to comment.