File: to_html_utf8_spec.rb

package info (click to toggle)
ruby-maruku 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,304 kB
  • sloc: ruby: 5,741; xml: 235; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# encoding: UTF-8

require File.dirname(__FILE__) + '/spec_helper'
require 'rspec'
require 'maruku'

describe "Maruku to_html" do
  # This test used to hang in JRuby!
  it "can produce HTML for a document that contains non-ASCII characters" do
    doc = Maruku.new.instance_eval 'md_el(:document,["è"],{},[])'
    doc.to_html.strip.should == "è"
  end
end