Defined externals (for Rails modules), replaced .cvsignore files with svn:ignore properties
This commit is contained in:
parent
223b2bec6c
commit
10214ebb26
|
@ -1,5 +1,6 @@
|
|||
require 'wiki_words'
|
||||
require 'chunks/chunk'
|
||||
require 'chunks/wiki'
|
||||
require 'cgi'
|
||||
|
||||
# Contains all the methods for finding and replacing wiki related
|
||||
|
@ -63,7 +64,7 @@ module WikiChunk
|
|||
class Link < WikiLink
|
||||
def self.pattern() /\[\[([^\]]+)\]\]/ end
|
||||
|
||||
ALIASED_LINK_PATTERN ||= Regexp.new('^(.*)?\|(.*)$', 0, "utf-8")
|
||||
ALIASED_LINK_PATTERN = Regexp.new('^(.*)?\|(.*)$', 0, "utf-8") unless defined? ALIASED_LINK_PATTERN
|
||||
|
||||
attr_reader :page_name, :link_text
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@ end
|
|||
|
||||
require 'action_controller'
|
||||
require 'active_record_stub'
|
||||
require 'dependencies'
|
||||
|
||||
unless defined? RAILS_DEFAULT_LOGGER
|
||||
RAILS_DEFAULT_LOGGER = Logger.new(STDERR)
|
||||
|
@ -57,3 +56,4 @@ require 'wiki_service'
|
|||
Socket.do_not_reverse_lookup = true
|
||||
|
||||
ActionController::Base.template_root ||= "#{RAILS_ROOT}/app/views/"
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
*~.nib
|
||||
|
|
@ -77,3 +77,4 @@ task :stats do
|
|||
["Libraries", "libraries"]
|
||||
).to_s
|
||||
end
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
2500
|
||||
development
|
||||
test
|
||||
.cvsignore
|
||||
*.zip
|
|
@ -154,7 +154,7 @@ class WikiControllerTest < Test::Unit::TestCase
|
|||
|
||||
assert_success
|
||||
assert_equal 'application/zip', r.headers['Content-Type']
|
||||
assert_equal 'attachment', r.headers['Content-Disposition']
|
||||
assert_match /attachment; filename="wiki1-html-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/, r.headers['Content-Disposition']
|
||||
# TODO assert contents of the output file
|
||||
end
|
||||
|
||||
|
@ -163,7 +163,7 @@ class WikiControllerTest < Test::Unit::TestCase
|
|||
|
||||
assert_success
|
||||
assert_equal 'application/zip', r.headers['Content-Type']
|
||||
assert_equal 'attachment', r.headers['Content-Disposition']
|
||||
assert_match /attachment; filename="wiki1-textile-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/, r.headers['Content-Disposition']
|
||||
# TODO assert contents of the output file
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue