Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make taks runnable on specific hosts
- Loading branch information
Showing
6 changed files
with
134 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,25 +1,31 @@ | |||
require File.join(File.dirname(__FILE__) + "/bdrb_test_helper") | require File.join(File.dirname(__FILE__) + "/../bdrb_test_helper") | ||
require File.join(RAILS_HOME + "/config/environment") | require File.join(RAILS_HOME + "/config/environment") | ||
require "backgroundrb" | require "backgroundrb" | ||
|
|
||
context "Worker Proxy in general" do | context "Worker Proxy in general" do | ||
specify "should let you invoke ask_work method" do | setup do | ||
|
@cluster_conn = mock | ||
@worker_proxy = BackgrounDRb::RailsWorkerProxy.new(:hello_worker,nil,@cluster_conn) | |||
end | end | ||
|
specify "should let you fetch results" do | ||
@cluster_conn.expects(:backend_connections).returns([]) | |||
foo = @worker_proxy.ask_result(:foobar) | |||
foo.should.be nil | |||
end | |||
|
|||
specify "should let you invoke send_request method" do | specify "should let you invoke send_request method" do | ||
|
|||
end | end | ||
|
|||
specify "should let you invoke delete method" do | specify "should let you invoke delete method" do | ||
|
|||
end | end | ||
|
|||
specify "should let you invoke worker_info method" do | specify "should let you invoke worker_info method" do | ||
|
|||
end | end | ||
|
|||
specify "should let you invoke ask_status method" do | specify "should let you invoke ask_status method" do | ||
|
|||
end | end | ||
end | end |