From: Clem Rock Date: 2013-05-15T05:56:07+09:00 Subject: Re: PROBLEMS CREATING AN SSH TUNNEL Hey - there thanks for getting back to me on this and sorry for the long reply. I've been out sick in the last few days. I do not want to deal with mocking an ssh tunnel because I want the test to be 100% a real test. I want to make sure the communication between my code and the server to be 100% real. I want to be able to detect any changes that come back from the sabrix server transactions. Also, I'm not even sure how I'd mock out an ssh tunnel connection in the first place. Really, it seems like I'd be mocking the response from the sabrix server. Thanks for your help so far. tamouse mailing lists wrote in post #1108163: > On Tue, May 7, 2013 at 12:28 PM, Clem Rock wrote: >> for some reason. I've tried about every solution out there but can't >> sleep(1) #sleep just a tad to let everything start up >> def teardown >> -- >> Posted via http://www.ruby-forum.com/. > > Just off the top of my head, instead of doing the setup and tear down, > perhaps pass the test code into a method as a block that does that > stuff, and mock the Net::SSH stuff? -- Posted via http://www.ruby-forum.com/.