Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ri_cal/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def export_prop_to(export_stream, name, prop) #:nodoc:
def export_x_properties_to(export_stream) #:nodoc:
x_properties.each do |name, props|
props.each do | prop |
export_stream.puts("#{name}:#{prop}")
export_stream.puts("#{name}#{prop}")
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions spec/ri_cal/component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@
it 'should have an x_wr_calname property with the value "My Personal Calendar"' do
@it.x_wr_calname.first.should == "My Personal Calendar"
end

it 'should write out the x_wr_calname with the value "My Personal Calendar"' do
@it.to_s.should =~ /X-WR-CALNAME:My Personal Calendar/
end

context "event with a long description and a dsl built recurence rule" do
before(:each) do
Expand Down