On Fri, Sep 26, 2008 at 10:24 AM, Scott Taylor <
[EMAIL PROTECTED]> wrote:


> I usually end up doing something like this:
>
>   columns = [:email, :message]
>   columns.each do |column|
>     it "should have a reader and writer for the column #{column}" do
>       @invite.should respond_to(column)
>       @invite.should respond_to("#{column}=")
>     end
>   end
>

That looks like a really good way to do this - thanks! Beyond that, as they
say, you're testing ActiveRecord.

///ark
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to