finish gemifying this project
This commit is contained in:
parent
194ff51715
commit
e07cecd62e
9
Makefile
9
Makefile
@ -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
11
Rakefile
Normal 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
|
@ -1,7 +1,5 @@
|
|||||||
require 'rubygems'
|
require 'test_helper'
|
||||||
require 'test/unit'
|
require 'minicomic-backend/filter'
|
||||||
require 'fakefs/safe'
|
|
||||||
require File.dirname(__FILE__) + '/../classes/Filter.rb'
|
|
||||||
|
|
||||||
class TestFilter < Test::Unit::TestCase
|
class TestFilter < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
@ -1,8 +1,4 @@
|
|||||||
require 'rubygems'
|
require 'minicomic-backend/image_processing'
|
||||||
require 'test/unit'
|
|
||||||
require 'mocha'
|
|
||||||
require 'fakefs/safe'
|
|
||||||
require File.dirname(__FILE__) + '/../modules/ImageProcessing.rb'
|
|
||||||
|
|
||||||
class TestImageProcessing < Test::Unit::TestCase
|
class TestImageProcessing < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
@ -1,7 +1,5 @@
|
|||||||
require 'rubygems'
|
require 'test_helper'
|
||||||
require 'test/unit'
|
require 'minicomic-backend/output_filter'
|
||||||
require 'mocha'
|
|
||||||
require File.dirname(__FILE__) + '/../classes/OutputFilter.rb'
|
|
||||||
|
|
||||||
class TestOutputFilter < Test::Unit::TestCase
|
class TestOutputFilter < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
@ -1,6 +1,5 @@
|
|||||||
require 'rubygems'
|
require 'test_helper'
|
||||||
require 'test/unit'
|
require 'minicomic-backend/pagination'
|
||||||
require File.dirname(__FILE__) + '/../modules/Pagination.rb'
|
|
||||||
|
|
||||||
class TestPagination < Test::Unit::TestCase
|
class TestPagination < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
@ -1,8 +1,5 @@
|
|||||||
require 'rubygems'
|
require 'test_helper'
|
||||||
require 'test/unit'
|
require 'minicomic-backend/print_handling'
|
||||||
require 'mocha'
|
|
||||||
require 'fakefs/safe'
|
|
||||||
require File.dirname(__FILE__) + '/../modules/PrintHandling.rb'
|
|
||||||
|
|
||||||
class TestPrintHandling < Test::Unit::TestCase
|
class TestPrintHandling < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
@ -1,6 +1,5 @@
|
|||||||
require 'rubygems'
|
require 'test_helper'
|
||||||
require 'test/unit'
|
require 'minicomic-backend/scheduler'
|
||||||
require File.dirname(__FILE__) + '/../classes/Scheduler.rb'
|
|
||||||
|
|
||||||
class TestScheduler < Test::Unit::TestCase
|
class TestScheduler < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
@ -1,7 +1,5 @@
|
|||||||
require 'rubygems'
|
require 'test_helper'
|
||||||
require 'test/unit'
|
require 'minicomic-backend/svg_to_temp_bitmap'
|
||||||
require 'fakefs/safe'
|
|
||||||
require File.dirname(__FILE__) + '/../classes/SVGToTempBitmap.rb'
|
|
||||||
|
|
||||||
class TestSVGToTempBitmap < Test::Unit::TestCase
|
class TestSVGToTempBitmap < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
@ -1,7 +1,5 @@
|
|||||||
require 'rubygems'
|
require 'test_helper'
|
||||||
require 'test/unit'
|
require 'minicomic-backend/temp_bitmap_to_web'
|
||||||
require 'mocha'
|
|
||||||
require File.dirname(__FILE__) + '/../classes/TempBitmapToWeb.rb'
|
|
||||||
|
|
||||||
class TestTempBitmapToWeb < Test::Unit::TestCase
|
class TestTempBitmapToWeb < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
@ -30,5 +28,4 @@ class TestTempBitmapToWeb < Test::Unit::TestCase
|
|||||||
}
|
}
|
||||||
assert_equal 'test2010-01-01', @filter.filename({'index' => 0})
|
assert_equal 'test2010-01-01', @filter.filename({'index' => 0})
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user