Say I do:

```ruby
object.method 5.days.ago
```

In the test I want to test using should_receive like:

```ruby
object.should_receive(:method).with(5.days.ago)
```

This will fail since two time objects aren't exact the same.

What is the general pattern for testing this in rspec?

Thanks
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to