From bc6e2e8aa52b05c8a51fcac52cab0f9bce1ce827 Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Fri, 13 Sep 2013 05:25:45 -0400 Subject: [PATCH] Add failing test. --- spec/unit/map_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/unit/map_spec.rb b/spec/unit/map_spec.rb index 0e87a3d..478604e 100644 --- a/spec/unit/map_spec.rb +++ b/spec/unit/map_spec.rb @@ -30,6 +30,17 @@ describe "map properties" do @map.annotations.count.should == 6 end + it "should return custom annotation parameters" do + ann = { + longitude: -82.966093558105, + latitude: 35.092520895652, + title: "Custom", + another_value: "Mark" + } + @map.add_annotation(ann) + @map.annotations.last.another_value.should == "Mark" + end + it "should clear annotations" do @map.clear_annotations @map.annotations.count.should == 0