diff options
author | Azul <azul@riseup.net> | 2013-07-14 15:39:10 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-07-14 15:39:10 +0200 |
commit | ec05ed9a4cc4b4c0760ddf475e0bbb78ea407ce6 (patch) | |
tree | 4dbb2edb86f03c39f0779191af709b27dfcd926a /test/test_helper.rb | |
parent | a0adb2d7a12876df48b309e3949b2675b53b6634 (diff) | |
parent | cac0949c86209c7174bb5b4edc2f8eca65079429 (diff) |
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 23ff39a..3f85b7a 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,3 +2,11 @@ require "rubygems" require 'test/unit' require 'activesupport' # for HashWithIndifferentAccess require File.expand_path(File.dirname(__FILE__) + '/../lib/ruby-srp.rb') + +class Test::Unit::TestCase + def fixture(filename) + path = File.expand_path("../fixtures/#{filename}.json", __FILE__) + HashWithIndifferentAccess[JSON.parse(File.read(path))] + end +end + |