Sha256: 536adf425f2a97d7dfb6199e1a04eb68ec9a791919994007f51a9d4086bedf13
Contents?: true
Size: 1016 Bytes
Versions: 2
Compression:
Stored size: 1016 Bytes
Contents
require 'test_helper' class GeneratorTest < Test::Unit::TestCase def setup @valid = 'test/data/valid_configuration_file.yml' @valid2 = 'test/data/valid_configuration_file2.yml' @config = Sitemaps::Configuration.new(@valid) end should 'check for a sitemap configuration on instantiantion' do assert_raise (Sitemaps::InvalidConfigurationError) do Sitemaps::Generator.new(nil) end end should 'prepare dump_dir' do `rm -rf sitemaps` Sitemaps::Generator.new(@config).prepare assert File.exist? 'sitemaps' end should 'get config' do config = Sitemaps::Generator.new(@config).configuration assert_equal config.generator, 'http://localhost:3000' end should 'change config' do generator = Sitemaps::Generator.new(@config) new_config = Sitemaps::Configuration.new(@valid2) generator.configuration = new_config assert_equal new_config, generator.configuration end should 'should download sitemaps' should 'should gzip sitemaps' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ktlacaelel-sitemaps-0.4.2 | test/generator_test.rb |
ktlacaelel-sitemaps-0.5.0 | test/generator_test.rb |