test/unit/dassets_tests.rb in dassets-0.4.1 vs test/unit/dassets_tests.rb in dassets-0.5.0

- old
+ new

@@ -29,9 +29,18 @@ assert_kind_of Dassets::SourceCache, file.source_cache assert_kind_of Dassets::NullSourceFile, file.source_cache.source_file assert_not file.source_cache.exists? end + should "complain if trying to init without setting the root path" do + orig_root = Dassets.config.root_path + + Dassets.config.root_path = nil + assert_raises(RuntimeError){ Dassets.init } + + Dassets.config.root_path = orig_root + end + end class SourceListTests < BaseTests desc "source list"