test/search/query_result.rb in gscraper-0.1.5 vs test/search/query_result.rb in gscraper-0.1.6
- old
+ new
@@ -8,10 +8,10 @@
def setup
@query = Search::Query.new(:query => 'ruby')
end
def test_first_result
- result = @query.first_result
+ result = @query.top_result
assert_not_nil result, "The Query for 'ruby' has no first-result"
assert_equal result.rank, 1, "The first result for the Query 'ruby' does not have the rank of 1"
end