lib/rspec-system/spec_helper.rb in rspec-system-1.3.0 vs lib/rspec-system/spec_helper.rb in rspec-system-1.4.0
- old
+ new
@@ -20,10 +20,14 @@
def nodeset
Pathname.new(File.join(File.basename(__FILE__), '..', '.nodeset.yml'))
end
+ def custom_prefabs_path
+ File.expand_path(File.join(File.basename(__FILE__), '..', '.prefabs.yml'))
+ end
+
def rspec_system_config
YAML.load_file('.nodeset.yml')
end
# Grab the type of virtual environment we wish to run these tests in
@@ -40,10 +44,10 @@
def rspec_system_node_set
setname = ENV['RSPEC_SET'] || rspec_system_config['default_set']
config = rspec_system_config['sets'][setname]
options = {}
options[:destroy] = rspec_destroy
- RSpecSystem::NodeSet.create(setname, config, rspec_virtual_env, options)
+ RSpecSystem::NodeSet.create(setname, config, rspec_virtual_env, custom_prefabs_path, options)
end
def start_nodes
ns = rspec_system_node_set