Skip to content

Commit ae2d8d2

Browse files
committed
Ensure instance is closed after use.
1 parent 4bd6b5c commit ae2d8d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fixtures/async/rest/a_wrapper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ module REST
3434

3535
expect(instance).to be_a(representation)
3636
expect(instance.value).to be == payload
37+
ensure
38+
instance&.close
3739
end
3840
end
3941
end

0 commit comments

Comments
 (0)