June 2nd 2012

Helpful iOS Stackoverflow Posts

I have been learning Objective C / iOS on the side for the past several months now. I have worked through several books and some of the apple documentation. I am working on a non-trivial application now and as normal Stack Overflow as been a great resource…

January 18th 2012

Internals Visible To

I was working on an HttpModule today that I will try and blog about later. I wanted to make an interface that I was programming against internal. This of course broke my unit tests. Luckily

August 24th 2011

Capybara InvalidSelectorError - Selenium Issue 2099

This morning I tried running our entire capybara suite and a ton of tests failed due to an issue with the Selenium Webdriver. It took some searching and tinkering to come up with the fix below.

The following links were very helpful and provided most of the patch below that I added prior to the code that runs the tests:

August 6th 2011

Knockout JS

I have known about knockout.js for quite a while now. It’s one of those libraries that gets a lot of coverage, I just haven’t had the time to check it out.

From the introduction:

Knockout is a JavaScript library that helps you to create rich, responsive display and editor user interfaces with a clean underlying

August 6th 2011

Check Active Element with Capybara

The other day, I wanted to test that a certain element had the focus with capybara. This is what I came up with:

assert(@s.evaluate_script('document.activeElement')[:id] == 'IdOfElement', 'The element did not have the focus')

Note: @s is my session. I am managing session myself as I am testing a non rack app…