summaryrefslogtreecommitdiff
path: root/spec/helpers/tree_helper_spec.rb
blob: d450b687cafef2b508e2f818805e95748c486433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

describe TreeHelper do
  describe '#markup?' do
    %w(textile rdoc org creole mediawiki rst asciidoc pod).each do |type|
      it "returns true for #{type} files" do
        markup?("README.#{type}").should be_true
      end
    end

    it "returns false when given a non-markup filename" do
      markup?('README.rb').should_not be_true
    end
  end
end