This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new bbca23d Allow access to fixtures
bbca23d is described below
commit bbca23dbae64d5bef5cf9dc05ac9b134555a4559
Author: Sebb <[email protected]>
AuthorDate: Wed Mar 6 00:18:48 2019 +0000
Allow access to fixtures
---
lib/spec/spec_helper.rb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/spec/spec_helper.rb b/lib/spec/spec_helper.rb
index 8db5339..577cab0 100644
--- a/lib/spec/spec_helper.rb
+++ b/lib/spec/spec_helper.rb
@@ -1 +1,9 @@
$LOAD_PATH.unshift '/srv/whimsy/lib'
+
+unless defined?(SPEC_ROOT)
+ SPEC_ROOT = File.join(File.dirname(__FILE__))
+end
+
+def fixture_path(*path)
+ File.join SPEC_ROOT, 'fixtures', path
+end