Move spec_helpers into lib to allow inclusion from other ruby apps