Added shebangs and require 'test_helper' to all tests, so that they can be run standalone
This commit is contained in:
parent
ef65e5e78a
commit
ab63f1449d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
require 'test/unit'
|
||||
#!/bin/env ruby
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
require 'diff'
|
||||
|
||||
include Diff
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/env ruby
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
require 'url_rewriting_hack'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
require 'test/unit'
|
||||
#!/bin/env ruby
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
require 'wiki_service'
|
||||
|
||||
class WikiServiceTest < Test::Unit::TestCase
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue