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

David Chelimsky dchelimsky at gmail.com
Sun Apr 26 17:17:42 EDT 2009


On Sun, Apr 26, 2009 at 3:45 PM, G. Brandon Hoyt <qrprat77 at gmail.com> 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 knowledge,
> I have duplicated a parallel example of the book example, changing what
> needed to be changed to fit my example.  Currently, I have a failing
> spec when the book says my spec shouldn't be failing.
>
> http://pastie.org/458945
> that is the failing spec

You've got the message expectation (should_receive) on the wrong
object - it should be on the messenger, not the program.

HTH,
David

>
> here are my system specifications:
> OS: Ubuntu 8.10_AMD64
> ruby -v ruby 1.8.8p1 (2009-04-09 revision 23162) [x86_64-linux]
> rspec -v rspec 1.2.4
>
> http://pastie.org/458949
> Here is the actual code that fails the spec.
> any ideas?
> I think I'm missing a require somewhere, that's what my gut is telling
> me.



> --
> *******************************************************
> *******************************************************
>                 From G. Brandon Hoyt
>                     863-397-7036
>                 "Do the RIGHT thang!"
>                 --Uncle Kenny
>
>                                 de KG4GVL clear
> *******************************************************
> *******************************************************
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkn0x+cACgkQf3s7GyRXBzRe1QCeJgBAk6jJX4xinYTZYyQ05ngm
> aGUAn1hU6grPNIXgoTYAW4t79a1qjOdq
> =cn4o
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list