Sha256: 205dcd622f46f4c90c6fc33fb9304c875b3579eb0058e73b0daffef1ea97082c
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
module FixtureSupport def load_json(name) File.read(File.expand_path(File.dirname(__FILE__) + '/../fixtures/' + name)) end def load_fixture(name) Oj.load(load_json(name)) end def add_timestamp(json) json['request']['timestamp'] = Time.now.iso8601 end def load_example_json(name) exp = load_fixture(name) add_timestamp(exp) Oj.dump(exp) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alexa_skills_ruby-1.1.0 | spec/support/fixture_support.rb |
alexa_skills_ruby-1.0.0 | spec/support/fixture_support.rb |