Sha256: c2ad879c40127e8cd32b6aa489938530c03200f58183ec89b39afee9669b50f0

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require './lib/profit'

class TestServer

  def self.server
    @@server ||= Profit::Server.new
  end

  def self.server_thread
    @@server_thread ||= Thread.new { server.run }
  end
end

RSpec.configure do |config|

  config.before(:suite) do
    TestServer.server
  end

  config.after(:suite) do
    TestServer.server.shutdown!
    TestServer.server_thread.join(1)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
profit-0.1.1 spec/spec_helper.rb
profit-0.1.0 spec/spec_helper.rb