Sha256: 2efda6a3e533371d8b13e7d114fced0869bd6e1d9d1cd27cf59d0bb25f4894ce

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

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

#	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/discussable/'))
@gem_test_dirs << File.expand_path(File.join(File.dirname(__FILE__),
	'/../../test/functional/discussable/'))

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jakewendt-simply_discussable-0.2.2 lib/simply_discussable/test_tasks.rb