Sha256: ca0596e9438f4e05df230f48b1ba023d40a9f7367b9cbba126b2e61da17f5cbf
Contents?: true
Size: 377 Bytes
Versions: 34
Compression:
Stored size: 377 Bytes
Contents
# coding: utf-8 # quick'n'dirty fixture loader module FixturesSupport def fixtures_contents @fixtures_contents ||= begin fixtures_path = 'spec/fixtures' Dir.glob("#{fixtures_path}/**/*").inject({}) { |h, path| next h if File.directory?(path) h[path[fixtures_path.length + 1..-1]] = Pathname.new(path).read h } end end end
Version data entries
34 entries across 34 versions & 1 rubygems