Added -w to all shebangs [Florian Gross]
This commit is contained in:
parent
8eb35d4021
commit
97857409a9
12 changed files with 25 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/env ruby
|
||||
#!/bin/env ruby -w
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
require 'web'
|
||||
|
@ -210,6 +210,19 @@ class RevisionTest < Test::Unit::TestCase
|
|||
"today</ins></p>", @page.revisions.last.display_diff
|
||||
end
|
||||
|
||||
def test_list_with_tildas
|
||||
list_with_tildas = <<-EOL
|
||||
* "a":~b
|
||||
* c~ d
|
||||
EOL
|
||||
|
||||
assert_markup_parsed_as(
|
||||
"<li><a href=\"~b\">a</a></li>\n" +
|
||||
"<li>c~ d</li>\n",
|
||||
list_with_tildas)
|
||||
end
|
||||
|
||||
|
||||
|
||||
def assert_markup_parsed_as(expected_output, input)
|
||||
revision = Revision.new(@page, 1, input, Time.local(2004, 4, 4, 16, 50), 'AnAuthor')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue