diff --git a/instiki b/instiki index 0d054884..c004932c 100755 --- a/instiki +++ b/instiki @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/ruby -w # Executable file for a gem # must be same as ./instiki.rb diff --git a/instiki.rb b/instiki.rb index 522e84d2..55960d02 100755 --- a/instiki.rb +++ b/instiki.rb @@ -1,3 +1,3 @@ -#!/usr/bin/ruby +#!/usr/bin/ruby -w load File.dirname(__FILE__) + "/script/server" diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 06d7555c..b477a0d1 100755 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -1,4 +1,4 @@ -#!/bin/env ruby +#!/bin/env ruby -w # Uncomment the line below to enable pdflatex tests; don't forget to comment them again # commiting to SVN diff --git a/test/unit/diff_test.rb b/test/unit/diff_test.rb index c79e387b..21e9d98f 100755 --- a/test/unit/diff_test.rb +++ b/test/unit/diff_test.rb @@ -1,4 +1,4 @@ -#!/bin/env ruby +#!/bin/env ruby -w require File.dirname(__FILE__) + '/../test_helper' require 'diff' diff --git a/test/unit/page_test.rb b/test/unit/page_test.rb index fe1b513f..d61089d8 100755 --- a/test/unit/page_test.rb +++ b/test/unit/page_test.rb @@ -1,4 +1,4 @@ -#!/bin/env ruby +#!/bin/env ruby -w require File.dirname(__FILE__) + '/../test_helper' require 'web' diff --git a/test/unit/redcloth_for_tex_test.rb b/test/unit/redcloth_for_tex_test.rb index e5a69eb1..d9237ed0 100755 --- a/test/unit/redcloth_for_tex_test.rb +++ b/test/unit/redcloth_for_tex_test.rb @@ -1,4 +1,4 @@ -#!/bin/env ruby +#!/bin/env ruby -w require File.dirname(__FILE__) + '/../test_helper' require 'redcloth_for_tex' diff --git a/test/unit/revision_test.rb b/test/unit/revision_test.rb index fe9a17c1..251b00a0 100755 --- a/test/unit/revision_test.rb +++ b/test/unit/revision_test.rb @@ -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
", @page.revisions.last.display_diff end + def test_list_with_tildas + list_with_tildas = <<-EOL + * "a":~b + * c~ d + EOL + + assert_markup_parsed_as( + "