Proper warning support

This commit is contained in:
Tristan Hume
2013-08-19 15:14:26 -04:00
parent eb68a751ac
commit 047900d0dd
4 changed files with 15 additions and 1 deletions

View File

@@ -14,6 +14,12 @@ Rake::TestTask.new(:base_test) do |t|
t.verbose = false
end
desc 'run test suite with warn error mode'
task :warn_test do
ENV['LIQUID_PARSER_MODE'] = 'warn'
Rake::Task['base_test'].invoke
end
desc 'runs test suite with both strict and lax parsers'
task :test do
ENV['LIQUID_PARSER_MODE'] = 'lax'