about summary refs log tree commit homepage
path: root/t/cramp
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-15 09:44:23 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-15 09:45:03 -0800
commit23be173e2506f8a39d3e7b3097cef4e3b8a31ccc (patch)
treee045aaa2fd95abf8ddcad2f17068487b3c07336b /t/cramp
parent061cb38ee10c431a015276c2cf3db37e5e3e66ef (diff)
downloadrainbows-23be173e2506f8a39d3e7b3097cef4e3b8a31ccc.tar.gz
The Cramp::Controller namespace is gone.
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