Closed p12y closed 7 years ago
@ptylde Hi, you should test it like this
render text: helper.no_show_count_row
Still get the same error running the test like that. I tried including the helper module in the rspec config block with no luck. However, if I add include SemanticIconHelper
to my spec file, the error goes away and the tests pass.
My apologies, I figured out what the problem was. I forgot that I had set config.action_controller.include_all_helpers = false
in my app's config. Thanks for the help!
I'm testing a helper with rspec and I'm getting an undefined method error for the semantic_icon() helper. The helper works fine in the development environment.
Is there a way to include the helper in rspec config?