Re: [rspec-users] Testing a FormBuilder

2009-06-22 Thread Peer Allan
Yep, that solved it. Thanks! On Mon, Jun 22, 2009 at 3:02 PM, David Chelimsky wrote: > On Mon, Jun 22, 2009 at 2:57 PM, Peer Allan > wrote: > > Thanks David, I completely missed that in your first response. > > No problem. Let me know if it helps :) > > > Peer > > > > On Mon, Jun 22, 2009 at 2:3

Re: [rspec-users] Testing a FormBuilder

2009-06-22 Thread David Chelimsky
On Mon, Jun 22, 2009 at 2:57 PM, Peer Allan wrote: > Thanks David, I completely missed that in your first response. No problem. Let me know if it helps :) > Peer > > On Mon, Jun 22, 2009 at 2:31 PM, David Chelimsky > wrote: >> >> On Mon, Jun 22, 2009 at 2:07 PM, Peer Allan >> wrote: >> > Still h

Re: [rspec-users] Testing a FormBuilder

2009-06-22 Thread Peer Allan
Thanks David, I completely missed that in your first response. Peer On Mon, Jun 22, 2009 at 2:31 PM, David Chelimsky wrote: > On Mon, Jun 22, 2009 at 2:07 PM, Peer Allan > wrote: > > Still having trouble, here is my code. > > Code: > > class MyFormBuilder < ActionView::Helpers::FormBuilder > >

Re: [rspec-users] Testing a FormBuilder

2009-06-22 Thread David Chelimsky
On Mon, Jun 22, 2009 at 2:07 PM, Peer Allan wrote: > Still having trouble, here is my code. > Code: > class MyFormBuilder < ActionView::Helpers::FormBuilder >   def custom_select(field_name, *args) >     field_name ||= :salutation >     salutations = > Lookup.for_type_and_column('Contact','salutati

Re: [rspec-users] Testing a FormBuilder

2009-06-22 Thread Peer Allan
Still having trouble, here is my code. Code: class MyFormBuilder < ActionView::Helpers::FormBuilder def custom_select(field_name, *args) field_name ||= :salutation salutations = Lookup.for_type_and_column('Contact','salutation').map{|lookup| lookup.description} select(field_name, sa

Re: [rspec-users] Testing a FormBuilder

2009-06-22 Thread David Chelimsky
On Mon, Jun 22, 2009 at 12:53 PM, Peer Allan wrote: > Hello all, > In a bit of a conundrum here.  I have a custom form builder I am trying to > test and can't seem to get it to work.  I found this > http://www.pathf.com/blogs/2007/12/rspec-and-rails/ Things have changed a bit since Dec 07. The hel