File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ Rake::TestTask.new do |t|
30
30
31
31
# After 2.7, there were not warnings for uninitialized ivars anymore
32
32
if RUBY_VERSION < "3"
33
- puts "Disabling warnings on Ruby #{ RUBY_VERSION . inspect } "
34
33
t . warning = false
35
- else
36
- puts "Enabling warnings on Ruby #{ RUBY_VERSION . inspect } "
37
34
end
38
35
end
39
36
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ def fetch(keys)
24
24
25
25
source_cache = dl . instance_variable_get ( :@source_cache )
26
26
source_cache_for_source = source_cache [ FailsToLoadSource ]
27
- assert source_cache_for_source [ [ { } ] ] . pending? , "The cache includes a pending source (#{ source_cache_for_source . inspect } )"
27
+ source_inst = source_cache_for_source [ [ { } ] ]
28
+ assert_instance_of FailsToLoadSource , source_inst , "The cache includes a pending source (#{ source_cache_for_source . inspect } )"
29
+ assert source_inst . pending?
28
30
end
29
31
30
32
class CustomKeySource < GraphQL ::Dataloader ::Source
You can’t perform that action at this time.
0 commit comments