Example Depot application from Agile Web Development with Rails 4
Thoughts as I go through the example application.
Product controller functional tests per the playtime section in chapter 8.
Verifying that product description is getting truncated to 80 characters or less.
I spent a lot of time searching around for a way to strip the HTML tags from the HTML::Tag object that is returned from the css_select method.
I finally ended up including ActionView::Helpers::SanitizeHelper and using the strip_tags method.
This seems overkill for just removing simple HTML tags.
Is it possible to de something like css_select("dd").map { &:text ) and I'm just not seeing it?
Store controller functional tests
In the functional test I ended up using the session variable directly, this makes the test too brittle for my liking.
I'd like to get a hold of the @count variable directly. Need to look deeper into how to do this, might not even be possible.
For caching example see the turn-on-caching branch.