Refactor specs and added ruby version