On 21 Apr 2008, at 07:03, Jamie D wrote:

> Net::SSH.should_receive(:shell).and_return('something')

This should be @ssh.should_receive(:shell).and_return('something')

But actually it will need to return a mock with :sync stubbed for the  
line:
shell = session.shell.sync

Ashley

-- 
http://www.patchspace.co.uk/
http://aviewfromafar.net/



_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to