Sha256: bc4bb83c1c383b5d07e73d9e85d22fb28e05cbfc3df3e3e974512242255d2049
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
require 'helper' describe ProperProperties::Encoding::SpecialChars do subject{ ProperProperties::Encoding::SpecialChars } let(:raw) { "this is some \n text \t with special\r chars\f" } let(:encoded){ 'this is some \n text \t with special\r chars\f' } it "encodes special chars" do processed = subject.encode!(raw.dup) processed.must_equal encoded end it "deencodes special chars" do processed = subject.decode!(encoded.dup) processed.must_equal raw end it "decodes and encodes to the same" do encoded = subject.encode!(raw.dup) deconded = subject.decode!(encoded) deconded.must_equal raw end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proper_properties-0.0.2 | spec/proper_properties/encoding/special_chars_spec.rb |
proper_properties-0.0.1 | spec/proper_properties/encoding/special_chars_spec.rb |