Added shebangs and require 'test_helper' to all tests, so that they can be run standalone

This commit is contained in:
Alexey Verkhovsky 2005-01-16 22:40:44 +00:00
parent ef65e5e78a
commit ab63f1449d
12 changed files with 40 additions and 18 deletions

View file

@ -1,6 +1,8 @@
#!/bin/env ruby
require File.dirname(__FILE__) + '/../../test_helper'
require 'chunks/category' require 'chunks/category'
require 'chunks/match' require 'chunks/match'
require 'test/unit'
class CategoryTest < Test::Unit::TestCase class CategoryTest < Test::Unit::TestCase
include ChunkMatch include ChunkMatch

View file

@ -1,6 +1,8 @@
#!/bin/env ruby
require File.dirname(__FILE__) + '/../../test_helper'
require 'chunks/nowiki' require 'chunks/nowiki'
require 'chunks/match' require 'chunks/match'
require 'test/unit'
class NoWikiTest < Test::Unit::TestCase class NoWikiTest < Test::Unit::TestCase
include ChunkMatch include ChunkMatch

View file

@ -1,6 +1,8 @@
#!/bin/env ruby
require File.dirname(__FILE__) + '/../../test_helper'
require 'chunks/wiki' require 'chunks/wiki'
require 'chunks/match' require 'chunks/match'
require 'test/unit'
class WikiTest < Test::Unit::TestCase class WikiTest < Test::Unit::TestCase
include ChunkMatch include ChunkMatch

View file

@ -1,4 +1,6 @@
require 'test/unit' #!/bin/env ruby
require File.dirname(__FILE__) + '/../test_helper'
require 'diff' require 'diff'
include Diff include Diff

View file

@ -1,6 +1,8 @@
require "test/unit" #!/bin/env ruby
require "web"
require "page" require File.dirname(__FILE__) + '/../test_helper'
require 'web'
require 'page'
class MockWeb < Web class MockWeb < Web
def initialize() super('test','test') end def initialize() super('test','test') end

View file

@ -1,5 +1,7 @@
require "test/unit" #!/bin/env ruby
require "redcloth_for_tex"
require File.dirname(__FILE__) + '/../test_helper'
require 'redcloth_for_tex'
class RedClothForTexTest < Test::Unit::TestCase class RedClothForTexTest < Test::Unit::TestCase
def test_basics def test_basics

View file

@ -1,6 +1,8 @@
require "web" #!/bin/env ruby
require "test/unit"
require "revision" require File.dirname(__FILE__) + '/../test_helper'
require 'web'
require 'revision'
class WebStub < Web; class WebStub < Web;
attr_accessor :markup attr_accessor :markup

View file

@ -1,6 +1,8 @@
#!/bin/env ruby
require File.dirname(__FILE__) + '/../test_helper'
require 'chunks/uri' require 'chunks/uri'
require 'chunks/match' require 'chunks/match'
require 'test/unit'
class URITest < Test::Unit::TestCase class URITest < Test::Unit::TestCase
include ChunkMatch include ChunkMatch

View file

@ -1,3 +1,5 @@
#!/bin/env ruby
require File.dirname(__FILE__) + '/../test_helper' require File.dirname(__FILE__) + '/../test_helper'
require 'url_rewriting_hack' require 'url_rewriting_hack'

View file

@ -1,6 +1,6 @@
#!/usr/bin/ruby #!/bin/env ruby
require 'test/unit' require File.dirname(__FILE__) + '/../test_helper'
require 'wiki_service' require 'wiki_service'
class WebTest < Test::Unit::TestCase class WebTest < Test::Unit::TestCase

View file

@ -1,4 +1,6 @@
require 'test/unit' #!/bin/env ruby
require File.dirname(__FILE__) + '/../test_helper'
require 'wiki_service' require 'wiki_service'
class WikiServiceTest < Test::Unit::TestCase class WikiServiceTest < Test::Unit::TestCase

View file

@ -1,5 +1,7 @@
require "test/unit" #!/bin/env ruby
require "wiki_words"
require File.dirname(__FILE__) + '/../test_helper'
require 'wiki_words'
class WikiWordsTest < Test::Unit::TestCase class WikiWordsTest < Test::Unit::TestCase