Skip to content

Commit

Permalink
Replace Expectations with Assertions in spider tests
Browse files Browse the repository at this point in the history
Prevent from throwing this warning in spider tests:

DEPRECATED: global use of must_be from
test/functional/webui/spider_test.rb:167. Use _(obj).must_be instead.
This will fail in Minitest 6.
  • Loading branch information
eduardoj committed Apr 5, 2023
1 parent ac21659 commit eaaff81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/test/functional/webui/spider_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_spider_anonymously
crawl
ActiveRecord::Base.clear_active_connections!

@pages_visited.keys.length.must_be :>, 800
assert_operator(@pages_visited.keys.length, :>, 800)
end

def test_spider_as_admin
Expand All @@ -175,6 +175,6 @@ def test_spider_as_admin
crawl
ActiveRecord::Base.clear_active_connections!

@pages_visited.keys.length.must_be :>, 1200
assert_operator(@pages_visited.keys.length, :>, 1200)
end
end

0 comments on commit eaaff81

Please sign in to comment.