Decouple rspec from implementation