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

Version Path
i18n-tasks-0.8.7 spec/support/fixtures.rb
i18n-tasks-0.8.6 spec/support/fixtures.rb
i18n-tasks-0.8.5 spec/support/fixtures.rb
i18n-tasks-0.8.4 spec/support/fixtures.rb
i18n-tasks-0.8.3 spec/support/fixtures.rb
i18n-tasks-0.8.2 spec/support/fixtures.rb
i18n-tasks-0.8.1 spec/support/fixtures.rb
i18n-tasks-0.8.0 spec/support/fixtures.rb
i18n-tasks-0.7.13 spec/support/fixtures.rb
i18n-tasks-0.7.12 spec/support/fixtures.rb
i18n-tasks-0.7.11 spec/support/fixtures.rb
i18n-tasks-0.7.10 spec/support/fixtures.rb
i18n-tasks-0.7.9 spec/support/fixtures.rb
i18n-tasks-0.7.8 spec/support/fixtures.rb
i18n-tasks-0.7.7 spec/support/fixtures.rb
i18n-tasks-0.7.6 spec/support/fixtures.rb
i18n-tasks-0.7.5 spec/support/fixtures.rb
i18n-tasks-0.7.4 spec/support/fixtures.rb
i18n-tasks-0.7.3 spec/support/fixtures.rb
i18n-tasks-0.7.2 spec/support/fixtures.rb