Created
December 27, 2014 10:47
-
-
Save rShetty/d740955288c82ac688d7 to your computer and use it in GitHub Desktop.
Off By One Second Errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time = Time.now | |
Timecop.freeze(time) do | |
merchant.mark_as_review_approved_by(admin_user) | |
end | |
expect(merchant.reload.last_reviewed_at.utc.to_s).to eq(time.utc.to_s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment