Changed Time.now to Time.current
Changed save to save! for validation trigger
Added test cases
Merge branch 'master' of https://github.com/jatin-baweja/rails-project