Sha256: ebb778195471ddeb4e873e9e6fb84968d3dc414ad799bc5472be8fce7478fe90
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 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 "can parse with #{syntax}" do Textpow.syntax(syntax).parse("xxx\n1 + 1\n### xxx") end it "can parse UTF-8 with #{syntax}" do Textpow.syntax(syntax).parse(File.read("spec/fixtures/utf8.txt")) 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 & 2 rubygems
Version | Path |
---|---|
textpow-1.3.1 | spec/textpow/syntax_files_spec.rb |
textpow-1.3.0 | spec/textpow/syntax_files_spec.rb |
textpow1x-1.2.5 | spec/textpow/syntax_files_spec.rb |