mixpanel_tracker 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +8 -19
  3. data/lib/mixpanel_tracker/railtie.rb +0 -1
  4. data/lib/mixpanel_tracker/tracker.rb +2 -0
  5. data/lib/mixpanel_tracker/version.rb +1 -1
  6. data/{test → spec}/dummy/README.rdoc +0 -0
  7. data/{test → spec}/dummy/Rakefile +0 -0
  8. data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
  9. data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  10. data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  11. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  12. data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  13. data/{test → spec}/dummy/bin/bundle +0 -0
  14. data/{test → spec}/dummy/bin/rails +0 -0
  15. data/{test → spec}/dummy/bin/rake +0 -0
  16. data/{test → spec}/dummy/config/application.rb +0 -0
  17. data/{test → spec}/dummy/config/boot.rb +0 -0
  18. data/{test → spec}/dummy/config/database.yml +0 -0
  19. data/{test → spec}/dummy/config/environment.rb +0 -0
  20. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  21. data/{test → spec}/dummy/config/environments/production.rb +0 -0
  22. data/{test → spec}/dummy/config/environments/test.rb +0 -0
  23. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  24. data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  25. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  26. data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  27. data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
  28. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  29. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  30. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  31. data/{test → spec}/dummy/config/routes.rb +0 -0
  32. data/{test → spec}/dummy/config.ru +0 -0
  33. data/spec/dummy/db/development.sqlite3 +0 -0
  34. data/spec/dummy/db/schema.rb +16 -0
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/log/development.log +3 -0
  37. data/spec/dummy/log/test.log +745 -0
  38. data/{test → spec}/dummy/public/404.html +0 -0
  39. data/{test → spec}/dummy/public/422.html +0 -0
  40. data/{test → spec}/dummy/public/500.html +0 -0
  41. data/{test → spec}/dummy/public/favicon.ico +0 -0
  42. data/spec/generators/mixpanel_tracker/mixpanel_tracker_generator_spec.rb +19 -0
  43. data/spec/mixpanel_tracker/tracker_spec.rb +27 -0
  44. data/spec/mixpanel_tracker_spec.rb +19 -0
  45. data/spec/spec_helper.rb +27 -0
  46. metadata +139 -74
  47. data/README.rdoc +0 -3
  48. data/test/dummy/db/test.sqlite3 +0 -0
  49. data/test/dummy/log/test.log +0 -195
  50. data/test/mixpanel_tracker_test.rb +0 -12
  51. data/test/test_helper.rb +0 -15
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe :mixpanel_tracker do
4
+ context 'without arguments' do
5
+ it 'generates initializer with call to ENV variable' do
6
+ subject.should generate('config/initializers/mixpanel_tracker.rb') { |content|
7
+ expect(content).to include('config.access_token = ENV[\'MIXPANEL_ACCESS_TOKEN\']')
8
+ }
9
+ end
10
+ end
11
+
12
+ with_args test_token do
13
+ it 'generates initializer with access token' do
14
+ subject.should generate('config/initializers/mixpanel_tracker.rb') { |content|
15
+ expect(content).to include("config.access_token = '#{test_token}'")
16
+ }
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ describe MixpanelTracker::Tracker do
4
+ it 'is initialized with session' do
5
+ session = Hash.new
6
+
7
+ tracker = MixpanelTracker::Tracker.new(session)
8
+
9
+ expect(tracker.instance_variable_get(:@session)).to eq(session)
10
+ end
11
+
12
+ it 'throws exception when no session is provided' do
13
+ expect {
14
+ MixpanelTracker::Tracker.new(nil)
15
+ }.to raise_error(ArgumentError)
16
+ end
17
+
18
+ it 'accepts events and put them in queue' do
19
+ tracker = MixpanelTracker::Tracker.new(Hash.new)
20
+
21
+ expect(tracker.instance_variable_get(:@session)).to eq({})
22
+
23
+ tracker.track 'An event'
24
+
25
+ expect(tracker.instance_variable_get(:@session)[:mixpanel_events].size).to eq(1)
26
+ end
27
+ end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe MixpanelTracker do
4
+ it 'can be configured' do
5
+ MixpanelTracker.configure do |c|
6
+ c.access_token = 'dummy'
7
+ c.enabled = true
8
+ c.register_utm_params = true
9
+ end
10
+ end
11
+
12
+ it 'adds mixpanel method to ActionController::Base' do
13
+ expect(ActionController::Base.new).to respond_to(:mixpanel)
14
+ end
15
+
16
+ it 'adds include_mixpanel method to ActionView::Base' do
17
+ expect(ActionView::Base.new).to respond_to(:include_mixpanel)
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ require 'rubygems'
2
+ require 'pry'
3
+ require 'coveralls'
4
+
5
+ Coveralls.wear!
6
+
7
+ ENV['RAILS_ENV'] = 'test'
8
+ require File.expand_path('../dummy/config/environment', __FILE__)
9
+
10
+ require 'rspec/rails'
11
+ require 'genspec'
12
+
13
+ load 'spec/dummy/Rakefile'
14
+
15
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
16
+
17
+ RSpec.configure do |config|
18
+ config.color_enabled = true
19
+ config.formatter = 'documentation'
20
+
21
+ config.use_transactional_fixtures = true
22
+ config.order = "random"
23
+ end
24
+
25
+ def test_token
26
+ 'qwerty123456'
27
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpanel_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Zhavoronkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-19 00:00:00.000000000 Z
11
+ date: 2014-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,6 +38,62 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.14.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.14.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: genspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.2.8
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.2.8
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 0.9.12
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.9.12
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 0.7.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.7.0
41
97
  description: Allows you to track mixpanel events
