spec/shelly/app_spec.rb in shelly-0.4.41 vs spec/shelly/app_spec.rb in shelly-0.4.42

- old
+ new

@@ -419,9 +419,18 @@ @client.stub(:tunnel).and_return( {"host" => "console.example.com", "port" => "40010", "user" => "foo"}) @app.should_receive(:childprocess).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t -t console.example.com rake_runner \"test\"") @app.rake("test") end + + context "when server option is present" do + it "should run rake task on given server" do + @client.should_receive(:tunnel). + with("foo-staging", "ssh", "app1").and_return({}) + @app.should_receive(:childprocess) + @app.rake("test", "app1") + end + end end describe "#dbconsole" do it "should return result of dbconsole" do @client.stub(:configured_db_server).and_return(