aboutsummaryrefslogtreecommitdiff
path: root/test/test_plugin_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_plugin_helper.rb')
-rw-r--r--test/test_plugin_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_plugin_helper.rb b/test/test_plugin_helper.rb
new file mode 100644
index 0000000..4d59d38
--- /dev/null
+++ b/test/test_plugin_helper.rb
@@ -0,0 +1,6 @@
+# This calls the main test_helper in Foreman-core
+require 'test_helper'
+
+# Add plugin to FactoryGirl's paths
+FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
+FactoryGirl.reload