Sha256: 107868295319ae1a9095a861f4aedcf11be260355812a9bacf6606bbc61cb080

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 Bytes

Contents

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

  # Extend it with the Populator module.
  extend Smilodon::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 Smilodon::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 Smilodon::Populator

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smilodon-0.2.2 lib/smilodon/fakes.rb