diff options
| author | Robert | 2017-07-23 22:56:12 +0200 |
|---|---|---|
| committer | Robert | 2017-07-25 21:31:51 +0200 |
| commit | fe46c7832fa1e0c6af450f0937aea3534c0f6b01 (patch) | |
| tree | 60670a6ac730a081c3627f25a44c0bd78ea90d3a /spec/support/fixtures_helper.rb | |
| parent | 384a06676b8e0985f39fbc894a2d7dd458823529 (diff) | |
| download | chouette-core-fe46c7832fa1e0c6af450f0937aea3534c0f6b01.tar.bz2 | |
Refs: #3507;20h Specing and Implementing the ZipService
Diffstat (limited to 'spec/support/fixtures_helper.rb')
| -rw-r--r-- | spec/support/fixtures_helper.rb | 15 |
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 |
