From f0d90c96e9f419e88facce9104b3425751955eef Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Sat, 27 Jul 2013 17:57:48 +0000 Subject: [PATCH] Add rspec fixtures helpers --- spec/spec_helper.rb | 2 ++ spec/support/fixtures_helpers.rb | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 spec/support/fixtures_helpers.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6bda7cf..2c06742 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1 +1,3 @@ require 'producer/core' + +require 'support/fixtures_helpers' diff --git a/spec/support/fixtures_helpers.rb b/spec/support/fixtures_helpers.rb new file mode 100644 index 0000000..0d52c01 --- /dev/null +++ b/spec/support/fixtures_helpers.rb @@ -0,0 +1,7 @@ +module FixturesHelpers + FIXTURE_PATH = File.join(File.dirname(__FILE__), '..', 'fixtures') + + def fixture_path_for(path) + File.join(FIXTURE_PATH, path) + end +end