require 'maruku' text = < :raise, :error_stream => s}) puts "Error! It should have thrown an exception." rescue # puts "ok, got error" end begin Maruku.new(invalid, {:on_error => :warning, :error_stream => s}) rescue puts "Error! It should not have thrown an exception." end