summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
blob: 3f85b7a74b2ba36d793c39e84adb8fb76e275246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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