spec/mixpanel/tracker_spec.rb in mixpanel-4.0.7 vs spec/mixpanel/tracker_spec.rb in mixpanel-4.0.8
- old
+ new
@@ -27,9 +27,13 @@
end
it "should track events with properties" do
@mixpanel.track('Sign up', { :likeable => true }, { :api_key => 'asdf' }).should == true
end
+
+ it "should track simple events with async" do
+ @mixpanel.track("Sign up", {}, :async => true).should == true
+ end
end
context "Tracking pixel" do
it "should return a URL" do
@mixpanel.tracking_pixel("Sign up").should be_a(String)