42
98
  email:
43
99
  - anton.zhavoronkov@gmail.com
@@ -57,42 +113,46 @@ files:
57
113
  - lib/mixpanel_tracker.rb
58
114
  - lib/tasks/mixpanel_tracker_tasks.rake
59
115
  - Rakefile
60
- - README.rdoc
61
- - test/dummy/app/assets/javascripts/application.js
62
- - test/dummy/app/assets/stylesheets/application.css
63
- - test/dummy/app/controllers/application_controller.rb
64
- - test/dummy/app/helpers/application_helper.rb
65
- - test/dummy/app/views/layouts/application.html.erb
66
- - test/dummy/bin/bundle
67
- - test/dummy/bin/rails
68
- - test/dummy/bin/rake
69
- - test/dummy/config/application.rb
70
- - test/dummy/config/boot.rb
71
- - test/dummy/config/database.yml
72
- - test/dummy/config/environment.rb
73
- - test/dummy/config/environments/development.rb
74
- - test/dummy/config/environments/production.rb
75
- - test/dummy/config/environments/test.rb
76
- - test/dummy/config/initializers/backtrace_silencers.rb
77
- - test/dummy/config/initializers/filter_parameter_logging.rb
78
- - test/dummy/config/initializers/inflections.rb
79
- - test/dummy/config/initializers/mime_types.rb
80
- - test/dummy/config/initializers/secret_token.rb
81
- - test/dummy/config/initializers/session_store.rb
82
- - test/dummy/config/initializers/wrap_parameters.rb
83
- - test/dummy/config/locales/en.yml
84
- - test/dummy/config/routes.rb
85
- - test/dummy/config.ru
86
- - test/dummy/db/test.sqlite3
87
- - test/dummy/log/test.log
88
- - test/dummy/public/404.html
89
- - test/dummy/public/422.html
90
- - test/dummy/public/500.html
91
- - test/dummy/public/favicon.ico
92
- - test/dummy/Rakefile
93
- - test/dummy/README.rdoc
94
- - test/mixpanel_tracker_test.rb
95
- - test/test_helper.rb
116
+ - spec/dummy/app/assets/javascripts/application.js
117
+ - spec/dummy/app/assets/stylesheets/application.css
118
+ - spec/dummy/app/controllers/application_controller.rb
119
+ - spec/dummy/app/helpers/application_helper.rb
120
+ - spec/dummy/app/views/layouts/application.html.erb
121
+ - spec/dummy/bin/bundle
122
+ - spec/dummy/bin/rails
123
+ - spec/dummy/bin/rake
124
+ - spec/dummy/config/application.rb
125
+ - spec/dummy/config/boot.rb
126
+ - spec/dummy/config/database.yml
127
+ - spec/dummy/config/environment.rb
128
+ - spec/dummy/config/environments/development.rb
129
+ - spec/dummy/config/environments/production.rb
130
+ - spec/dummy/config/environments/test.rb
131
+ - spec/dummy/config/initializers/backtrace_silencers.rb
132
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
133
+ - spec/dummy/config/initializers/inflections.rb
134
+ - spec/dummy/config/initializers/mime_types.rb
135
+ - spec/dummy/config/initializers/secret_token.rb
136
+ - spec/dummy/config/initializers/session_store.rb
137
+ - spec/dummy/config/initializers/wrap_parameters.rb
138
+ - spec/dummy/config/locales/en.yml
139
+ - spec/dummy/config/routes.rb
140
+ - spec/dummy/config.ru
141
+ - spec/dummy/db/development.sqlite3
142
+ - spec/dummy/db/schema.rb
143
+ - spec/dummy/db/test.sqlite3
144
+ - spec/dummy/log/development.log
145
+ - spec/dummy/log/test.log
146
+ - spec/dummy/public/404.html
147
+ - spec/dummy/public/422.html
148
+ - spec/dummy/public/500.html
149
+ - spec/dummy/public/favicon.ico
150
+ - spec/dummy/Rakefile
151
+ - spec/dummy/README.rdoc
152
+ - spec/generators/mixpanel_tracker/mixpanel_tracker_generator_spec.rb
153
+ - spec/mixpanel_tracker/tracker_spec.rb
154
+ - spec/mixpanel_tracker_spec.rb
155
+ - spec/spec_helper.rb
96
156
  homepage: https://github.com/AntonZh/mixpanel_tracker
