File: latex_spec.rb

package info (click to toggle)
ruby-redcloth 4.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: ruby: 1,233; ansic: 201; makefile: 25
file content (13 lines) | stat: -rw-r--r-- 388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
require File.dirname(__FILE__) + '/../spec_helper'

describe "LaTeX" do
  examples_from_yaml do |doc|
    RedCloth.new(doc['in']).to_latex
  end
  
  it "should not raise an error when orphaned parentheses in a link are followed by punctuation and words in LaTeX" do
    expect { 
      RedCloth.new(%Q{Test "(read this":http://test.host), ok}).to_latex
    }.not_to raise_error
  end
end