Re: [rspec-users] Specing exit codes

2007-10-06 Thread Mikel Lindsaar
Hey Scott, Thanks for the speedy answer dependency injection is new to me, so I am getting my head around it all. I put your solution in and now I am getting: 1) SystemExit in 'Init handling exit codes before(:all)' exit ./init.rb:8:in `exit' ./init.rb:8:in `initialize' 2) SystemExit in 'In

Re: [rspec-users] Specing exit codes

2007-10-06 Thread Scott Taylor
On Oct 6, 2007, at 11:31 PM, Mikel Lindsaar wrote: > I am writing a small ruby script that will be accepting input from > postfix's pipe command (ie, not running via the shell, directly > executing). > > One of the things I need to do it spec the exit codes to make sure I > am returing the correc

[rspec-users] Specing exit codes

2007-10-06 Thread Mikel Lindsaar
I am writing a small ruby script that will be accepting input from postfix's pipe command (ie, not running via the shell, directly executing). One of the things I need to do it spec the exit codes to make sure I am returing the correct exit codes for each condition as Postfix will then return SMTP