97
157
  licenses:
98
158
  - MIT
@@ -113,44 +173,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
173
  version: '0'
114
174
  requirements: []
115
175
  rubyforge_project:
116
- rubygems_version: 2.0.6
176
+ rubygems_version: 2.1.11
117
177
  signing_key:
118
178
  specification_version: 4
119
179
  summary: Events tracker for Rails
120
180
  test_files:
121
- - test/dummy/app/assets/javascripts/application.js
122
- - test/dummy/app/assets/stylesheets/application.css
123
- - test/dummy/app/controllers/application_controller.rb
124
- - test/dummy/app/helpers/application_helper.rb
125
- - test/dummy/app/views/layouts/application.html.erb
126
- - test/dummy/bin/bundle
127
- - test/dummy/bin/rails
128
- - test/dummy/bin/rake
129
- - test/dummy/config/application.rb
130
- - test/dummy/config/boot.rb
131
- - test/dummy/config/database.yml
132
- - test/dummy/config/environment.rb
133
- - test/dummy/config/environments/development.rb
134
- - test/dummy/config/environments/production.rb
135
- - test/dummy/config/environments/test.rb
136
- - test/dummy/config/initializers/backtrace_silencers.rb
137
- - test/dummy/config/initializers/filter_parameter_logging.rb
138
- - test/dummy/config/initializers/inflections.rb
139
- - test/dummy/config/initializers/mime_types.rb
140
- - test/dummy/config/initializers/secret_token.rb
141
- - test/dummy/config/initializers/session_store.rb
142
- - test/dummy/config/initializers/wrap_parameters.rb
143
- - test/dummy/config/locales/en.yml
144
- - test/dummy/config/routes.rb
145
- - test/dummy/config.ru
146
- - test/dummy/db/test.sqlite3
147
- - test/dummy/log/test.log
148
- - test/dummy/public/404.html
149
- - test/dummy/public/422.html
150
- - test/dummy/public/500.html
151
- - test/dummy/public/favicon.ico
152
- - test/dummy/Rakefile
153
- - test/dummy/README.rdoc
154
- - test/mixpanel_tracker_test.rb
155
- - test/test_helper.rb
181
+ - spec/dummy/app/assets/javascripts/application.js
182
+ - spec/dummy/app/assets/stylesheets/application.css
183
+ - spec/dummy/app/controllers/application_controller.rb
184
+ - spec/dummy/app/helpers/application_helper.rb
185
+ - spec/dummy/app/views/layouts/application.html.erb
186
+ - spec/dummy/bin/bundle
187
+ - spec/dummy/bin/rails
188
+ - spec/dummy/bin/rake
189
+ - spec/dummy/config/application.rb
190
+ - spec/dummy/config/boot.rb
191
+ - spec/dummy/config/database.yml
192
+ - spec/dummy/config/environment.rb
193
+ - spec/dummy/config/environments/development.rb
194
+ - spec/dummy/config/environments/production.rb
195
+ - spec/dummy/config/environments/test.rb
196
+ - spec/dummy/config/initializers/backtrace_silencers.rb
197
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
198
+ - spec/dummy/config/initializers/inflections.rb
199
+ - spec/dummy/config/initializers/mime_types.rb
200
+ - spec/dummy/config/initializers/secret_token.rb
201
+ - spec/dummy/config/initializers/session_store.rb
202
+ - spec/dummy/config/initializers/wrap_parameters.rb
203
+ - spec/dummy/config/locales/en.yml
204
+ - spec/dummy/config/routes.rb
205
+ - spec/dummy/config.ru
206
+ - spec/dummy/db/development.sqlite3
207
+ - spec/dummy/db/schema.rb
208
+ - spec/dummy/db/test.sqlite3
209
+ - spec/dummy/log/development.log
210
+ - spec/dummy/log/test.log
211
+ - spec/dummy/public/404.html
212
+ - spec/dummy/public/422.html
213
+ - spec/dummy/public/500.html
214
+ - spec/dummy/public/favicon.ico
215
+ - spec/dummy/Rakefile
216
+ - spec/dummy/README.rdoc
217
+ - spec/generators/mixpanel_tracker/mixpanel_tracker_generator_spec.rb
218
+ - spec/mixpanel_tracker/tracker_spec.rb
219
+ - spec/mixpanel_tracker_spec.rb
220
+ - spec/spec_helper.rb
156
221
  has_rdoc:
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = MixpanelTracker
2
-
3
- This project rocks and uses MIT-LICENSE.
File without changes
@@ -1,195 +0,0 @@
1
-  (0.3ms) begin transaction
2
- -------------------------------
3
- MixpanelTrackerTest: test_truth
4
- -------------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.2ms) begin transaction
7
- -------------------------------
8
- MixpanelTrackerTest: test_truth
9
- -------------------------------
10
-  (0.1ms) rollback transaction
11
-  (0.2ms) begin transaction
12
- -------------------------------
13
- MixpanelTrackerTest: test_truth
14
- -------------------------------
15
-  (0.1ms) rollback transaction
16
-  (0.2ms) begin transaction
17
- -------------------------------
18
- MixpanelTrackerTest: test_truth
19
- -------------------------------
20
-  (0.1ms) rollback transaction
21
-  (0.1ms) begin transaction
22
- --------------------------------
23
- MixpanelTrackerTest: test_truth2
24
- --------------------------------
25
-  (0.1ms) rollback transaction
26
-  (0.3ms) begin transaction
27
- -------------------------------
28
- MixpanelTrackerTest: test_truth
29
- -------------------------------
30
-  (0.1ms) rollback transaction
31
-  (0.1ms) begin transaction
32
- --------------------------------
33
- MixpanelTrackerTest: test_truth2
34
- --------------------------------
35
-  (0.1ms) rollback transaction
36
-  (0.3ms) begin transaction
37
- -------------------------------
38
- MixpanelTrackerTest: test_truth
39
- -------------------------------
40
-  (0.1ms) rollback transaction
41
-  (0.1ms) begin transaction
42
- --------------------------------
43
- MixpanelTrackerTest: test_truth2
44
- --------------------------------
45
-  (0.3ms) rollback transaction
46
-  (0.2ms) begin transaction
47
- -------------------------------
48
- MixpanelTrackerTest: test_truth
49
- -------------------------------
50
-  (0.1ms) rollback transaction
51
-  (0.1ms) begin transaction
52
- --------------------------------
53
- MixpanelTrackerTest: test_truth2
54
- --------------------------------
55
-  (0.0ms) rollback transaction
56
-  (0.6ms) begin transaction
57
- -------------------------------
58
- MixpanelTrackerTest: test_truth
59
- -------------------------------
60
-  (0.2ms) rollback transaction
61
-  (0.2ms) begin transaction
62
- --------------------------------
63
- MixpanelTrackerTest: test_truth2
64
- --------------------------------
65
-  (0.1ms) rollback transaction
66
-  (0.3ms) begin transaction
67
- -------------------------------
68
- MixpanelTrackerTest: test_truth
69
- -------------------------------
70
-  (0.1ms) rollback transaction
71
-  (0.1ms) begin transaction
72
- --------------------------------
73
- MixpanelTrackerTest: test_truth2
74
- --------------------------------
75
-  (0.1ms) rollback transaction
76
-  (0.3ms) begin transaction
77
- -------------------------------
78
- MixpanelTrackerTest: test_truth
79
- -------------------------------
80
-  (0.1ms) rollback transaction
81
-  (0.1ms) begin transaction
82
- --------------------------------
83
- MixpanelTrackerTest: test_truth2
84
- --------------------------------
85
-  (0.1ms) rollback transaction
86
-  (0.3ms) begin transaction
87
- -------------------------------
88
- MixpanelTrackerTest: test_truth
89
- -------------------------------
90
-  (0.1ms) rollback transaction
91
-  (0.1ms) begin transaction
92
- --------------------------------
93
- MixpanelTrackerTest: test_truth2
94
- --------------------------------
95
-  (0.1ms) rollback transaction
96
-  (0.3ms) begin transaction
97
- -------------------------------
98
- MixpanelTrackerTest: test_truth
99
- -------------------------------
100
-  (0.1ms) rollback transaction
101
-  (0.1ms) begin transaction
102
- --------------------------------
103
- MixpanelTrackerTest: test_truth2
104
- --------------------------------
105
-  (0.1ms) rollback transaction
106
-  (0.3ms) begin transaction
107
- -------------------------------
108
- MixpanelTrackerTest: test_truth
109
- -------------------------------
110
-  (0.1ms) rollback transaction
111
-  (0.2ms) begin transaction
112
- --------------------------------
113
- MixpanelTrackerTest: test_truth2
114
- --------------------------------
115
-  (0.2ms) rollback transaction
116
-  (0.5ms) begin transaction
117
- -------------------------------
118
- MixpanelTrackerTest: test_truth
119
- -------------------------------
120
-  (0.1ms) rollback transaction
121
-  (0.2ms) begin transaction
122
- --------------------------------
123
- MixpanelTrackerTest: test_truth2
124
- --------------------------------
125
-  (0.1ms) rollback transaction
126
-  (0.3ms) begin transaction
127
- -------------------------------
128
- MixpanelTrackerTest: test_truth
129
- -------------------------------
130
-  (0.1ms) rollback transaction
131
-  (0.1ms) begin transaction
132
- --------------------------------
133
- MixpanelTrackerTest: test_truth2
134
- --------------------------------
135
-  (0.1ms) rollback transaction
136
-  (0.2ms) begin transaction
137
- -------------------------------
138
- MixpanelTrackerTest: test_truth
139
- -------------------------------
140
-  (0.1ms) rollback transaction
141
-  (0.1ms) begin transaction
142
- --------------------------------
143
- MixpanelTrackerTest: test_truth2
144
- --------------------------------
145
-  (0.2ms) rollback transaction
146
-  (0.3ms) begin transaction
147
- -------------------------------
148
- MixpanelTrackerTest: test_truth
149
- -------------------------------
150
-  (0.1ms) rollback transaction
151
-  (0.1ms) begin transaction
152
- --------------------------------
153
- MixpanelTrackerTest: test_truth2
154
- --------------------------------
155
-  (0.1ms) rollback transaction
156
-  (0.3ms) begin transaction
157
- -------------------------------
158
- MixpanelTrackerTest: test_truth
159
- -------------------------------
160
-  (0.1ms) rollback transaction
161
-  (0.1ms) begin transaction
162
- --------------------------------
163
- MixpanelTrackerTest: test_truth2
164
- --------------------------------
165
-  (0.1ms) rollback transaction
166
-  (0.3ms) begin transaction
167
- -------------------------------
168
- MixpanelTrackerTest: test_truth
169
- -------------------------------
170
-  (0.1ms) rollback transaction
171
-  (0.2ms) begin transaction
172
- --------------------------------
173
- MixpanelTrackerTest: test_truth2
174
- --------------------------------
175
-  (0.1ms) rollback transaction
176
-  (0.3ms) begin transaction
177
- -------------------------------
178
- MixpanelTrackerTest: test_truth
179
- -------------------------------
180
-  (0.1ms) rollback transaction
181
-  (0.1ms) begin transaction
182
- --------------------------------
183
- MixpanelTrackerTest: test_truth2
184
- --------------------------------
185
-  (0.1ms) rollback transaction
186
-  (0.2ms) begin transaction
187
- -------------------------------
188
- MixpanelTrackerTest: test_truth
189
- -------------------------------
190
-  (0.1ms) rollback transaction
191
-  (0.1ms) begin transaction
192
- --------------------------------
193
- MixpanelTrackerTest: test_truth2
194
- --------------------------------
195
-  (0.1ms) rollback transaction
@@ -1,12 +0,0 @@
1
- require 'test_helper'
2
-
3
- class MixpanelTrackerTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, MixpanelTracker
6
- end
7
-
8
- test "truth2" do
9
- c = ApplicationController.new
10
- assert_equal c.mixpanel.track("Lol", {}), true
11
- end
12
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end