Sha256: 419bd4921c208cf62f1a72be4e5403bb0ad40505e2af3c559451130d46b13385
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
require 'helper' describe ProperProperties::Encoding::Separators do subject{ ProperProperties::Encoding::Separators } let(:raw) { 'this is some = text : with special \\=separators' } let(:raw_normalizd) { 'this is some = text : with special =separators' } let(:encoded){ 'this\\ is\\ some\\ \\=\\ text\\ \\:\\ with\\ special\\ \\=separators' } it "encodes separators" do processed = subject.encode!(raw.dup) processed.must_equal encoded end it "decodes separators" do processed = subject.decode!(encoded.dup) processed.must_equal raw_normalizd end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proper_properties-0.0.2 | spec/proper_properties/encoding/separators_spec.rb |
proper_properties-0.0.1 | spec/proper_properties/encoding/separators_spec.rb |