about summary refs log tree commit homepage
path: root/t/cramp
diff options
context:
space:
mode:
Diffstat (limited to 't/cramp')
-rw-r--r--t/cramp/rainsocket.ru6
-rw-r--r--t/cramp/streaming.ru4
2 files changed, 5 insertions, 5 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
 
diff --git a/t/cramp/streaming.ru b/t/cramp/streaming.ru
index dc470b2..217c497 100644
--- a/t/cramp/streaming.ru
+++ b/t/cramp/streaming.ru
@@ -4,9 +4,9 @@
 # Rack::Lint does not like async + EM stuff, so disable it:
 #\ -E deployment
 
-require 'cramp/controller'
+require 'cramp'
 
-class StreamController < Cramp::Controller::Action
+class StreamController < Cramp::Action
   periodic_timer :send_data, :every => 1
   periodic_timer :check_limit, :every => 2