spec/javascripts/support/jasmine_helper.rb in faye-authentication-0.2.0 vs spec/javascripts/support/jasmine_helper.rb in faye-authentication-0.3.0
- old
+ new
@@ -19,10 +19,10 @@
fork do
Faye::WebSocket.load_adapter('thin')
faye = Faye::RackAdapter.new(:mount => '/faye')
#require 'logger'
#Faye.logger = Logger.new(STDOUT)
- faye.add_extension Faye::Authentication::Extension.new(FAYE_SECRET_KEY)
+ faye.add_extension Faye::Authentication::ServerExtension.new(FAYE_SECRET_KEY)
Rack::Handler::Thin.run faye, :Port => 9296
end.tap do |id|
parent = $$
at_exit {
Process.kill("KILL", id) if $$ == parent # Only if the parent process exits