spec/spec_helper.rb in serverspec-0.4.14 vs spec/spec_helper.rb in serverspec-0.5.0
- old
+ new
@@ -1,10 +1,9 @@
require 'serverspec'
require 'pathname'
+require 'rspec/mocks/standalone'
-include Serverspec::Helper::Exec
-
PROJECT_ROOT = (Pathname.new(File.dirname(__FILE__)) + '..').expand_path
Dir[PROJECT_ROOT.join("spec/support/**/*.rb")].each { |file| require(file) }
module Serverspec
@@ -24,9 +23,18 @@
:stderr => ::RSpec.configuration.stderr,
:exit_status => 0,
:exit_signal => nil
}
end
+ end
+ end
+ end
+
+ module Type
+ class Base
+ def command
+ cmd = backend.build_command('command')
+ backend.add_pre_command(cmd)
end
end
end
end