finish gemifying this project

This commit is contained in:
John Bintz 2010-09-12 09:16:44 -04:00
parent 194ff51715
commit e07cecd62e
10 changed files with 26 additions and 42 deletions

View File

@ -1,9 +0,0 @@
.PHONY : test test-coverage
test :
testrb `find tests -name '*.rb'`
test-coverage :
rcov -x '\/.rvm\/' -x '\/tests\/data\/' `find tests -name '*.rb'`
sed 's#<td class="left_align"><a href="<script>.html"><script></a></td>#<td></td>#' coverage/index.html > coverage/index.html.new
mv coverage/index.html.new coverage/index.html

11
Rakefile Normal file
View File

@ -0,0 +1,11 @@
desc "Run Test::Unit Cases"
task :test do
system("testrb test/*_test.rb")
end
#namespace :test do
# desc "Run RCov analysis"
# task :rcov do
# system(%{rcov -x '.rvm' -x '/test/data/' test/*_test.rb})
# end
#end

View File

@ -1,7 +1,5 @@
require 'rubygems'
require 'test/unit'
require 'fakefs/safe'
require File.dirname(__FILE__) + '/../classes/Filter.rb'
require 'test_helper'
require 'minicomic-backend/filter'
class TestFilter < Test::Unit::TestCase
def setup

View File

@ -1,8 +1,4 @@
require 'rubygems'
require 'test/unit'
require 'mocha'
require 'fakefs/safe'
require File.dirname(__FILE__) + '/../modules/ImageProcessing.rb'
require 'minicomic-backend/image_processing'
class TestImageProcessing < Test::Unit::TestCase
def setup

View File

@ -1,7 +1,5 @@
require 'rubygems'
require 'test/unit'
require 'mocha'
require File.dirname(__FILE__) + '/../classes/OutputFilter.rb'
require 'test_helper'
require 'minicomic-backend/output_filter'
class TestOutputFilter < Test::Unit::TestCase
def setup

View File

@ -1,6 +1,5 @@
require 'rubygems'
require 'test/unit'
require File.dirname(__FILE__) + '/../modules/Pagination.rb'
require 'test_helper'
require 'minicomic-backend/pagination'
class TestPagination < Test::Unit::TestCase
def setup

View File

@ -1,8 +1,5 @@
require 'rubygems'
require 'test/unit'
require 'mocha'
require 'fakefs/safe'
require File.dirname(__FILE__) + '/../modules/PrintHandling.rb'
require 'test_helper'
require 'minicomic-backend/print_handling'
class TestPrintHandling < Test::Unit::TestCase
def setup

View File

@ -1,6 +1,5 @@
require 'rubygems'
require 'test/unit'
require File.dirname(__FILE__) + '/../classes/Scheduler.rb'
require 'test_helper'
require 'minicomic-backend/scheduler'
class TestScheduler < Test::Unit::TestCase
def setup

View File

@ -1,7 +1,5 @@
require 'rubygems'
require 'test/unit'
require 'fakefs/safe'
require File.dirname(__FILE__) + '/../classes/SVGToTempBitmap.rb'
require 'test_helper'
require 'minicomic-backend/svg_to_temp_bitmap'
class TestSVGToTempBitmap < Test::Unit::TestCase
def setup

View File

@ -1,7 +1,5 @@
require 'rubygems'
require 'test/unit'
require 'mocha'
require File.dirname(__FILE__) + '/../classes/TempBitmapToWeb.rb'
require 'test_helper'
require 'minicomic-backend/temp_bitmap_to_web'
class TestTempBitmapToWeb < Test::Unit::TestCase
def setup
@ -30,5 +28,4 @@ class TestTempBitmapToWeb < Test::Unit::TestCase
}
assert_equal 'test2010-01-01', @filter.filename({'index' => 0})
end
end