Submitting spec for ready_for_accepted method on the issue class

Commiting a spec for the ready_for_accepted method on the issue model. Also some refactoring of the issue model.