spec/helpers/native_wincred.rb
# Make sure the client code frees the result correctly.
# Note we're leaking memory here by not freeing all the malloced
# regions. This should be fine for tests.
Make sure the client code frees the result correctly.
Note we're leaking memory here by not freeing all the malloced
regions. This should be fine for tests.
Make sure the client code frees the result correctly . Note we ' re leaking memory here by not freeing all the malloced regions . This should be fine for tests .
def expect_free(struct)
        struct.tap do
          expect(WinCred::Native).to receive(:CredFree).with(struct.to_ptr)
        end
      end
def expect_free ( struct ) struct . tap do expect ( WinCred :: Native ) . to receive ( :CredFree ) . with ( struct . to_ptr ) end end
Make sure the client code frees the result correctly.
Make sure the client code frees the result correctly .
struct
<not_specific>