Re: [rspec-users] RSPEC book example in Chapter 3.

2009-04-27 Thread Rick DeNatale
Methinks thou shoulds't have messenger.should_receive(:puts).with("Please make one of the following menu selections ") in lieu of program.should_receive(:puts).with("Please make one of the following menu selections ") Sorry, I'm just in a medieval mood this afternoon for some reason. On Sun,

[rspec-users] RSPEC book example in Chapter 3.

2009-04-27 Thread G. Brandon Hoyt
Hi! I'm going through the rspec book in beta form right now and hit a snag in chapter three. I am developing an application in parallel to the book example instead of writing the book example word for word. To the best of my knowledge, I have duplicated a parallel example of the book example, ch

Re: [rspec-users] RSPEC book example in Chapter 3.

2009-04-26 Thread G. Brandon Hoyt
On Sun, Apr 26, 2009 at 04:17:42PM -0500, David Chelimsky wrote: > You've got the message expectation (should_receive) on the wrong > object - it should be on the messenger, not the program. > > HTH, > David yep that fixed 'er all right! I don't know ow many times I thought I had checked it to m

Re: [rspec-users] RSPEC book example in Chapter 3.

2009-04-26 Thread David Chelimsky
On Sun, Apr 26, 2009 at 3:45 PM, G. Brandon Hoyt wrote: > Hi! > I'm going through the rspec book in beta form right now and hit a snag > in chapter three. > I am developing an application in parallel to the book example instead > of writing the book example word for word.  To the best of my knowle

[rspec-users] RSPEC book example in Chapter 3.

2009-04-26 Thread G. Brandon Hoyt
Hi! I'm going through the rspec book in beta form right now and hit a snag in chapter three. I am developing an application in parallel to the book example instead of writing the book example word for word. To the best of my knowledge, I have duplicated a parallel example of the book example, chan