Forum: RSpec How to test helpers in a Sinatra app?

Posted by Chris Gunnels (ballhogjoni)
on 2010-03-10 18:03
I am using rspec and trying to test some helpers, but for some reason
can't get rspec to read my methods in my helpers.rb file. I include the
helpers file in the helpers spec...in the spec I run a test with a
method from my helpers file and I get an error saying: undefined method
for my_method

Any ideas suggestions, that'd be great.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.