test/unit/dassets_tests.rb in dassets-0.14.0 vs test/unit/dassets_tests.rb in dassets-0.14.1
- old
+ new
@@ -9,11 +9,11 @@
class UnitTests < Assert::Context
desc "Dassets"
subject{ Dassets }
should have_imeths :config, :configure, :init, :[]
- should have_imeths :source_list
+ should have_imeths :source_files
should "return a `Config` instance with the `config` method" do
assert_kind_of Config, subject.config
end
@@ -36,11 +36,11 @@
file = subject['path/not/found.txt']
assert_not file.exists?
end
should "know its list of configured source files" do
- exp_configured_list = Dassets::SourceList.new(Dassets.config.sources)
- assert_equal exp_configured_list, subject.source_list
+ exp = Dassets::SourceFiles.new(Dassets.config.sources)
+ assert_equal exp, subject.source_files
end
end
end