summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-07-14 15:39:10 +0200
committerAzul <azul@riseup.net>2013-07-14 15:39:10 +0200
commitec05ed9a4cc4b4c0760ddf475e0bbb78ea407ce6 (patch)
tree4dbb2edb86f03c39f0779191af709b27dfcd926a /test/test_helper.rb
parenta0adb2d7a12876df48b309e3949b2675b53b6634 (diff)
parentcac0949c86209c7174bb5b4edc2f8eca65079429 (diff)
Merge branch 'feature/hex-interface'HEADmaster
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb8
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
+