What about a `with_test_repo` helper that took a block and we clean up afterwards with an `ensure`? Something like:

```ruby
  def with_test_repository(options = {})
    repo = setup_test_repo(options)
    yield
  ensure
    teardown_test_repo(repo)
  end
```