From: dblack@... Date: 2006-10-09T22:03:11+09:00 Subject: Re: [ANN] HTML reporter for Test::Unit Hi -- On Mon, 9 Oct 2006, Gregory Brown wrote: > On 10/8/06, Tim Kuntz wrote: >> This is great. Easy to setup with my Rails tests. >> >> Did run into a problem with the Ruby Test::Unit though. Seems as if there >> are Rails dependencies (see line below) that aren't mentioned in the setup >> instructions. I might be missing something obvious though. >> >> > cattr_accessor :app_name, :user >> >> Thanks for the excellent contribution. > > Is that 'class attribute accessor'? If so, try just replacing it with > > class << self; attr_accessor :app_name, :user; end If it's the Rails cattr_accessor then it uses class variables rather than instance variables. It wouldn't be a bad idea to rewrite it to use instance variables, though -- or perhaps rename it -- since class variables are not object-specific and are therefore not really capable of storing object "attributes". David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org