spec/spec_helper.rb in soloist-1.0.0.pre vs spec/spec_helper.rb in soloist-1.0.0
- old
+ new
@@ -2,5 +2,14 @@
require "soloist"
require "tempfile"
require "json"
require "tmpdir"
+require "net/ssh/test"
+
+Dir.glob(File.expand_path("../helpers/**/*.rb", __FILE__)) { |f| require f }
+
+RSpec.configure do |config|
+ config.add_setting :tempdir
+ config.before(:each) { RSpec.configuration.tempdir = Dir.mktmpdir }
+ config.after(:each) { FileUtils.rm_rf(RSpec.configuration.tempdir) }
+end