Add rspec support

Not fully covered yet, but a start.