```ruby
# Encoding: utf-8
require 'serverspec'

include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS

RSpec.configure do |c|
  c.before :all do
    c.path = '/sbin:/usr/bin'
  end
end
```

Remove Serverspec::Helper for latest major version of serverspec.
user
```ruby
# Encoding: utf-8

require 'serverspec'

set :backend, :exec

RSpec.configure do |c|
  c.before :all do
    c.path = '/sbin:/usr/bin'
  end
end
```
assistant