class Object
Public Instance Methods
body(socket_id)
click to toggle source
# File spec/unit/request_validation_spec.rb, line 68 def body(socket_id) { socket_id: socket_id }.to_json end
clear_redis_connections()
click to toggle source
# File spec/unit/channel_spec.rb, line 5 def clear_redis_connections Slanger::Redis.instance_variables.each do |ivar| Slanger::Redis.send :remove_instance_variable, ivar end end
errback()
click to toggle source
# File spec/spec_helper.rb, line 22 def errback @errback ||= Proc.new { |e| fail "cannot connect to slanger. your box might be too slow. try increasing sleep value in the before block" } end
validate(socket_id)
click to toggle source
# File spec/unit/request_validation_spec.rb, line 64 def validate(socket_id) Slanger::Api::RequestValidation.new(body(socket_id), {}, "").socket_id end