Regex is 1.8.7 compatible for subpage create tests

This commit is contained in:
Dustin DeYoung
2013-05-26 11:10:50 -04:00
parent eab612bdd0
commit 999bbf3d50
+2 -2
View File
@@ -305,7 +305,7 @@ context "Frontend" do
name = "#{dir}/bar"
get "/create/#{name}"
assert_match(/\/#{dir}/, last_response.body)
assert_not_match(/(?<!\/)#{dir}/, last_response.body)
assert_not_match(/[^\/]#{dir}/, last_response.body)
end
test "create sets the correct path for a relative path subdirectory with the page file directory set" do
@@ -314,7 +314,7 @@ context "Frontend" do
name = "#{dir}/baz"
get "/create/foo/#{name}"
assert_match(/\/#{dir}/, last_response.body)
assert_not_match(/(?<!\/)#{dir}/, last_response.body)
assert_not_match(/[^\/]#{dir}/, last_response.body)
# reset page_file_dir
Precious::App.set(:wiki_options, {:page_file_dir => nil})
end