move app method inside describe block and use spec_helper for dependencies