Sha256: 1ec58c7b0af56f7bd27d1bedd74100a5ba8c283257ddcdba3b5bc5f401af31a4

Contents?: true

Size: 1.25 KB

Versions: 15

Compression:

Stored size: 1.25 KB

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

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

  # Extend it with the Populator module.
  extend Smilodon::Populator

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

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

  # Extend it with the Populator module.
  extend Smilodon::Populator

  # Populate the test file.
  populates :directory => 'spec/test_files'
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
smilodon-0.3.11 lib/smilodon/fakes.rb
smilodon-0.3.10 lib/smilodon/fakes.rb
smilodon-0.3.9 lib/smilodon/fakes.rb
smilodon-0.3.8 lib/smilodon/fakes.rb
smilodon-0.3.7 lib/smilodon/fakes.rb
smilodon-0.3.6 lib/smilodon/fakes.rb
smilodon-0.0.2 lib/smilodon/fakes.rb
smilodon-0.0.1 lib/smilodon/fakes.rb
smilodon-0.3.5 lib/smilodon/fakes.rb
smilodon-0.3.4 lib/smilodon/fakes.rb
smilodon-0.3.3 lib/smilodon/fakes.rb
smilodon-0.3.2 lib/smilodon/fakes.rb
smilodon-0.3.1 lib/smilodon/fakes.rb
smilodon-0.3.0 lib/smilodon/fakes.rb
smilodon-0.2.8 lib/smilodon/fakes.rb