Refactor sinatra application call in spec_helper