test/unit/config_tests.rb in dassets-0.6.2 vs test/unit/config_tests.rb in dassets-0.7.0

- old
+ new

@@ -14,11 +14,11 @@ should have_option :assets_file, Pathname, :default => ENV['DASSETS_ASSETS_FILE'] should have_options :file_store should have_reader :combinations - should have_imeth :source, :combination + should have_imeth :source, :combination, :combination? should "register new sources with the `source` method" do path = '/path/to/app/assets' filter = proc{ |paths| [] } subject.source(path){ |s| s.filter(&filter) } @@ -41,9 +41,16 @@ assert_equal exp_combination, subject.combinations['some/digest.path'] assert_equal ['test/digest.path'], subject.combinations['test/digest.path'] subject.combination 'test/digest.path', ['some/other.path'] assert_equal ['some/other.path'], subject.combinations['test/digest.path'] + end + + should "know which digest paths are actual combinations and which are just pass-thrus" do + subject.combination 'some/combination.path', ['some.path', 'another.path'] + + assert subject.combination? 'some/combination.path' + assert_not subject.combination? 'some/non-combo.path' end end end