Skip to content

Commit

Permalink
Fix the test I broke in rubygems#871
Browse files Browse the repository at this point in the history
The fetch now doesn't happen until we call find_all, so the data must
remain available until then.
  • Loading branch information
matthewd committed Mar 29, 2014
1 parent e7e903b commit f50159b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rubygems/test_gem_resolver_api_set.rb
Expand Up @@ -73,13 +73,13 @@ def test_find_all_cache

set.prefetch [a_dep]

@fetcher.data.delete "#{@dep_uri}?gems=a"

expected = [
@DR::APISpecification.new(set, data.first)
]

assert_equal expected, set.find_all(a_dep)

@fetcher.data.delete "#{@dep_uri}?gems=a"
end

def test_find_all_local
Expand Down

0 comments on commit f50159b

Please sign in to comment.