Permalink
Browse files

Fix tests

  • Loading branch information...
1 parent c90c3b1 commit 30119e0c778c5a8c36d17a53e659d1d316de328e @bootstraponline bootstraponline committed Nov 17, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 test/test_app.rb
View
9 test/test_app.rb
@@ -185,8 +185,6 @@
post "/create", :content => 'abc', :page => name,
:format => 'markdown', :message => 'def'
- follow_redirect!
-
assert last_response.ok?
@wiki.clear_cache
@@ -385,16 +383,11 @@ def app
end
test "create pages within sub-directories using page file dir" do
- Precious::App.set(:wiki_options, { :page_file_dir => 'wiki' })
-
post "/create", :content => 'one two', :page => 'base',
- :path => 'Mordor', :format => 'markdown', :message => 'oooh, scary'
+ :path => 'wiki/Mordor', :format => 'markdown', :message => 'oooh, scary'
assert_equal 'http://example.org/wiki/Mordor/base', last_response.headers['Location']
get "/wiki/Mordor/base"
- # Reset page_file_dir after request but before matching.
- Precious::App.set(:wiki_options, { :page_file_dir => nil })
-
assert_match /one two/, last_response.body
end

0 comments on commit 30119e0

Please sign in to comment.