Sha256: 3d6e2c276f5e7a4d3d830eb98e76710e3c544ea75e3aded73182147510e8fdf2
Contents?: true
Size: 296 Bytes
Versions: 1
Compression:
Stored size: 296 Bytes
Contents
require 'yaml' require 'json' module FixtureHelpers module_function def load_json_fixture(name) JSON.parse(Yaks::Simple::Root.join('spec/json', name + '.json').read) end def load_yaml_fixture(name) YAML.load(Yaks::Simple::Root.join('spec/yaml', name + '.yaml').read) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yaks-simple-0.0.1 | spec/fixture_helpers.rb |