aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
authorRobert2017-07-31 14:57:30 +0200
committerRobert2017-07-31 14:57:30 +0200
commit54856654f0e7c1802ab785f8dff689f35c92fe80 (patch)
tree6b9e06f91f0b852eb3158aa0181483ed33d8f8b6 /spec/support
parent609b774388a7f57703ec14a224363c88f3564eaf (diff)
downloadchouette-core-54856654f0e7c1802ab785f8dff689f35c92fe80.tar.bz2
Refs: #3507@2h CR 2nd leg
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/fixtures_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/fixtures_helper.rb b/spec/support/fixtures_helper.rb
index 81f6ce838..20963261b 100644
--- a/spec/support/fixtures_helper.rb
+++ b/spec/support/fixtures_helper.rb
@@ -4,6 +4,9 @@ module Support
Rails.root.join( fixture_path, *segments )
end
+ def open_fixture *segments
+ File.open(fixtures_path(*segments))
+ end
def read_fixture *segments
File.read(fixtures_path(*segments))
end