Sha256: 806110571af0d16c104c0eda3bf4b5a2c8c290018038d6bfd82e331b826090e7
Contents?: true
Size: 936 Bytes
Versions: 4
Compression:
Stored size: 936 Bytes
Contents
require 'spec/spec_helper' describe Heel::DirectoryIndexer do before(:each) do @indexer = Heel::DirectoryIndexer.new(Heel::Configuration.data_path("listing.rhtml"), { :highlighting => true }) end it "should ignore .htaccess files" do @indexer.options[:ignore_globs] = %w( *~ .htaccess . ) @indexer.should_ignore?(".htaccess").should == true end it "should not ignore .html files " do @indexer.options[:ignore_globs] = %w( *~ .htaccess . ) @indexer.should_ignore?("something.html").should == false end it "can tell if highlighting is to be performed" do @indexer.should be_highlighting end it "knows if the template should be reloaded on changes" do @indexer.should_not be_reload_on_template_change end it "may or maynot use icons" do @indexer.should_not be_using_icons end it "uses a mime map" do @indexer.mime_map.should be_instance_of(Heel::MimeMap) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
heel-2.0.0 | spec/directory_indexer_spec.rb |
heel-1.0.0 | spec/directory_indexer_spec.rb |
heel-1.0.2 | spec/directory_indexer_spec.rb |
heel-1.0.3 | spec/directory_indexer_spec.rb |