test/configuration_test.rb in ktlacaelel-sitemaps-0.2.0 vs test/configuration_test.rb in ktlacaelel-sitemaps-0.4.2
- old
+ new
@@ -15,12 +15,12 @@
# ============================================================================
# YAML LOADING
# ============================================================================
should 'check if configuration file exists' do
- assert_raise (InvalidConfigurationError) { Sitemaps::Configuration.new('a') }
- assert_raise (InvalidConfigurationError) { Sitemaps::Configuration.new(nil) }
+ assert_raise (Sitemaps::InvalidConfigurationError) { Sitemaps::Configuration.new('a') }
+ assert_raise (Sitemaps::InvalidConfigurationError) { Sitemaps::Configuration.new(nil) }
end
should 'load a configuration file' do
Sitemaps::Configuration.new(@valid)
end
@@ -28,22 +28,22 @@
# ============================================================================
# MISSING PARAMETERS
# ============================================================================
should 'throw an error when generator is not given' do
- assert_raise (InvalidConfigurationError) { Sitemaps::Configuration.new(@no_generator) }
+ assert_raise (Sitemaps::InvalidConfigurationError) { Sitemaps::Configuration.new(@no_generator) }
end
should 'throw an error when domain is not given' do
- assert_raise (InvalidConfigurationError) { Sitemaps::Configuration.new(@no_domain) }
+ assert_raise (Sitemaps::InvalidConfigurationError) { Sitemaps::Configuration.new(@no_domain) }
end
should 'throw an error when targets is not given' do
- assert_raise (InvalidConfigurationError) { Sitemaps::Configuration.new(@no_targets) }
+ assert_raise (Sitemaps::InvalidConfigurationError) { Sitemaps::Configuration.new(@no_targets) }
end
should 'throw an error when dump_dir is not given' do
- assert_raise (InvalidConfigurationError) { Sitemaps::Configuration.new(@no_dump_dir) }
+ assert_raise (Sitemaps::InvalidConfigurationError) { Sitemaps::Configuration.new(@no_dump_dir) }
end
# ============================================================================
# CONFIGURATION ACCESS
# ============================================================================