Merge pull request #1386 from tsigo/github_markup

Use GitHub::Markup to parse markup files
This commit is contained in:
Dmitriy Zaporozhets 2012-09-09 03:34:50 -07:00
commit 2e8b5ebefd
7 changed files with 34 additions and 9 deletions

View file

@ -0,0 +1,15 @@
require 'spec_helper'
describe TreeHelper do
describe '#markup?' do
%w(mdown md markdown 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