gitlab-org--gitlab-foss/spec/helpers/tree_helper_spec.rb
2014-07-28 11:47:27 +02:00

16 lines
398 B
Ruby

require 'spec_helper'
describe TreeHelper do
describe '#markup?' do
%w(textile rdoc org creole wiki mediawiki
rst adoc asciidoc asc).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