Sha256: d587f9ee887038443c08361657b675c554c660dcfa268d900c4c00996dd8a2a6
Contents?: true
Size: 753 Bytes
Versions: 3
Compression:
Stored size: 753 Bytes
Contents
require "wlang" 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 3 versions & 1 rubygems
Version | Path |
---|---|
wlang-0.10.0 | test/spec/redcloth_dialect.spec |
wlang-0.9.2 | test/spec/redcloth_dialect.spec |
wlang-0.9.1 | test/spec/redcloth_dialect.spec |