Learning rspec issues

For the umpteenth time, in trying to become a better developer, i’m
trying to practice BDD with rspec.

after running the command:

script/generate rspec_scaffold Housing
rake spec

i get the following errors:

http://pastie.caboo.se/152653

this is a fresh install and i immediately get errors after running the
spec command. how do i get rid of these errors so its a successful
rake spec.

would be helpful to see the code, that generates the errors (not all of
them, but the first test function and any setup code that may influence
it, eg loaded fixtures…)

At a guess there’s * a lot* of occurances where he’s calling render
:actionsomeaction instead of render :action => “someaction”. Easy enough
to
fix.

On Fri, Feb 15, 2008 at 11:59 PM, Thorsten M. <
[email protected]> wrote:

would be helpful to see the code, that generates the errors (not all of
them, but the first test function and any setup code that may influence
it, eg loaded fixtures…)

Posted via http://www.ruby-forum.com/.


Ryan B.

Feel free to add me to MSN and/or GTalk as this email.

thanks guys, I did have edge rails and hence I needed to install
rspec’s trunk.
I was using rspec 1.1.3.

On Feb 15, 2008 8:17 AM, sotirac [email protected] wrote:

Parked at Loopia

this is a fresh install and i immediately get errors after running the
spec command. how do i get rid of these errors so its a successful
rake spec.

What versions of rspec and rails are you using? It looks like you’re
using edge rails. If you are, you also have to use rspec’s trunk. See
http://rspec.info/documentation/rails/install.html for more info.

Cheers,
David