You can do this like:

```ruby
time = Time.now
DateTime.stub(:now).and_return(time)
todo.update_issue_timestamp
todo.issue.updated_at.should == time
```