mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
14 lines
305 B
Ruby
14 lines
305 B
Ruby
require 'spec_helper'
|
|
|
|
describe ApplicationHelper do
|
|
|
|
describe "escape_unicode" do
|
|
it "encodes tags" do
|
|
helper.escape_unicode("<tag>").should == "\u003ctag>"
|
|
end
|
|
it "survives junk text" do
|
|
helper.escape_unicode("hello \xc3\x28 world").should =~ /hello.*world/
|
|
end
|
|
end
|
|
|
|
end
|