[rspec-users] how to test this view with Rspec

Zhenning Guan lists at ruby-forum.com
Sat Mar 14 09:12:42 EDT 2009


= flash_messages
- @user = User.find(1)
- if current_user == @user
  %new_forum= link_to 'new forum', new_forum_path

- @forum.each do |f|
  .group
    = link_to f.name, forum_path(f)
    - if current_user == @user
      = link_to 'edit', edit_forum_path(f)
      = link_to 'destroy', forum_path(f), :method => :delete

==
does anyone have some good example?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list