# Learning rspec issues

**URL:** <https://www.ruby-forum.com/t/learning-rspec-issues/129208>\
**Category:** Rails\
**Created:** [February 15, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/learning-rspec-issues/129208 "2008-02-15T14:18:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sotirac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Post date:** [February 15, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/learning-rspec-issues/129208/1 "2008-02-15T14:18:48Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![sotirac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Post date:** [February 15, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/learning-rspec-issues/129208/2 "2008-02-15T14:29:47Z")

</div>

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…)

---

<div class="post-metadata">

**Author:** ![sotirac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Post date:** [February 16, 2008, 3:30am UTC](https://www.ruby-forum.com/t/learning-rspec-issues/129208/3 "2008-02-16T03:30:36Z")

</div>

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. \<  
removed\_email\_address@domain.invalid\> 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/](http://www.ruby-forum.com/).
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

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

---

<div class="post-metadata">

**Author:** ![sotirac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Post date:** [February 19, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/learning-rspec-issues/129208/4 "2008-02-19T14:20:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sotirac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Post date:** [February 16, 2008, 7:36am UTC](https://www.ruby-forum.com/t/learning-rspec-issues/129208/5 "2008-02-16T07:36:40Z")

</div>

On Feb 15, 2008 8:17 AM, sotirac [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [Parked at Loopia](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.

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](http://rspec.info/documentation/rails/install.html) for more info.

Cheers,  
David
