Sha256: 59f6b861209fa8c8dd6d9f2a4e1642ddddd059703840ea7397058be06e712276

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

module SimplyCommentable;end
namespace :test do
	namespace :units do
		Rake::TestTask.new(:simply_commentable => "db:test:prepare") do |t|
			t.pattern = File.expand_path(File.join(
				File.dirname(__FILE__),'/../../test/unit/commentable/*_test.rb'))
			t.libs << "test"
			t.verbose = true
		end
	end
	namespace :functionals do
		Rake::TestTask.new(:simply_commentable => "db:test:prepare") do |t|
			t.pattern = File.expand_path(File.join(
				File.dirname(__FILE__),'/../../test/functional/commentable/*_test.rb'))
			t.libs << "test"
			t.verbose = true
		end
	end
end
Rake::Task['test:functionals'].prerequisites.unshift(
	"test:functionals:simply_commentable" )
Rake::Task['test:units'].prerequisites.unshift(
	"test:units:simply_commentable" )

#	I thought of possibly just including this file
#	but that would make __FILE__ different.
#	Hmmm

#
#	used in simply_helpful's rake test:coverage to run gem's 
#		tests in the context of the application
#
@gem_test_dirs ||= []
@gem_test_dirs << File.expand_path(File.join(File.dirname(__FILE__),
	'/../../test/unit/commentable/'))
@gem_test_dirs << File.expand_path(File.join(File.dirname(__FILE__),
	'/../../test/functional/commentable/'))

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jakewendt-simply_commentable-0.2.1 lib/simply_commentable/test_tasks.rb