Permalink
Browse files

add testcase for returning worker key while creating a worker

  • Loading branch information...
1 parent 9031b8b commit 6f2ae8678b708de140ca1cfb1ad30aceba491ced @gnufied committed Jul 19, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/client/test_bdrb_cluster_connection.rb
View
3 test/client/test_bdrb_cluster_connection.rb
@@ -88,7 +88,8 @@ def iset(var,value)
@cluster_connection.backend_connections.each do |t_conn|
t_conn.expects(:new_worker).with(:worker => :hello_worker,:worker_key => "boy",:data => "boy").returns(true)
end
- @cluster_connection.new_worker(:worker => :hello_worker,:worker_key => "boy",:data => "boy")
+ a = @cluster_connection.new_worker(:worker => :hello_worker,:worker_key => "boy",:data => "boy")
+ a.should == "boy"
end
specify "should work with all worker info methods" do

0 comments on commit 6f2ae86

Please sign in to comment.