How to test for blank elements when using culerity
While preparing for a presentation on Scala, I added some jokes on the functional languages. Here’s the original version and the new editions Erlang You create a dozen clones of youself, pass the gun to one another in turn to shoot at each other’s foot Python You have to align your foot 10 steps below [...]
Ruby facets has a lot of useful libraries. Sometimes you only want to load the ones that you need. Here’s a little snippet that you can use Rails won’t load facets as the ‘lib’ param is false. We then load the libraries manually through initializers. This helps when facets unwittingly clobbers some of the other [...]
I was using thoughtbot’s paperclip to attach files. I realised that paperclip only provide shoulda macros for test::unit. No cucumber macros? In the end, I got to write it. Its very simple. The feature is shown here: Define your steps: As celerity does not have an attach_file method, I got to write my own. You [...]