Kiran,

I am experiencing this same problem. The methods I have defined in 
ApplicationHelper (app/helpers/application_help.rb) are not available in 
tests, although they do work in dev mode when I use the app via web 
browser. Did you find a solution for this?

Thanks


Kiran DP wrote:
> Hi,
>      I am trying to run functional tests in my application but I am
> getting following error when I am trying to the tests:
> 
> 
>   1) Error:
> test_profile_member_card_visitor_viewing_public(MembersControllerTest):
> ActionView::TemplateError: undefined method `use_wrapper' for
> #<#<Class:0x45cd1dc>:0x8c201c0>
>     On line #1 of app/views/members/profile.rhtml
> 
>     1: <% use_wrapper :standard -%>
>     2: <% show :prototype %>
>     3: <% show :scriptaculous %>
>     4: <% show :lytebox %>
> 
>     E:/MyAptanaProject/Community_sprint_035
> Recent/app/views/members/profile.rhtml:1:in
> `_run_rhtml_47app47views47members47profile46rhtml'

 [backtrace was here...]

>     members_controller_test.rb:320
> 
>                I have a member controller with me, and for member
> controller profile action I have a profile page which includes some view
> helpers through the application helper.(There are some files included
> from application helper.)
>              In above output the I have defined use_wrapper method in
> one of the files included in the application helper.
>              I have tried to resolve the error by including all helpers
> in test helper, but no luck. Please help.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Railsi18n-discussion mailing list
Railsi18n-discussion@rubyforge.org
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to