Sha256: ff4f4717e82e2cddb9bcc950c7ceb9e613f606d12c6faac7f12da574581cbd20
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'redis' describe "GameQueue" do before(:all) do $redis = Redis.new(:host => 'localhost', :port => 6379) GameQueue.redis = $redis GameQueue.queue_name = 'skyburg_main_queue_test' end before(:each) do $redis.del('skyburg_main_queue_test') end it "push something" do expect { GameQueue.push(:lalaee, {pizdets: true})}.to_not raise_error end it "pull right data after push" do data = {"cool" => "data", "something" => "else"} GameQueue.push(:event, data) GameQueue.pop.should == ["event", data] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
game-queue-0.1.0 | spec/game-queue_spec.rb |