spec/mixpanel/tracker_spec.rb in mixpanel-3.5.2 vs spec/mixpanel/tracker_spec.rb in mixpanel-3.6.2
- old
+ new
@@ -73,10 +73,14 @@
end
it "should unset property" do
@mixpanel.unset('person-a', 'property').should == true
end
+
+ it "should delete a user from mixpanel" do
+ @mixpanel.delete('person-a').should == true
+ end
end
end
context "Accessing Mixpanel through javascript API" do
context "Appending events" do
@@ -117,9 +121,15 @@
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
+
+ it "should allow the one-time tracking of super properties in JS" do
+ props = {:user_id => 12345, :gender => 'male'}
+ @mixpanel.append_register_once props
+ mixpanel_queue_should_include(@mixpanel, 'register_once', props)
end
end
end
context "Accessing Mixpanel asynchronously" do