test/configuration_test.rb in inquisitio-0.1.6 vs test/configuration_test.rb in inquisitio-0.1.7
- old
+ new
@@ -52,8 +52,21 @@
def test_missing_default_search_size_throws_exception
assert_raises(InquisitioConfigurationError) do
Inquisitio.config.default_search_size
end
end
+
+ def test_logger_is_configured_by_default
+ assert_kind_of Inquisitio::Logger, Inquisitio.config.logger
+ end
+
+ def test_dry_run_disabled_by_default
+ refute Inquisitio.config.dry_run
+ end
+
+ def test_enable_dry_run
+ Inquisitio.config.dry_run = true
+ assert Inquisitio.config.dry_run
+ end
end
end