Re: [rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-06 Thread Matt Wynne
On 6 Mar 2011, at 10:30, Hedge Hog wrote: > On Sun, Mar 6, 2011 at 12:27 AM, Matt Wynne wrote: >> >> On 5 Mar 2011, at 12:06, Hedge Hog wrote: >> >>> On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote: On 4 Mar 2011, at 05:45, Hedge Hog wrote: > Hi, > I'm struggling wit

Re: [rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-06 Thread Hedge Hog
On Sun, Mar 6, 2011 at 12:27 AM, Matt Wynne wrote: > > On 5 Mar 2011, at 12:06, Hedge Hog wrote: > >> On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote: >>> >>> On 4 Mar 2011, at 05:45, Hedge Hog wrote: >>> Hi, I'm struggling with something that seems to be simple, and I've not had

Re: [rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-05 Thread Matt Wynne
On 5 Mar 2011, at 12:06, Hedge Hog wrote: > On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote: >> >> On 4 Mar 2011, at 05:45, Hedge Hog wrote: >> >>> Hi, >>> I'm struggling with something that seems to be simple, and I've not >>> had any joy following the RSpec books suggestions (p. 187). >>> I

Re: [rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-05 Thread Hedge Hog
On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote: > > On 4 Mar 2011, at 05:45, Hedge Hog wrote: > >> Hi, >> I'm struggling with something that seems to be simple, and I've not >> had any joy following the RSpec books suggestions (p. 187). >> I'd like to test that a method raises and error when a f

Re: [rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-04 Thread Matt Wynne
On 4 Mar 2011, at 05:45, Hedge Hog wrote: > Hi, > I'm struggling with something that seems to be simple, and I've not > had any joy following the RSpec books suggestions (p. 187). > I'd like to test that a method raises and error when a file is not found. > I've tried adding this in my example ju

[rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-03 Thread Hedge Hog
Hi, I'm struggling with something that seems to be simple, and I've not had any joy following the RSpec books suggestions (p. 187). I'd like to test that a method raises and error when a file is not found. I've tried adding this in my example just before I call my method, but it never seems to get