Skip to content

Instantly share code, notes, and snippets.

@retorquere
Created April 8, 2011 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retorquere/909918 to your computer and use it in GitHub Desktop.
Save retorquere/909918 to your computer and use it in GitHub Desktop.
diff --git a/test/spec/calendar_item_spec.rb b/test/spec/calendar_item_spec.rb
index e4263d1..8f296af 100644
--- a/test/spec/calendar_item_spec.rb
+++ b/test/spec/calendar_item_spec.rb
@@ -61,6 +61,15 @@ describe Viewpoint::EWS::CalendarItem, "functionality testing" do
@citem.remove_attendees!([@citem.required_attendees.first]).should be_true
end
+ it 'should add tags to the meeting' do
+ @citem.set_tags!(['tag1', 'tag2'], :tagspace => 'custom_tagspace')
+ end
+
+ it 'should find the meeting by tag' do
+ i = @cal.find_items_with_tag 'tag1', :tagspace => 'custom_tagspace'
+ i.tags.include?('tag2').should be_true
+ end
+
after(:all) do
@citem.recycle!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment