Sha256: 32eb7a3abfac5a711ac8c45060fe724e8f37877fd27590680f3619d33908773b

Contents?: true

Size: 638 Bytes

Versions: 27

Compression:

Stored size: 638 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

module PhusionPassenger

shared_examples_for "an AbstractServer" do
	it "doesn't crash if it's started and stopped multiple times" do
		3.times do
			# Give the server some time to install the
			# signal handlers. If we don't give it enough
			# time, it will raise an ugly exception when
			# we send it a signal.
			sleep 0.1
			server.stop
			server.start
		end
	end
	
	it "raises a ServerAlreadyStarted if the server is already started" do
		lambda { server.start }.should raise_error(AbstractServer::ServerAlreadyStarted)
	end
end

end # module PhusionPassenger

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
passenger-3.0.21 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.19 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.18 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.17 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.15 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.14 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.13 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.12 test/ruby/shared/abstract_server_spec.rb
yspassenger-3.0.12 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.11 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.10 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.9 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.8 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.7 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.6 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.5 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.4 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.3 test/ruby/shared/abstract_server_spec.rb
railsware-passenger-3.0.2.1 test/ruby/shared/abstract_server_spec.rb
passenger-3.0.2 test/ruby/shared/abstract_server_spec.rb