rspec/rspec-expectations — pull request #167 by andriusch (2012-08-25 07:40:33+00:00)
Title: "time =~ other_time" matcher

Need for this matcher is best shown with example code:

```ruby
Timecop.freeze(Time.now) # or Time.stub(:now).and_return(Time.now)
user = User.create! # user for example ActiveRecord object
user.reload.created_at.should == Time.now # fails since time field loses milliseconds after reload
```

So the only other options would be to use be_within (which is more for floats and if I remember correctly doesn't work that well with time objects) or convert times to integers (which then loses readability if test fails).