spec/shelly/app_spec.rb in shelly-0.4.22 vs spec/shelly/app_spec.rb in shelly-0.4.23.pre

- old
+ new

@@ -393,38 +393,38 @@ describe "#rake" do it "should return result of rake task" do @client.stub(:tunnel).and_return( {"host" => "console.example.com", "port" => "40010", "user" => "foo"}) - @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t console.example.com rake_runner \"test\"") + @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t -t console.example.com rake_runner \"test\"") @app.rake("test") end end describe "#dbconsole" do it "should return result of dbconsole" do @client.stub(:configured_db_server).and_return( {"host" => "console.example.com", "port" => "40010", "user" => "foo"}) - @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t console.example.com dbconsole") + @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t -t console.example.com dbconsole") @app.dbconsole end end describe "#mongoconsole" do it "should return result of mongoconsole" do @client.stub(:configured_db_server).and_return( {"host" => "console.example.com", "port" => "40010", "user" => "foo"}) - @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t console.example.com mongo") + @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t -t console.example.com mongo") @app.mongoconsole end end describe "#redis_cli" do it "should return result of redis-cli" do @client.stub(:configured_db_server).and_return( {"host" => "console.example.com", "port" => "40010", "user" => "foo"}) - @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t console.example.com redis-cli") + @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t -t console.example.com redis-cli") @app.redis_cli end end describe "#to_s" do @@ -451,10 +451,10 @@ describe "#console" do it "should run ssh with all parameters" do @client.stub(:tunnel).and_return( {"host" => "console.example.com", "port" => "40010", "user" => "foo"}) - @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t console.example.com ") + @app.should_receive(:system).with("ssh -o StrictHostKeyChecking=no -p 40010 -l foo -t -t console.example.com ") @app.console end context "when server passed" do it "should request console on given server" do