Sha256: 613ee848e14d569e266da242e496870bec1f14a17bda921e14bfd355f3bf4a28
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
describe "WikiCreole" do it "should parse a simple wiki text" do wiki="\nSome Text\n== Some headline\n" #wiki="\n== Some headline\n" parse(wiki) end def parse(text) require 'treetop' Treetop.load "apps/wiki/lib/wikicreole.tt" #require 'simple_marshal_parser.rb' parser = WikiCreoleParser.new result = parser.parse(text) pp "RESULT",result if result return result.sload end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appswarm-0.0.1 | apps/wiki/spec/wiki_creole_spec.rb |