Sha256: 3b025f5616d7be85f463d7f7338ba004994b06791fb8cb43b1c0fb3110539fd7

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

#- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license

require File.join(File.dirname(__FILE__), %w[.. .. spec_helper])

describe RiCal::PropertyValue::Text do
  
  it "should handle escapes according to RFC2445 Sec 4.3.11 p 45" do
   expected = "this\\ has\, \nescaped\;\n\\x characters"
   it = RiCal::PropertyValue::Text.new(nil, :value => 'this\\ has\, \nescaped\;\N\x characters')
   it.ruby_value.should == expected
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubyredrick-ri_cal-0.0.10 spec/ri_cal/property_value/text_spec.rb
rubyredrick-ri_cal-0.0.3 spec/ri_cal/property_value/text_spec.rb
rubyredrick-ri_cal-0.0.4 spec/ri_cal/property_value/text_spec.rb
rubyredrick-ri_cal-0.0.5 spec/ri_cal/property_value/text_spec.rb
rubyredrick-ri_cal-0.0.6 spec/ri_cal/property_value/text_spec.rb
rubyredrick-ri_cal-0.0.7 spec/ri_cal/property_value/text_spec.rb
rubyredrick-ri_cal-0.0.8 spec/ri_cal/property_value/text_spec.rb
rubyredrick-ri_cal-0.0.9 spec/ri_cal/property_value/text_spec.rb