Sha256: f2e899bb383cc9db2f258d0b29e428bb9d468d099e961f0ade9a36f3ae705d9a

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

require 'spec_helper'

describe Mixpanel do
  context "Deprecated initialization mode" do
    it "should not allow to initialize the class as the old way" do
      lambda do
        mixpanel = Mixpanel.new(MIX_PANEL_TOKEN, @env = {"REMOTE_ADDR" => "127.0.0.1"})
      end.should raise_error(NoMethodError)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mixpanel-2.2.0 spec/mixpanel/mixpanel_spec.rb
mixpanel-2.1.0 spec/mixpanel/mixpanel_spec.rb
mixpanel-2.0.2 spec/mixpanel/mixpanel_spec.rb
mixpanel-2.0.1 spec/mixpanel/mixpanel_spec.rb
mixpanel-2.0.0 spec/mixpanel/mixpanel_spec.rb