Skip to content

Commit

Permalink
Merge pull request zombocom#4 from racheldonovan/master
Browse files Browse the repository at this point in the history
RSpec addition into README
  • Loading branch information
schneems committed Mar 26, 2012
2 parents 2aa749a + b3341e0 commit 5807744
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -175,6 +175,17 @@ Controller Tidbits:
render_wizard(@user) # Shows next_step if @user.save, otherwise renders current step
```
Testing with RSpec
```ruby
# Test find_friends block of show action
get :show, :id => :find_friends

# Test find_friends block of update action
put :update, {'id' => 'find_friends', "user" => {"id"=>@user.id.to_s}}

```

Finally:

Don't forget to create your named views
Expand Down

0 comments on commit 5807744

Please sign in to comment.