Sha256: cd7e07c277b3f39e292910465a63bfec3be0d5c7a1f67163e51b0ec2f33d3db4
Contents?: true
Size: 928 Bytes
Versions: 1
Compression:
Stored size: 928 Bytes
Contents
require 'test_helper' class GeneratorTest < Test::Unit::TestCase def setup @valid = 'test/data/valid_configuration_file.yml' @config = Sitemaps::Configuration.new(@valid) end should 'check for a sitemap configuration on instantiantion' do assert_raise (InvalidConfigurationError) do Sitemaps::Generator.new(nil) end end should 'prepare dump_dir' do 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) @config.stub(:generator).returns('changed!') generator.change_config @config assert_equal generator.configuration.generator, 'changed!' end should 'should download sitemaps' should 'should gzip sitemaps' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ktlacaelel-sitemaps-0.2.0 | test/generator_test.rb |