Month: June 2014

structuring your RSpec project

it is an established convention to put all your rails tests or spec in the test/spec folder. even jasmine javascript files go in spec/javascripts… seriously, wtf? cucumber features on the other hand go in the features folder… so? while i don’t like cucumber (because of the additional complexity that comes with gherkin), i like the […]

monkey-patching Rails

I’ve been working a bit on a rails plugin for debugging html templates that we use at Shopify called partially_useful. It’s a very simple helper that adds HTML-comments to the rendered source, so that you can inspect it easily in your browser’s developer toolbar. The comment hints look like this: <— start rendering ‘some_partial’ with […]