Sha256: 47a4040fac4d1e10fcea9dbef68c7c187ca2892975a94095adb8a5e187fdc595
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '../../spec_helper') module Owasp module Esapi module Codec describe OracleCodec do let (:codec) { Owasp::Esapi::Codec::OracleCodec.new } it "should encode eddie's stuff as eddie''s stuff" do codec.encode([],"eddie's stuff").should == "eddie''s stuff" end it "should encode \' as \'\'" do codec.encode([],"\'").should == "\'\'" end it "should decode \'\' as \'" do codec.decode("\'\'").should == "\'" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
owasp-esapi-ruby-0.30.0 | spec/codec/oracle_codec_spec.rb |