Author Archives: Nat

Announcing ‘responsalizr’ – test HTTP Response Codes in Ruby

Get it here: gem install responsalizr Responsalizr is a very small and very simple gem I’ve written that extends the standard ruby Net::HTTPResponse class with a few methods to allow for idiomatic testing of HTTP response codes. The methods added … Continue reading

Posted in Automated Testing, Example Code, Making Life Easier, Ruby, Tools, responsalizr | Tagged , , , , | Leave a comment

Bewildr + Cucumber Example

The DotNetDevDude has a good write up on how he got started with cucumber and bewildr. Take a look! Bookmark to:

Posted in Automated Testing, bewildr | Tagged , | 1 Comment

Counting strings in a file: Ruby vs Windows Command shell

This is not the usual material that I put up, but I’d like to immortalize an event that demonstrated yet again the beauty of Ruby for basic file manipulation, especially in contrast to doing the same in a Windows command … Continue reading

Posted in Making Life Easier, Mistakes, Ruby, Tools | Tagged , , , | 2 Comments

IronRuby vs. Gherkin – a temporary fix

IronRuby doesn’t currently work with the latest versions of cucumber. This is a known bug and is a real pain. There is a work around, and it’s kinda rubbish: don’t use any versions of cucumber > 0.6.3. After that version, … Continue reading

Posted in IronRuby, Making Life Easier, Ruby, Tools, cucumber | Tagged , , , , | Leave a comment

Learning Ruby? Here’s the book for you…

Something I get asked over and over again: “Can you recommend a book that will improve my ruby skills?” There are quite a few ruby books out there, but here’s what has become my standard answer: “Learning Ruby“, published by … Continue reading

Posted in Automated Testing, Books, Ruby, Tools | Tagged , , , | Leave a comment

Announcing ‘bewildr’ – test your WPF UI apps with IronRuby

Get it here: http://www.bewildr.info After writing an automation framework to test a WPF GUI using IronRuby and White, I decided to write a ruby-specific gem for automating WPF UI tests. Kinda like Watir, but for WPF instead of the web. The … Continue reading

Posted in Automated Testing, Example Code, IronRuby, Tools, bewildr | Tagged , , , , , | 3 Comments

How to get the submodules of a ruby module

I needed to be able to find out what modules were defined inside a particular ruby module. Kinda like wanting to find out what child namespaces exist for a module. It’s probably more easily explained with an example. Given the … Continue reading

Posted in Example Code, Ruby | Tagged , | Leave a comment