I am using Ruby on Rails 4 and the rspec-rails gem 2.14. For a my object I would like to compare the current time with the updated_at object attribute after a c
updated_at
I find using the be_within default rspec matcher more elegant:
be_within
expect(@article.updated_at.utc).to be_within(1.second).of Time.now