diff --git a/lib/beaker-rspec/spec_helper.rb b/lib/beaker-rspec/spec_helper.rb index 07a63fd..798fdf6 100644 --- a/lib/beaker-rspec/spec_helper.rb +++ b/lib/beaker-rspec/spec_helper.rb @@ -37,7 +37,7 @@ options = defaults.merge(env_vars) # process options to construct beaker command string - nodesetdir = options[:nodesetdir] || dir.join('spec', 'acceptance', 'nodesets') + nodesetdir = options[:nodesetdir] || File.join('spec', 'acceptance', 'nodesets') nodesetfile = options[:nodesetfile] || File.join(nodesetdir, "#{options[:nodeset]}.yml") fresh_nodes = options[:provision] == 'no' ? '--no-provision' : nil keyfile = options[:keyfile] ? ['--keyfile', options[:keyfile]] : nil