Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Can't use ERBUtil methods in helper specs #597
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
RSpec's helper specs wrap Rails' helper tests. This would make more sense to fix there, so please submit this to the Rails issue tracker.
FYI if you do - Rails' helper specs work a bit differently - instead of exposing a helper object, they include the helper module right in the test so your example would look like this:
assert_equal link_to(html_escape("<b>hello</b>")), link_to_custom("<b>hello</b>")
Hey David, rails doesn't include it into TestCase--as for the reason, I'm not really clear. And I'm not sure if they even consider it a bug.
In any case, now that I think about it, perhaps rspec should fix this "issue.". Rspec takes the extra mile and does the right thing by giving you a
Just my opinion. Thanks!