Features and requests tests have changed

Or rather, Capybara has changed

Capybara 2.0

To use Capybara 2.0, you need rspec-rails-2.11.1 or greater.

Capybara::DSL is added to examples in:

  • spec/features

Capybara::RSpecMatchers is added to examples in:

  • spec/features
  • spec/controllers
  • spec/views
  • spec/helpers
  • spec/mailers


Capybara 1.x

Capybara::DSL is added to examples in:

  • spec/requests # included by Capybara
  • spec/controllers

Capybara::RSpecMatchers is added to examples in:

  • spec/requests # included by Capybara
  • spec/controllers
  • spec/views
  • spec/helpers
  • spec/mailers

Found it in the doc, which is correct. As we use capybara 2.3.0 and rspec-rails 3.0.1.

Common partial for creating bootstrap dropdown

This is like scratch-your-own-itch thing. When you realize you’re doing same thing over and over again.

Instead of adding the code above in every places I need it, I move them in a partial and include like the code below.

Lolcommits for Yammer

It’s been merged for release! :)

Checkout code:

git clone https://github.com/mrclmrvn/lolcommits.git
cd lolcommits
gem build lolcommits.gemspec

Go to your project directory

$ cd my_app
$ gem install ../lolcommits/lolcommits-0.5.2.gem

Enable lolcommits

lolcommits --enable

Then configure Yammer

lolcommits --config

Type yammer in the prompt, and follow the next instructions.

Post your lolcommits image in Yammer when you commit!


* to be tracked, lol


Spent some time with the elderlies

It’s my birthday today, and we decided, my sister and I (her birthday was yesterday), to spend it with the elderlies near our hometown. Different from what would probably flood your newsfeed tonight about gifts, reunions, greetings, parties or the usual selfies or groupies, we choose to spend some time first before Christmas Eve with elderlies at Bahay Puso, Balanga, Bataan. Who knows when they had their last visit from their family was, or if they still have relatives out there.

Initially, I wanted this to happen silently. Because I remember a verse in Mathew since childhood – “But when you give to the needy, do not let your left hand know what your right hand is doing”. I know what it means, but discussing it with my family and few friends helped me push myself and make it happen, of course, with their help. And as the day approaches, some part of me is saying this will never see the light of day, I fear. But lately, with the recent calamities that hit our land, I’m now living up to the idea (which I had few serious long discussion about it with my significant other) – That if you want to give, just give, don’t think! Because when you reason, you probably won’t be able give at all. Don’t expect anything in return, just give, nothing more! Don’t even think of the reward in heaven. Don’t even think that the people who will receive it will be ungrateful. Don’t even think what the people will say. Will it be good to the recipient or not. Like what you are thinking right now, I don’t give an f haha! And also add up the news that Aetas were able to donate their harvest, Tawi kids worked to share a kilo of rice, sardines and thirty pesos. It would be so damn shameful for us who eats thrice or more in a day not to do anything. And here, looking no farther, is a place for elders needing attention, aside from the staff at Bahay Puso.

Today, with the help of my family, we’re just here to give

The publicising part is to set an example, or perhaps was affected that Catholicism has undergone evolutionary changes, to become modern and reasonable religion as Pope Francis said. Look how Yolanda relief operation ran unmonitored, that topic seriously deserves it’s own post.

Anyway, here are some photos:

One elder asked from which apostolate were we representing, I said “Wala po Lola, kami po bilang pamilya ay masaya na ng magkakasama, gusto lang po namin ibahagi at makibahagi rin sa inyo ngayong pasko”. After saying that and repeated it to myself, I thought it wasn’t that bad.

And here’s the feeling accomplished pose:

Here are some photos that should not be posted:

Afterwards, a visit in provincial jail because we need to, different story and a sad one. But we cannot bring in phones or cameras inside. So here’s while we were waiting for the gate to open.

While inside the jail, this time of the year, all seems normal and almost everyone had visitors. Laughing and sharing food on benches and tables, couples like dating in the park. And guess what, they were preparing five lechon and it was almost done just before we left.

And lastly, we involved the kids but made sure they understand our reason.

Anything about programming, and a little about me (I hope)