test extension match
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
module Gollum
|
module Gollum
|
||||||
class Page
|
class Page
|
||||||
VALID_PAGE_RE = /^(.+)\.(md|mkdn?|mdown|markdown|textile|rdoc|org|re?st(\.txt)?|asciidoc|pod|\d)$/
|
VALID_PAGE_RE = /^(.+)\.(md|mkdn?|mdown|markdown|textile|rdoc|org|re?st(\.txt)?|asciidoc|pod|\d)$/i
|
||||||
|
|
||||||
attr_accessor :wiki, :data
|
attr_accessor :wiki, :data
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
df26e61e707116f81ebc6b935ec6d1676b7e96c4
|
||||||
@@ -14,4 +14,8 @@ context "Page" do
|
|||||||
test "no page match" do
|
test "no page match" do
|
||||||
assert_nil @wiki.formatted_page('I do not exist')
|
assert_nil @wiki.formatted_page('I do not exist')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "no ext match" do
|
||||||
|
assert_nil @wiki.formatted_page('Data')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user