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…

July 27th 2011

My Vim Setup on Windows

I have been slowing teaching myself how to use vi/vim for quite some time now. I have been using a Visual Studio plugin called ViEmu and I have also been using MacVim some on my Mac. A few days ago