# How to test plugins?

**URL:** <https://www.ruby-forum.com/t/how-to-test-plugins/135609>\
**Category:** Rails\
**Created:** [April 23, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/how-to-test-plugins/135609 "2008-04-23T16:06:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g0nzo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3bc359/32.png) [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Post date:** [April 23, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/how-to-test-plugins/135609/1 "2008-04-23T16:06:53Z")

</div>

Hi,

I’m writing very simply plugin that simply installs some stuff into  
public folder and provides wrapper over link\_to helper.

I’m trying to write tests for it, but I’m getting “undefined link\_to  
method” error when I try to run tests (my “custom\_link\_to” helper uses  
“link\_to”). The plugin itself works fine. Here’s the code:  
[Parked at Loopia](http://pastie.caboo.se/185467) . Using Rails 1.2.6.

Regards
