spec/mixpanel/tracker_spec.rb in mixpanel-3.0.1 vs spec/mixpanel/tracker_spec.rb in mixpanel-3.0.2

- old
+ new

@@ -82,9 +82,14 @@ it "should allow identify to be called through the JS api" do @mixpanel.append_identify "some@one.com" mixpanel_queue_should_include(@mixpanel, "identify", "some@one.com") end + it "should allow people.identify to be called through the JS api" do + @mixpanel.append_people_identify "an_identity" + mixpanel_queue_should_include(@mixpanel, "people.identify", "an_identity") + end + it "should allow the tracking of super properties in JS" do props = {:user_id => 12345, :gender => 'male'} @mixpanel.append_register props mixpanel_queue_should_include(@mixpanel, 'register', props) end