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.7.1 spec/support/fixtures.rb
i18n-tasks-0.7.0 spec/support/fixtures.rb
i18n-tasks-0.6.3 spec/support/fixtures.rb
i18n-tasks-0.6.2 spec/support/fixtures.rb
i18n-tasks-0.6.1 spec/support/fixtures.rb
i18n-tasks-0.6.0 spec/support/fixtures.rb
i18n-tasks-0.5.4 spec/support/fixtures.rb
i18n-tasks-0.5.3 spec/support/fixtures.rb
i18n-tasks-0.5.2 spec/support/fixtures.rb
i18n-tasks-0.5.1 spec/support/fixtures.rb
i18n-tasks-0.5.0 spec/support/fixtures.rb
i18n-tasks-0.4.5 spec/support/fixtures.rb
i18n-tasks-0.4.4 spec/support/fixtures.rb
i18n-tasks-0.4.3 spec/support/fixtures.rb