Sha256: cf74f108e1f22ab9c6054ee22cb150d083cb4220c2465e7d6272c1a89a8060be

Contents?: true

Size: 637 Bytes

Versions: 14

Compression:

Stored size: 637 Bytes

Contents

require 'ruby-debug'
require File.join(File.dirname(__FILE__), "../lib", "mixpanel")
require 'rack/test'
require 'fakeweb'
require 'nokogiri'
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}

MIX_PANEL_TOKEN = "e2d8b0bea559147844ffab3d607d26a6"


def mixpanel_queue_should_include(mixpanel, type, *arguments)
  mixpanel.queue.each do |event_type, event_arguments|
    event_arguments.should == arguments.map{|arg| arg.to_json}
    event_type.should == type
  end
end

# Fakeweb
FakeWeb.allow_net_connect = false
FakeWeb.register_uri(:any, /http:\/\/api\.mixpanel\.com.*/, :body => "1")

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
mixpanel-2.1.0 spec/spec_helper.rb
mixpanel-2.0.2 spec/spec_helper.rb
mixpanel-2.0.1 spec/spec_helper.rb
mixpanel-2.0.0 spec/spec_helper.rb
mixpanel-1.1.3 spec/spec_helper.rb
mixpanel-1.1.2 spec/spec_helper.rb
mixpanel-1.1.1 spec/spec_helper.rb
mixpanel-1.0.0 spec/spec_helper.rb
mixpanel-0.9.0 spec/spec_helper.rb
mixpanel-0.8.1 spec/spec_helper.rb
mixpanel-0.8.0 spec/spec_helper.rb
loganb-mixpanel-0.7.2 spec/spec_helper.rb
loganb-mixpanel-0.7.1 spec/spec_helper.rb
mixpanel-0.7.0 spec/spec_helper.rb