You don't need before and after hooks.Because specs for serverspec don't run command actually.

See: https://github.com/mizzy/serverspec/blob/master/spec/spec_helper.rb