Sha256: 6951b50a8942b089fcc3238961eb682bed27524d5e7b116bd0c70d4352feff6a
Contents?: true
Size: 274 Bytes
Versions: 36
Compression:
Stored size: 274 Bytes
Contents
# frozen_string_literal: true module ServerRunner def run_server(name) let! name do server = yield Thread.new { server.start } server end after do send(name).shutdown end end end RSpec.configure { |c| c.extend ServerRunner }
Version data entries
36 entries across 36 versions & 3 rubygems