Here’s a simple way to add rvm to your zsh prompt. I think it should work for bash too. It’ll only show when rvm is in use. And here’s how it looks. [URL=http://img252.imageshack.us/i/rvmzshprompt.png/][IMG]http://img252.imageshack.us/img252/1047/rvmzshprompt.png[/IMG][/URL]
Tags:
rvm,
zsh
How to test for blank elements when using culerity
Tags:
cucumber culerity rails,
Rails
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 [...]
Tags:
Rails
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 [...]
Tags:
Rails
Here’re the code to test the content of the pdfs. But first you need the pdf-reader gem. The feature file is above. Add the code above as a helper file. And lastly, the steps. Remember to add a @pdf tag to your feature files.
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 [...]
Tags:
cucumber,
Rails,
Software,
testing
For people using the action mailer cache delivery plugin, you can now add the email_spec plugin. The email_spec plugin provides many wonderful helpers to test your emails. Both plugins are now integrated. To use them you need to install both my forks of the plugins: action_mailer_cache_delivery email_spec Install them as plugins following the same instructions [...]
In this post, I’ll share what I’ve learnt trying to run an Eclipse PDE build. The specific version is Eclipse 3.2. This took me a while to get right(a few months in fact!). The key to getting it right is getting The Dependencies right. So let’s dive in! Setting up I’m following the example by [...]
This is a sad sad song. Well it happened to be my best friend’s favourite. Reminds her of her Mom. Anyway this is for you MF! F major, capo 1 F Am “When will you be home?” she asks F Am as we watch the planes take off F Am Dm We both know we [...]
Here I would like to share with you the steps to set up the basic project infrastructure. For a project, there’re a few tools which are absolutely necessary to function File Server Project Wiki Continuous Integration Server Bug/Issue Tracking Source Control With these features in mind, I have identified the software necessary to provide all [...]