aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/fixtures_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/fixtures_helper.rb')
-rw-r--r--spec/support/fixtures_helper.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/support/fixtures_helper.rb b/spec/support/fixtures_helper.rb
new file mode 100644
index 000000000..81f6ce838
--- /dev/null
+++ b/spec/support/fixtures_helper.rb
@@ -0,0 +1,15 @@
+module Support
+ module FixturesHelper
+ def fixtures_path *segments
+ Rails.root.join( fixture_path, *segments )
+ end
+
+ def read_fixture *segments
+ File.read(fixtures_path(*segments))
+ end
+ end
+end
+
+RSpec.configure do |c|
+ c.include Support::FixturesHelper
+end