summaryrefslogtreecommitdiff
path: root/spec/support/fixture_helpers.rb
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-17 20:23:22 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-17 20:23:22 -0700
commit532cfbb18195ba759574e91dc6bd360978045e75 (patch)
treed1dacdf10ad4106671ceb01ae2af7130c247da5d /spec/support/fixture_helpers.rb
parent4b8e7074e62900ed796cc05bb67a7561f40f899a (diff)
Build ProviderExampleGroup for refactored provider tests
Diffstat (limited to 'spec/support/fixture_helpers.rb')
-rw-r--r--spec/support/fixture_helpers.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/fixture_helpers.rb b/spec/support/fixture_helpers.rb
new file mode 100644
index 0000000..7b7b20a
--- /dev/null
+++ b/spec/support/fixture_helpers.rb
@@ -0,0 +1,7 @@
+module FixtureHelpers
+
+ def fixture(name, ext = '.txt')
+ File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', name.to_s + ext))
+ end
+
+end