From 23be173e2506f8a39d3e7b3097cef4e3b8a31ccc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Feb 2011 09:44:23 -0800 Subject: tests: updates for cramp 0.12 The Cramp::Controller namespace is gone. --- t/cramp/rainsocket.ru | 6 +++--- t/cramp/streaming.ru | 4 ++-- t/test_isolate_cramp.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 't') 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 -- cgit v1.2.3-24-ge0c7