Sha256: 0aff5d9782a15c9c7bee75a912df93748bda635f43c12c7851e216d6ce8307d2
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = ICalendar_spec.rb -- The TaskJuggler III Project Management Software # # Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 # by Chris Schlaeger <cs@taskjuggler.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # require 'rubygems' require 'taskjuggler/ICalendar' require 'support/spec_helper.rb' RSpec.configure do |config| config.expect_with(:rspec) { |c| c.syntax = :should } end class TaskJuggler describe ICalendar do describe ICalendar::Component do it 'should quote properly' do c = ICalendar::Component.new(nil, '', nil, nil) [ [ '', '' ], [ 'foo', 'foo' ], [ '"', '\"' ], [ ';', '\;' ], [ ',', '\,' ], [ "\n", '\n' ], [ "foo\nbar", 'foo\nbar' ], [ 'a"b"c', 'a\"b\"c' ] ].each do |i, o| c.send('quoted', i).should == o end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taskjuggler-3.7.2 | spec/ICalendar_spec.rb |
taskjuggler-3.7.1 | spec/ICalendar_spec.rb |
taskjuggler-3.6.0 | spec/ICalendar_spec.rb |