Qwaiter.event_host = "http://#{Rails.env.production? ? 'events.mozo.bar' : 'localhost'}:9296/faye" Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new # use the connection from couchbase-structures/documents # will be overwritten in the specs since flushing the real # thing is difficult # Qwaiter::Counter.connection = $cb unless Rails.env.test? # Use the Drb counter Qwaiter::Counter.connection = Qwaiter::DrbCounter.object unless Rails.env.test?