For the specific case of subject definition, I believe rspec understands a `subject` block, like this:

```ruby
subject {
  Class.new.new
}
```