Re: [rspec-users] The problem with learning RSpec

2009-06-13 Thread Ben Mabey
Stephen Eley wrote: Ben and Rick, Thanks very much to both of you for the encouraging responses. Your reply, Ben, came just in time as I was starting to wonder if I had made a complete and irrevocable ass of myself. On Fri, Jun 12, 2009 at 10:36 AM, Ben Mabeyb...@benmabey.com wrote: In

Re: [rspec-users] Can I set params in before[:each] block?

2009-06-13 Thread Randy Harmon
On 6/12/09 1:43 AM, Matt Wynne wrote back to Lee who said: I am wondering if there is a way to avoid having to specify params in each and every example by adding some code to a before[:each] block? There are several ways of doing this. The pattern I tend to us is to create a method that does

Re: [rspec-users] Autospec Infinite Loop ??

2009-06-13 Thread Alexandre Da Silva
David Chelimsky wrote: On Fri, Jun 12, 2009 at 6:42 AM, Alexandre Da Silvali...@ruby-forum.com wrote: rails blogapp cd blogapp script/generate rspec script/generate rspec_scaffold posts title:string body:text rake db:migrate autospec I just copied this all into a shell and the specs

[rspec-users] removing Mocha; 'spec spec' fails but the specific model file passes

2009-06-13 Thread Doug
I happened to mix ryan bates' authentication scaffold with rspec_scaffold on a demo project. and ran into the problem of mixing mock frameworks...ryan uses mocha. So, as a learning experience, I choose to redo ryan's tests without mocha but ran into a strange problem with tests of the User

Re: [rspec-users] removing Mocha; 'spec spec' fails but the specific model file passes

2009-06-13 Thread David Chelimsky
On Sat, Jun 13, 2009 at 4:30 PM, Dougdgoldi...@gmail.com wrote: I happened to mix ryan bates' authentication scaffold with rspec_scaffold on a  demo project. and ran into the problem of mixing mock frameworks...ryan uses mocha. So, as a learning experience, I choose to redo ryan's tests