spec/formatting/html/string_spec.rb in ronin-support-0.2.0 vs spec/formatting/html/string_spec.rb in ronin-support-0.3.0
- old
+ new
@@ -92,10 +92,10 @@
js_mixed.js_unescape.should == subject
end
end
describe "#format_js" do
- let(:js_formatted) { "%6F%6E%65%20%26%20%74%77%6F" }
+ let(:js_formatted) { '\x6F\x6E\x65\x20\x26\x20\x74\x77\x6F' }
it "should JavaScript escape all characters" do
subject.format_js.should == js_formatted
end
end