[rspec-users] describe 'a spec for a helper that takes a block' i.should need_to_do_this?

2009-04-27 Thread Higgaion
i have a helper like this: def swf_upload_tag( upload_url, options = {}, &block) # irelavant stuff removed button_text = capture(&block) unless button_text.blank? options.merge!( :button_text => button_text ) end # irelavant stuff removed concat( content_tag( :div, '

Re: [rspec-users] --options file quirky with --drb

2009-03-05 Thread Higgaion
On Mar 5, 3:18 pm, Higgaion wrote: > On Mar 5, 1:09 pm, David Chelimsky wrote: > > > On Thu, Mar 5, 2009 at 12:32 PM, Higgaion > > wrote: > > > putting --drb in my spec.opts file has some unexpected results. > > > > $ spec --drb --colour --for

Re: [rspec-users] --options file quirky with --drb

2009-03-05 Thread Higgaion
On Mar 5, 1:09 pm, David Chelimsky wrote: > On Thu, Mar 5, 2009 at 12:32 PM, Higgaion wrote: > > putting --drb in my spec.opts file has some unexpected results. > > > $ spec --drb --colour --format specdoc --loadby mtime --reverse -G > > spec/spec.opts > > $ spec

[rspec-users] --options file quirky with --drb

2009-03-05 Thread Higgaion
putting --drb in my spec.opts file has some unexpected results. $ spec --drb --colour --format specdoc --loadby mtime --reverse -G spec/spec.opts $ spec spec/models/a_model_spec.rb -O spec/spec.opts $ it just returns right away, with no output. but... $ spec --colour --format specdoc --loadby m

Re: [rspec-users] Rails: View specs and implicit parameters in link_to()

2008-11-22 Thread Higgaion
I'm in the same boat - trying to test a helper that uses the implicit :controller in a link_to, and I get an exception from rails: ActionController::RoutingError in 'ApplicationHelper breadcrumbs should return a link to elems section' Need controller and action! /opt/local/lib/ruby/gems/1.8/gems/ac