Sha256: cb2daf2dd449f5588fb1cb8f9687c518b8044482aca2ff22f66a506dc448f881
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) describe("WLang should support redcloth encoder") do it("should support basic redcloth encoding") { expected = "<h1>This is a title</h1>" WLang::encode("h1. This is a title", "redcloth/xhtml").should == expected } it("should not perturbate template variables with global variables") { # RedCloth installs a t global method (which becomes a private method # of Object) which was perturbating the HostedLanguage::DSL class. # This test acts as a non-regression one. require 'rubygems' require 'RedCloth' "${t}".wlang(:t => 'wlang').should == 'wlang' begin "${t}".wlang() true.should == false rescue ::WLang::UndefinedVariableError true.should == true end } end
Version data entries
3 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wlang-0.10.2 | spec/redcloth_dialect.spec |
wlang-0.10.1 | ./spec/redcloth_dialect.spec |
wlang-0.10.1 | spec/redcloth_dialect.spec |