Sha256: 90d2dbc5ee8dd5a961a60bdbb85347dc832029ab6c5506e450e47c06b75cb007
Contents?: true
Size: 696 Bytes
Versions: 36
Compression:
Stored size: 696 Bytes
Contents
module ExplicitHelper def method_in_explicit_helper "<div>This is text from a method in the ExplicitHelper</div>" end # this is an example of a method spec'able with eval_erb in helper specs def prepend(arg, &block) begin # rails edge after 2.1.0 eliminated need for block.binding concat(arg) + block.call rescue concat(arg, block.binding) + block.call end end def named_url rspec_on_rails_specs_url end def named_path rspec_on_rails_specs_path end def params_foo params[:foo] end def session_foo session[:foo] end def request_thing request.thing end def flash_thing flash[:thing] end end
Version data entries
36 entries across 36 versions & 7 rubygems