Sha256: c196f3af7b5e04ee65540e121a0a7e7cb583fb5fa0e53b0d59cf1fb7eb4684dc
Contents?: true
Size: 541 Bytes
Versions: 3
Compression:
Stored size: 541 Bytes
Contents
require 'spec_helper' describe "syntax files" do before do STDERR.stub!(:puts) end it "has syntax files" do Dir["#{Textpow.syntax_path}/*.syntax"].should_not == [] end Dir["#{Textpow.syntax_path}/*.syntax"].each do |syntax| it "#{syntax} can parse" do Textpow.syntax(syntax).parse("xxx\n1 + 1\n### xxx") end end xit "parses markdown" do node = Textpow.syntax("lib/textpow/syntax/broken/markdown.syntax") node.parse("### xxx\nabc\n xxx\nyyy\n - abc\n - ac").stack.should_not == [] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
textpow1x-1.2.4 | spec/textpow/syntax_files_spec.rb |
textpow1x-1.2.3 | spec/textpow/syntax_files_spec.rb |
textpow1x-1.2.2 | spec/textpow/syntax_files_spec.rb |