Sha256: 931fa55dd8a3bf6b2f76b9a0a98ac2062cbaea42f6c6aee1854a2ef9aa46a865

Contents?: true

Size: 703 Bytes

Versions: 12

Compression:

Stored size: 703 Bytes

Contents

# A fake populator module with default type for testing.
module FakePopulator

  # Extend it with the Populator module.
  extend Populator

  # Populate the test file.
  populates 'TestFile'
end

# A fake populator module with overridden type for testing.
module FakePopulatorWithOverriddenType

  # Extend it with the Populator module.
  extend Populator

  # Populate the test excel file.
  populates 'TestExcelFile', :type => 'excel'
end

# A fake populator module with overridden directory for testing.
module FakePopulatorWithOverriddenDirectory

  # Extend it with the Populator module.
  extend Populator

  # Populate the test file.
  populates 'TestFile', :directory => 'db/populate/files'
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
db-populator-0.1.13 lib/populator/fakes.rb
db-populator-0.1.12 lib/populator/fakes.rb
db-populator-0.1.11 lib/populator/fakes.rb
db-populator-0.1.10 lib/populator/fakes.rb
db-populator-0.1.9 lib/populator/fakes.rb
db-populator-0.1.8 lib/populator/fakes.rb
db-populator-0.1.6 lib/populator/fakes.rb
db-populator-0.1.5 lib/populator/fakes.rb
db-populator-0.1.4 lib/populator/fakes.rb
db-populator-0.1.3 lib/populator/fakes.rb
db-populator-0.1.2 lib/populator/fakes.rb
db-populator-0.1.1 lib/populator/fakes.rb