whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Allow access to fixtures
Date Wed, 06 Mar 2019 00:18:50 GMT
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 <sebb@apache.org>
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


Mime
View raw message