Hi 

  First of all thanks everyone for helping.

  I have view partial file 

  # app/views/reports/_lead_report_search.html.haml

  - if show_sold_by_options?
       = f.input :resource_key, input_options({label: 'Sold By'})
  - else
      - value = "#{current_resource.id}@@#{current_resource.class.name}"
      = f.input :resource_key, input_html: {value: value}, wrapper_html: 
{class: :hidden}, selected: param[:resource_key]


   # app/helpers/reports_helper.rb
    def show_sold_by_options?
        if is_lead_report
           is_org_user?
        end
    end

    I want to test whether method method has been called when view has been 
rendered? How can I test?

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/1426b34e-0bcd-453b-9c2a-e0846cb988cd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to