That still has to assign `mapping` to `row.find(:css, '.action')` and in your example it wouldn't do it if `path == '/'`, which it shouldn't care about at that point in the code?

What about:

```ruby
unless @site.global_http_status.present?
  mapping = row.find(:css, '.action')
  unless path == '/'
    path = site_mapping_find_path(@site, path: path, return_path: site_hits_path(@site))
    expect(mapping).to have_link('', href: path)
  end
end
```