Skip to content

Commit

Permalink
Correct 1.8.7 negative match assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin DeYoung committed May 26, 2013
1 parent 999bbf3 commit f63180d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
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
Expand All @@ -314,7 +314,7 @@
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
Expand Down

0 comments on commit f63180d

Please sign in to comment.