From f63180d8d80d6d42471fd276be89d6e3dbfb18c7 Mon Sep 17 00:00:00 2001 From: Dustin DeYoung Date: Sun, 26 May 2013 11:16:43 -0400 Subject: [PATCH] Correct 1.8.7 negative match assertion. --- test/test_app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_app.rb b/test/test_app.rb index 2a44fee8..c7fb3aad 100644 --- a/test/test_app.rb +++ b/test/test_app.rb @@ -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_no_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_no_match(/[^\/]#{dir}/, last_response.body) # reset page_file_dir Precious::App.set(:wiki_options, {:page_file_dir => nil}) end