Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

WHITESPACE

  • Loading branch information...
commit 5d3a7c2a26fc4d6f051cb5f147fd6b6379983a8e 1 parent 86ed1cc
@ivanvanderbyl authored
View
6 spec/cloudist/utils_spec.rb
@@ -4,15 +4,15 @@
it "should return reply queue name" do
Cloudist::Utils.reply_prefix('eat.sandwich').should == 'temp.reply.eat.sandwich'
end
-
+
it "should return log queue name" do
Cloudist::Utils.log_prefix('eat.sandwich').should == 'temp.log.eat.sandwich'
end
-
+
it "should return stats queue name" do
Cloudist::Utils.stats_prefix('eat.sandwich').should == 'temp.stats.eat.sandwich'
end
-
+
# it "should generate queue name" do
# Cloudist::Utils.generate_queue('test').should == ''
# end
View
19 spec/cloudist_spec.rb
@@ -7,45 +7,46 @@
end
it "should start an AMQP instance" do
AMQP.should_receive(:start).once
+
Cloudist.start do
-
+
end
end
-
+
# before(:each) do
# overload_amqp
# reset_broker
# Cloudist.remove_workers
- #
+ #
# @mq = mock("MQ")
# @queue, @exchange = mock_queue_and_exchange('make.sandwich')
- #
+ #
# @qobj = Cloudist::JobQueue.any_instance
# @qobj.stubs(:q).returns(@queue)
# @qobj.stubs(:mq).returns(@mq)
# @qobj.stubs(:ex).returns(@exchange)
# @qobj.stubs(:setup)
# end
- #
+ #
# it "should register a worker" do
# Cloudist.register_worker('make.sandwich', SandwichWorker)
# Cloudist.workers.should have_key("make.sandwich")
# Cloudist.workers["make.sandwich"].size.should == 1
# end
- #
+ #
# it "should support handle syntax" do
# Cloudist.workers.should == {}
# Cloudist.handle('make.sandwich').with(SandwichWorker)
# Cloudist.workers.should have_key("make.sandwich")
# Cloudist.workers["make.sandwich"].size.should == 1
# end
- #
+ #
# # it "should support handle syntax with multiple queues" do
# # Cloudist.workers.should == {}
# # Cloudist.handle('make.sandwich', 'eat.sandwich').with(SandwichWorker)
# # # Cloudist.workers.should == {"make.sandwich"=>[SandwichWorker], "eat.sandwich"=>[SandwichWorker]}
# # end
- #
+ #
# it "should call process on worker when job arrives" do
# job = Cloudist.enqueue('make.sandwich', {:bread => 'white'})
# job.payload.published?.should be_true
@@ -54,5 +55,5 @@
# Cloudist.workers.should have_key("make.sandwich")
# Cloudist.workers["make.sandwich"].size.should == 1
# end
-
+
end
View
6 spec/core_ext/string_spec.rb
@@ -7,10 +7,10 @@
"started!".ends_with?('!').should be_true
"started!".ends_with?('-').should be_false
end
-
+
it "should support starts_with?" do
"event-started".starts_with?("event").should be_true
"event-started".starts_with?("reply").should be_false
end
-
-end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.