Re: [rspec-users] Testing helper methods in rspec

2008-03-12 Thread Jarkko Laine
On Wed, Mar 12, 2008 at 3:54 PM, James B. Byrne <[EMAIL PROTECTED]> wrote: > This is perhaps a naive question, but what is the recommended manner of > testing a helper method in rspec? You just describe the helper module and call the helper method like you'd do in the views: require File.dirname

[rspec-users] Testing helper methods in rspec

2008-03-12 Thread James B. Byrne
This is perhaps a naive question, but what is the recommended manner of testing a helper method in rspec? I have created a simple string manipulation function and I want to write some tests for it. It it were a script then I would just add if __FILE__ == $0 and add the tests below that but I do n