Sha256: e320315e47b7ccd5c742a24ab3af2aad930b95eb1c0b9ecebffb77dc1543bc50
Contents?: true
Size: 983 Bytes
Versions: 23
Compression:
Stored size: 983 Bytes
Contents
require ::File.expand_path('../spec_helper.rb', __FILE__) describe FnordMetric::Worker do before(:each) do @worker = FnordMetric::Worker.new( { :fnordpsace => proc{} }, :redis_prefix => "fnordmetric" ) end it "should generate the correct pubsub-key" do @worker.pubsub_key.should == "fnordmetric-announce" end it "should generate the correct queue-key" do @worker.queue_key.should == "fnordmetric-queue" end it "should generate the correct event-key" do @worker.event_key("myevent").should == "fnordmetric-event-myevent" end it "should generate the correct stats-key" do @worker.stats_key.should == "fnordmetric-stats" end it "should add a namespace" it "should add a namespace and pass options" it "should add a namespace and the key" it "should add a namespace and instance_eval the block" it "should find a namespace by key" it "should find the namespace default namespace without key" end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
fnordmetric-0.5.2 | spec/worker_spec.rb |
fnordmetric-0.5.1 | spec/worker_spec.rb |
fnordmetric-0.5.0 | spec/worker_spec.rb |