Rakefile in whyvalidationssuckin96-1.3.1 vs Rakefile in whyvalidationssuckin96-1.4.0
- old
+ new
@@ -18,22 +18,28 @@
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'rake/testtask'
-Rake::TestTask.new(:test_non_rails) do |test|
+Rake::TestTask.new(:test_core) do |test|
test.libs << 'lib' << 'test'
- test.test_files = FileList['test/**/*_test.rb'].exclude("test/rails/**/*_test.rb")
+ test.test_files = FileList['test/**/*_test.rb'].exclude("test/{rails,riot}/**/*_test.rb")
test.verbose = true
end
+Rake::TestTask.new(:test_riot) do |test|
+ test.libs << 'lib' << 'test'
+ test.test_files = FileList["test/riot/**/*_test.rb"]
+ test.verbose = true
+end
+
Rake::TestTask.new(:test_rails) do |test|
test.libs << 'lib' << 'test'
test.test_files = FileList["test/rails/**/*_test.rb"]
test.verbose = true
end
-task :test => [:check_dependencies, :test_non_rails, :test_rails]
+task :test => [:check_dependencies, :test_core, :test_riot, :test_rails]
task :default => :test
begin
require 'yard'
YARD::Rake::YardocTask.new
\ No newline at end of file