```ruby
require 'spec_helper'

feature 'cookbook owners can undeprecate a cookbook' do
  let(:cookbook) { create(:cookbook, deprecated: true, replacement: create(:cookbook)) }
  let(:user) { cookbook.owner }

  before do
    sign_in(user)
    visit cookbook_path(cookbook)
    follow_relation 'undeprecate'
  end

  it 'displays a success message' do
    expect_to_see_success_message
  end

  it 'it no longer displays a deprecation notice' do
    expect(page).to have_no_content("#{cookbook.name} has been deprecated")
  end
end
```

Update feature spec to check for new content.
user
```ruby
require 'spec_helper'

feature 'cookbook owners can undeprecate a cookbook' do
  let(:cookbook) { create(:cookbook, deprecated: true, replacement: create(:cookbook)) }
  let(:user) { cookbook.owner }

  before do
    sign_in(user)
    visit cookbook_path(cookbook)
    follow_relation 'undeprecate'
  end

  it 'displays a success message' do
    expect_to_see_success_message
  end

  it 'it no longer displays a deprecation notice' do
    expect(page).to have_no_content("#{cookbook.name} cookbook has been deprecated")
  end
end
```
assistant