I'm pretty new to integration testing and I'm not sure how to define tests. I saw an example of someone doing it this way, so that's the way I formed mine. What is the best way to write a normal test that allows me to set the "user_id" session variable so that the "get" can successfully happen?
-Kyle Frederick Cheung wrote: > On 7 May 2009, at 11:26, Kyle Peyton <rails-mailing-l...@andreas- > s.net> wrote: > >> def user_for_test >> open_session do |thing| >> def user.access_project_index_page > > Actually it is the above line that is raising the exception - there is > no user variable / method in scope here. > This code lois pretty strange - are you really trying to define > singleton methods on users? > > Fred -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

