Skip to content

Commit

Permalink
Merge pull request #14115 from eduardoj/fix/remove_warning_from_spide…
Browse files Browse the repository at this point in the history
…r_tests

Replace Expectations with Assertions in spider tests
  • Loading branch information
eduardoj committed Apr 5, 2023
2 parents ac21659 + eaaff81 commit ae427c2
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 ae427c2

Please sign in to comment.