I'm not sure if this is a good idea or not (or even if this exact syntax works) but maybe you could do something like this here instead? You could even probably move the `it { should_not validate_presence_of(:replacement) }` outside of the context as the default Cookbook shouldn't be deprecated but this is a bit more explicit. I'm just thinking this is a bit easier to read... but maybe not? Thoughts?

```ruby
context 'the cookbook is deprecated' do
  subject { Cookbook.new(deprecated: true) }

  it { should validate_presence_of(:replacement) }
end

context 'the cookbook is not deprecated' do
  subject { Cookbook.new(deprecated: false) }

  it { should_not validate_presence_of(:replacement) }
end
```