Add test for Document#basename_without_ext

This commit is contained in:
Parker Moore 2014-10-12 14:33:13 -07:00
parent 4942b2947b
commit 73ca205a5c
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ class TestDocument < Test::Unit::TestCase
assert_equal "configuration.md", @document.basename
end
should "allow the suffix to be specified for the basename" do
assert_equal "configuration", @document.basename(".*")
should "know its basename without extname" do
assert_equal "configuration", @document.basename_without_ext
end
should "know whether its a yaml file" do