diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-15 09:44:23 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-15 09:45:03 -0800 |
commit | 23be173e2506f8a39d3e7b3097cef4e3b8a31ccc (patch) | |
tree | e045aaa2fd95abf8ddcad2f17068487b3c07336b /t | |
parent | 061cb38ee10c431a015276c2cf3db37e5e3e66ef (diff) | |
download | rainbows-23be173e2506f8a39d3e7b3097cef4e3b8a31ccc.tar.gz |
The Cramp::Controller namespace is gone.
Diffstat (limited to 't')
-rw-r--r-- | t/cramp/rainsocket.ru | 6 | ||||
-rw-r--r-- | t/cramp/streaming.ru | 4 | ||||
-rw-r--r-- | t/test_isolate_cramp.rb | 2 |
3 files changed, 6 insertions, 6 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 diff --git a/t/test_isolate_cramp.rb b/t/test_isolate_cramp.rb index 2dbb606..d73ff3f 100644 --- a/t/test_isolate_cramp.rb +++ b/t/test_isolate_cramp.rb @@ -17,7 +17,7 @@ lock = File.open(__FILE__, "rb") lock.flock(File::LOCK_EX) Isolate.now!(opts) do if engine == "ruby" - gem 'cramp', '0.11' + gem 'cramp', '0.12' end end |