Skip to content

Commit

Permalink
Add a spec task to the Rakefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jun 2, 2009
1 parent 3ff96b5 commit 8d37123
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Rakefile
Expand Up @@ -39,19 +39,11 @@ task :release => [:gem, :package] do
end
end

task :test => [:markdown_span_tests, :markdown_block_tests]
begin
require 'spec/rake/spectask'

task :markdown_block_tests do
tests = Dir['tests/unittest/**/*.md'].join(' ')
puts "Executing tests #{tests}"
# ok = marutest(tests)
ok = system "ruby -Ilib bin/marutest #{tests}"
raise "Failed block unittest" if not ok
end

task :markdown_span_tests do
ok = system( "ruby -Ilib lib/maruku/tests/new_parser.rb v b")
raise "Failed span unittest" if not ok
Spec::Rake::SpecTask.new
rescue LoadError => e
end

require 'rake/rdoctask'
Expand Down

0 comments on commit 8d37123

Please sign in to comment.