about summary refs log tree commit homepage
path: root/t/cramp/rainsocket.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/cramp/rainsocket.ru')
-rw-r--r--t/cramp/rainsocket.ru6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/cramp/rainsocket.ru b/t/cramp/rainsocket.ru
index dd1b229..c68f493 100644
--- a/t/cramp/rainsocket.ru
+++ b/t/cramp/rainsocket.ru
@@ -1,11 +1,11 @@
 # based on examples/rainsocket.ru git://github.com/lifo/cramp
 # Rack::Lint does not like async + EM stuff, so disable it:
 #\ -E deployment
-require 'cramp/controller'
+require 'cramp'
 
-Cramp::Controller::Websocket.backend = :rainbows
+Cramp::Websocket.backend = :rainbows
 
-class WelcomeController < Cramp::Controller::Websocket
+class WelcomeController < Cramp::Websocket
   periodic_timer :send_hello_world, :every => 2
   on_data :received_data