Sha256: c1d805a575712ba072339510591d9c8b9ea7f8ec4ba32bf64bb0f6288aa4db3c
Contents?: true
Size: 601 Bytes
Versions: 4
Compression:
Stored size: 601 Bytes
Contents
require 'community_zero/server' module Stove module RSpec module CommunitySite class << self def start(options = {}) return @server if @server @server = CommunityZero::Server.new(options) @server.start_background @server end def stop @server.stop if running? end def running? !!(@server && @server.running?) end def reset! @server && @server.reset! end def server_url @server && @server.url end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stove-1.1.2 | spec/support/community_site.rb |
stove-1.1.0 | spec/support/community_site.rb |
stove-1.0.1 | spec/support/community_site.rb |
stove-1.0.0 | spec/support/community_site.rb |