I''ve just installed restful_authentication, and generated: script/generate authenticated user session Now, if I try to run unit tests, I get the following error: test/unit/user_test.rb:7:in `<class:UserTest>'': undefined method `fixtures'' for UserTest:Class (NoMethodError) Any help would be welcome. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 18, 8:50 pm, Jeff Schwab <j...-0DHsjr3A8/m6BbymS3xAUA@public.gmane.org> wrote:> I''ve just installed restful_authentication, and generated: > > script/generate authenticated user session > > Now, if I try to run unit tests, I get the following error: > > test/unit/user_test.rb:7:in `<class:UserTest>'': undefined method > `fixtures'' for UserTest:Class (NoMethodError) >what does that file look like ? Fred> Any help would be welcome.--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 18, 6:05 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mar 18, 8:50 pm, Jeff Schwab <j...-0DHsjr3A8/m6BbymS3xAUA@public.gmane.org> wrote: > I''ve just installed restful_authentication, and generated: > > > script/generate authenticated user session > > > Now, if I try to run unit tests, I get the following error: > > > test/unit/user_test.rb:7:in `<class:UserTest>'': undefined method > > `fixtures'' for UserTest:Class (NoMethodError) > > what does that file look like ?It''s the default test case generated by restful_authentication. Several other methods were missing, as well. The test class seems to use the wrong base class for some reason; I''ve just worked around it locally, and filed a ticket: http://rails_security.lighthouseapp.com/projects/15332/tickets/44-undefined-method-fixtures Thanks, though! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---