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/match'
require 'test/unit'
class CategoryTest < Test::Unit::TestCase
include ChunkMatch

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
#!/bin/env ruby
require File.dirname(__FILE__) + '/../test_helper'
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'
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'
class WikiServiceTest < Test::Unit::TestCase

View file

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