Add test for Document#basename_without_ext
This commit is contained in:
parent
4942b2947b
commit
73ca205a5c
|
@ -25,8 +25,8 @@ class TestDocument < Test::Unit::TestCase
|
||||||
assert_equal "configuration.md", @document.basename
|
assert_equal "configuration.md", @document.basename
|
||||||
end
|
end
|
||||||
|
|
||||||
should "allow the suffix to be specified for the basename" do
|
should "know its basename without extname" do
|
||||||
assert_equal "configuration", @document.basename(".*")
|
assert_equal "configuration", @document.basename_without_ext
|
||||||
end
|
end
|
||||||
|
|
||||||
should "know whether its a yaml file" do
|
should "know whether its a yaml file" do
|
||||||
|
|
Loading…
Reference in New Issue