spyme 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: da5c9b7aa3bced79744a4ceefd9a08e45caa0424
4
- data.tar.gz: 23a4028beabaffaa0eff4af976a99d1d1214c48e
2
+ SHA256:
3
+ metadata.gz: d62bbbd73d3c056a462c280ce53b520edd3e4772e2694ef6e76795f1c2438fc9
4
+ data.tar.gz: 229b0a9259be177b264873c28aa4b0573bb9d6e3ee4c922d81f16fbe08f11e86
5
5
  SHA512:
6
- metadata.gz: 272b40a16b88234236e3e8ed57b3d4e4e3f6857b1842e823eb8097723c46d33665566f467fa358196e6bca1df0582b3144ec633a7949f778d10bc8c1e5c5688e
7
- data.tar.gz: b5383c909ead8c0c69626535f740e8a76713be40bab771a999200867a34eb1b3e63f14a55a79f68554fb22fb3620964145557aa68b9f97ad3c85e6ad6a0ad647
6
+ metadata.gz: 7241eb02b65df19c41bc74ba32b2be0886fd0660944a67a1395c62565495075f762b7ec5c2c4fb850b8cc09bc3804a7dc56a0ccb9ebc3189b04ffed4eb7530b9
7
+ data.tar.gz: 1831a383da43674bea6666e470eacb4237608d6e0be3fd07e9529b10b473587f879e3933a4a993b25d4b6b915a62216bd9adfc89baaf6fc7ac37c24e183813c6
@@ -20,7 +20,7 @@ module Spyme
20
20
  end
21
21
 
22
22
  def location_params
23
- params[:location]
23
+ params.require(:location).permit(:latitude,:longitude)
24
24
  end
25
25
  end
26
- end
26
+ end
data/lib/spyme/model.rb CHANGED
@@ -5,8 +5,8 @@ module Spyme
5
5
 
6
6
  attr_accessor :latitude, :longitude
7
7
 
8
- validates :latitude, presence: true, numericality: { greater_than: 0.0 }
9
- validates :longitude, presence: true, numericality: { greater_than: 0.0 }
8
+ validates :latitude, presence: true, numericality: { greater_than_or_equal_to: -90, less_than_or_equal_to: 90 }
9
+ validates :longitude, presence: true, numericality: { greater_than_or_equal_to: -180, less_than_or_equal_to: 180 }
10
10
 
11
11
  def to_s
12
12
  "#{latitude}, #{longitude}"
@@ -22,10 +22,10 @@ module Spyme
22
22
 
23
23
  class << self
24
24
  def from_session(session)
25
- latitude = session[:latitude] || ''
26
- longitude = session[:longitude] || ''
25
+ lat = session[:latitude]
26
+ lon = session[:longitude]
27
27
 
28
- self.new(latitude: latitude.to_f, longitude: longitude.to_f)
28
+ self.new(latitude: lat.presence && lat.to_f, longitude: lon.presence && lon.to_f)
29
29
  end
30
30
  end
31
31
  end
data/lib/spyme/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spyme
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -18,6 +18,7 @@ module Dummy
18
18
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
19
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
20
  # config.i18n.default_locale = :de
21
+ config.active_record.sqlite3.represent_boolean_as_integer = true
21
22
  end
22
23
  end
23
24
 
Binary file
@@ -0,0 +1,15 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 0) do
14
+
15
+ end
Binary file
@@ -1,21 +1,40 @@
1
-
2
-
3
- Started GET "/" for 127.0.0.1 at 2014-12-02 18:15:49 -0300
4
- Processing by HomeController#start as HTML
5
- Rendered home/start.html.erb within layouts/application (1.5ms)
6
- Completed 200 OK in 40ms (Views: 38.9ms | ActiveRecord: 0.0ms)
7
-
8
-
9
- Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-12-02 18:15:49 -0300
10
-
11
-
12
- Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-12-02 18:15:49 -0300
13
-
14
-
15
- Started GET "/my-location" for 127.0.0.1 at 2014-12-02 18:15:51 -0300
16
- Processing by HomeController#my_location as HTML
17
- Rendered home/my_location.html.erb within layouts/application (0.8ms)
18
- Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.0ms)
19
-
20
-
21
- Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-12-02 18:15:52 -0300
1
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
2
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
3
+ boolean values and must have old data converted to 1 and 0 (its native boolean
4
+ serialization) before setting this flag to true. Conversion can be accomplished
5
+ by setting up a rake task which runs
6
+
7
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
8
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
9
+
10
+ for all models and all boolean columns, after which the flag must be set to
11
+ true by adding the following to your application.rb file:
12
+
13
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
14
+ (called from load at /home/pollo/.rbenv/versions/2.5.1/bin/rake:23)
15
+  (0.1ms) SELECT sqlite_version(*)
16
+  (11.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
17
+  (11.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
18
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
19
+  (0.1ms) begin transaction
20
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-17 19:18:05.401218"], ["updated_at", "2018-09-17 19:18:05.401218"]]
21
+  (10.7ms) commit transaction
22
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
23
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
24
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
25
+ boolean values and must have old data converted to 1 and 0 (its native boolean
26
+ serialization) before setting this flag to true. Conversion can be accomplished
27
+ by setting up a rake task which runs
28
+
29
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
30
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
31
+
32
+ for all models and all boolean columns, after which the flag must be set to
33
+ true by adding the following to your application.rb file:
34
+
35
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
36
+ (called from load at /home/pollo/.rbenv/versions/2.5.1/bin/rake:23)
37
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
38
+  (0.0ms) begin transaction
39
+  (0.0ms) commit transaction
40
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
@@ -1,731 +1,3092 @@
1
-  (0.2ms) begin transaction
1
+  (0.1ms) begin transaction
2
+ --------------------------------------------------------------
3
+ ModelTest: test_location_should_be_valid_at_negative_boundries
4
+ --------------------------------------------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+ -----------------------------------------------------------------------
8
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
9
+ -----------------------------------------------------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+ --------------------------------------------------------------
13
+ ModelTest: test_location_should_be_valid_at_positive_boundries
14
+ --------------------------------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.0ms) begin transaction
17
+ -------------------------------------------------------------
18
+ ModelTest: test_as_a_string_should_give_the_right_query_value
19
+ -------------------------------------------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.0ms) begin transaction
22
+ -----------------------------------------------------------------------------
23
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
24
+ -----------------------------------------------------------------------------
25
+  (0.0ms) rollback transaction
26
+  (0.0ms) begin transaction
27
+ ----------------------------------------------------------------
28
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
29
+ ----------------------------------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+ -------------------------------------------------------------
33
+ ModelTest: test_location_should_be_invalid_when_empty_session
34
+ -------------------------------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.0ms) begin transaction
37
+ ----------------------------------------------------------------------------
38
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
39
+ ----------------------------------------------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+ ------------------------------------------------------
43
+ ModelTest: test_coords_should_give_the_values_in_array
44
+ ------------------------------------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+ --------------------------------------------------------
48
+ ModelTest: test_to_hash_should_give_the_right_hash_value
49
+ --------------------------------------------------------
50
+  (0.0ms) rollback transaction
51
+  (0.0ms) begin transaction
52
+ ---------------------------------------------------
53
+ SpymeTest: test_post_to_spyme_should_return_success
54
+ ---------------------------------------------------
55
+  (0.1ms) rollback transaction
56
+  (0.0ms) begin transaction
57
+ -------------------------------------------------
58
+ SpymeTest: test_post_to_spyme_should_store_coords
59
+ -------------------------------------------------
60
+  (0.0ms) rollback transaction
61
+  (0.0ms) begin transaction
62
+ ---------------------------------------------------------------------
63
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
64
+ ---------------------------------------------------------------------
65
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:16:54 -0300
66
+ Processing by Spyme::LocationsController#create as HTML
67
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
68
+  (0.0ms) rollback transaction
69
+  (0.1ms) begin transaction
70
+ ---------------------------------------------------------------------
71
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
72
+ ---------------------------------------------------------------------
73
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:17:25 -0300
74
+ Processing by Spyme::LocationsController#create as HTML
75
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
76
+  (0.1ms) rollback transaction
77
+  (0.0ms) begin transaction
78
+ ---------------------------------------------------
79
+ SpymeTest: test_post_to_spyme_should_return_success
80
+ ---------------------------------------------------
81
+  (0.0ms) rollback transaction
82
+  (0.0ms) begin transaction
83
+ -------------------------------------------------
84
+ SpymeTest: test_post_to_spyme_should_store_coords
85
+ -------------------------------------------------
86
+  (0.0ms) rollback transaction
87
+  (0.0ms) begin transaction
88
+ -----------------------------------------------------------------------
89
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
90
+ -----------------------------------------------------------------------
91
+  (0.0ms) rollback transaction
92
+  (0.0ms) begin transaction
93
+ ----------------------------------------------------------------------------
94
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
95
+ ----------------------------------------------------------------------------
96
+  (0.0ms) rollback transaction
97
+  (0.0ms) begin transaction
98
+ --------------------------------------------------------------
99
+ ModelTest: test_location_should_be_valid_at_negative_boundries
100
+ --------------------------------------------------------------
101
+  (0.0ms) rollback transaction
102
+  (0.0ms) begin transaction
103
+ ------------------------------------------------------
104
+ ModelTest: test_coords_should_give_the_values_in_array
105
+ ------------------------------------------------------
106
+  (0.0ms) rollback transaction
107
+  (0.0ms) begin transaction
108
+ -------------------------------------------------------------
109
+ ModelTest: test_as_a_string_should_give_the_right_query_value
110
+ -------------------------------------------------------------
111
+  (0.0ms) rollback transaction
112
+  (0.0ms) begin transaction
113
+ -------------------------------------------------------------
114
+ ModelTest: test_location_should_be_invalid_when_empty_session
115
+ -------------------------------------------------------------
116
+  (0.0ms) rollback transaction
117
+  (0.0ms) begin transaction
118
+ ----------------------------------------------------------------
119
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
120
+ ----------------------------------------------------------------
121
+  (0.0ms) rollback transaction
122
+  (0.0ms) begin transaction
123
+ --------------------------------------------------------------
124
+ ModelTest: test_location_should_be_valid_at_positive_boundries
125
+ --------------------------------------------------------------
126
+  (0.0ms) rollback transaction
127
+  (0.0ms) begin transaction
128
+ -----------------------------------------------------------------------------
129
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
130
+ -----------------------------------------------------------------------------
131
+  (0.0ms) rollback transaction
132
+  (0.0ms) begin transaction
133
+ --------------------------------------------------------
134
+ ModelTest: test_to_hash_should_give_the_right_hash_value
135
+ --------------------------------------------------------
136
+  (0.0ms) rollback transaction
137
+  (0.0ms) SELECT sqlite_version(*)
138
+  (12.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
139
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
140
+  (11.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
141
+  (12.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
142
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
143
+  (0.0ms) begin transaction
144
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:18:19.999632"], ["updated_at", "2018-09-17 19:18:19.999632"]]
145
+  (9.5ms) commit transaction
146
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
147
+  (0.1ms) begin transaction
148
+  (0.0ms) commit transaction
149
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
150
+  (0.0ms) begin transaction
151
+ ---------------------------------------------------
152
+ SpymeTest: test_post_to_spyme_should_return_success
153
+ ---------------------------------------------------
154
+  (0.1ms) rollback transaction
155
+  (0.0ms) begin transaction
156
+ -------------------------------------------------
157
+ SpymeTest: test_post_to_spyme_should_store_coords
158
+ -------------------------------------------------
159
+  (0.0ms) rollback transaction
160
+  (0.0ms) begin transaction
161
+ ---------------------------------------------------------------------
162
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
163
+ ---------------------------------------------------------------------
164
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:18:20 -0300
165
+ Processing by Spyme::LocationsController#create as HTML
166
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
167
+  (0.1ms) rollback transaction
168
+  (0.0ms) begin transaction
169
+ -----------------------------------------------------------------------
170
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
171
+ -----------------------------------------------------------------------
172
+  (0.1ms) rollback transaction
173
+  (0.0ms) begin transaction
174
+ -------------------------------------------------------------
175
+ ModelTest: test_location_should_be_invalid_when_empty_session
176
+ -------------------------------------------------------------
177
+  (0.0ms) rollback transaction
178
+  (0.0ms) begin transaction
179
+ ------------------------------------------------------
180
+ ModelTest: test_coords_should_give_the_values_in_array
181
+ ------------------------------------------------------
182
+  (0.0ms) rollback transaction
183
+  (0.0ms) begin transaction
184
+ ----------------------------------------------------------------
185
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
186
+ ----------------------------------------------------------------
187
+  (0.0ms) rollback transaction
188
+  (0.0ms) begin transaction
189
+ --------------------------------------------------------------
190
+ ModelTest: test_location_should_be_valid_at_negative_boundries
191
+ --------------------------------------------------------------
192
+  (0.0ms) rollback transaction
193
+  (0.0ms) begin transaction
194
+ --------------------------------------------------------------
195
+ ModelTest: test_location_should_be_valid_at_positive_boundries
196
+ --------------------------------------------------------------
197
+  (0.0ms) rollback transaction
198
+  (0.0ms) begin transaction
199
+ -----------------------------------------------------------------------------
200
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
201
+ -----------------------------------------------------------------------------
202
+  (0.0ms) rollback transaction
203
+  (0.0ms) begin transaction
204
+ ----------------------------------------------------------------------------
205
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
206
+ ----------------------------------------------------------------------------
207
+  (0.0ms) rollback transaction
208
+  (0.0ms) begin transaction
209
+ -------------------------------------------------------------
210
+ ModelTest: test_as_a_string_should_give_the_right_query_value
211
+ -------------------------------------------------------------
212
+  (0.0ms) rollback transaction
213
+  (0.0ms) begin transaction
214
+ --------------------------------------------------------
215
+ ModelTest: test_to_hash_should_give_the_right_hash_value
216
+ --------------------------------------------------------
217
+  (0.0ms) rollback transaction
218
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
219
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
220
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
221
+  (0.0ms) SELECT sqlite_version(*)
222
+  (12.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
223
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
224
+  (16.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
225
+  (11.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
226
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
227
+  (0.0ms) begin transaction
228
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:20:45.228195"], ["updated_at", "2018-09-17 19:20:45.228195"]]
229
+  (11.1ms) commit transaction
230
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
231
+  (0.0ms) begin transaction
232
+  (0.0ms) commit transaction
233
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
234
+  (0.0ms) begin transaction
235
+ -------------------------------------------------
236
+ SpymeTest: test_post_to_spyme_should_store_coords
237
+ -------------------------------------------------
238
+  (0.1ms) rollback transaction
239
+  (0.0ms) begin transaction
240
+ ---------------------------------------------------------------------
241
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
242
+ ---------------------------------------------------------------------
243
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:20:45 -0300
244
+ Processing by Spyme::LocationsController#create as HTML
245
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
246
+  (0.1ms) rollback transaction
247
+  (0.0ms) begin transaction
248
+ ---------------------------------------------------
249
+ SpymeTest: test_post_to_spyme_should_return_success
250
+ ---------------------------------------------------
251
+  (0.0ms) rollback transaction
252
+  (0.0ms) begin transaction
253
+ ----------------------------------------------------------------------------
254
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
255
+ ----------------------------------------------------------------------------
256
+  (0.0ms) rollback transaction
257
+  (0.0ms) begin transaction
258
+ --------------------------------------------------------------
259
+ ModelTest: test_location_should_be_valid_at_negative_boundries
260
+ --------------------------------------------------------------
261
+  (0.0ms) rollback transaction
262
+  (0.0ms) begin transaction
263
+ -------------------------------------------------------------
264
+ ModelTest: test_location_should_be_invalid_when_empty_session
265
+ -------------------------------------------------------------
266
+  (0.0ms) rollback transaction
267
+  (0.0ms) begin transaction
268
+ -------------------------------------------------------------
269
+ ModelTest: test_as_a_string_should_give_the_right_query_value
270
+ -------------------------------------------------------------
271
+  (0.0ms) rollback transaction
272
+  (0.0ms) begin transaction
273
+ -----------------------------------------------------------------------
274
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
275
+ -----------------------------------------------------------------------
276
+  (0.0ms) rollback transaction
277
+  (0.0ms) begin transaction
278
+ -----------------------------------------------------------------------------
279
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
280
+ -----------------------------------------------------------------------------
281
+  (0.0ms) rollback transaction
282
+  (0.0ms) begin transaction
283
+ --------------------------------------------------------------
284
+ ModelTest: test_location_should_be_valid_at_positive_boundries
285
+ --------------------------------------------------------------
286
+  (0.0ms) rollback transaction
287
+  (0.0ms) begin transaction
288
+ --------------------------------------------------------
289
+ ModelTest: test_to_hash_should_give_the_right_hash_value
290
+ --------------------------------------------------------
291
+  (0.0ms) rollback transaction
292
+  (0.0ms) begin transaction
293
+ ----------------------------------------------------------------
294
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
295
+ ----------------------------------------------------------------
296
+  (0.0ms) rollback transaction
297
+  (0.0ms) begin transaction
298
+ ------------------------------------------------------
299
+ ModelTest: test_coords_should_give_the_values_in_array
300
+ ------------------------------------------------------
301
+  (0.0ms) rollback transaction
302
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
303
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
304
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
305
+  (0.0ms) SELECT sqlite_version(*)
306
+  (11.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
307
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
308
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
309
+  (11.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
310
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
311
+  (0.0ms) begin transaction
312
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:23:11.572179"], ["updated_at", "2018-09-17 19:23:11.572179"]]
313
+  (9.8ms) commit transaction
314
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
315
+  (0.1ms) begin transaction
316
+  (0.1ms) commit transaction
317
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
318
+  (0.1ms) begin transaction
319
+ ---------------------------------------------------------------------
320
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
321
+ ---------------------------------------------------------------------
322
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:23:11 -0300
323
+ Processing by Spyme::LocationsController#create as HTML
324
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
325
+  (0.1ms) rollback transaction
326
+  (0.0ms) begin transaction
327
+ ---------------------------------------------------
328
+ SpymeTest: test_post_to_spyme_should_return_success
329
+ ---------------------------------------------------
330
+  (0.0ms) rollback transaction
331
+  (0.0ms) begin transaction
332
+ -------------------------------------------------
333
+ SpymeTest: test_post_to_spyme_should_store_coords
334
+ -------------------------------------------------
335
+  (0.0ms) rollback transaction
336
+  (0.0ms) begin transaction
337
+ ----------------------------------------------------------------------------
338
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
339
+ ----------------------------------------------------------------------------
340
+  (0.0ms) rollback transaction
341
+  (0.0ms) begin transaction
342
+ --------------------------------------------------------
343
+ ModelTest: test_to_hash_should_give_the_right_hash_value
344
+ --------------------------------------------------------
345
+  (0.0ms) rollback transaction
346
+  (0.0ms) begin transaction
347
+ --------------------------------------------------------------
348
+ ModelTest: test_location_should_be_valid_at_positive_boundries
349
+ --------------------------------------------------------------
350
+  (0.0ms) rollback transaction
351
+  (0.0ms) begin transaction
352
+ -------------------------------------------------------------
353
+ ModelTest: test_as_a_string_should_give_the_right_query_value
354
+ -------------------------------------------------------------
355
+  (0.0ms) rollback transaction
356
+  (0.0ms) begin transaction
357
+ -------------------------------------------------------------
358
+ ModelTest: test_location_should_be_invalid_when_empty_session
359
+ -------------------------------------------------------------
360
+  (0.0ms) rollback transaction
361
+  (0.0ms) begin transaction
362
+ --------------------------------------------------------------
363
+ ModelTest: test_location_should_be_valid_at_negative_boundries
364
+ --------------------------------------------------------------
365
+  (0.0ms) rollback transaction
366
+  (0.0ms) begin transaction
367
+ -----------------------------------------------------------------------
368
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
369
+ -----------------------------------------------------------------------
370
+  (0.0ms) rollback transaction
371
+  (0.0ms) begin transaction
372
+ -----------------------------------------------------------------------------
373
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
374
+ -----------------------------------------------------------------------------
375
+  (0.0ms) rollback transaction
376
+  (0.0ms) begin transaction
377
+ ------------------------------------------------------
378
+ ModelTest: test_coords_should_give_the_values_in_array
379
+ ------------------------------------------------------
380
+  (0.0ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+ ----------------------------------------------------------------
383
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
384
+ ----------------------------------------------------------------
385
+  (0.0ms) rollback transaction
386
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
387
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
388
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
389
+  (0.0ms) SELECT sqlite_version(*)
390
+  (11.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
391
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
392
+  (14.7ms) INSERT INTO "schema_migrations" (version) VALUES (0)
393
+  (11.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
394
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
395
+  (0.1ms) begin transaction
396
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:24:35.756223"], ["updated_at", "2018-09-17 19:24:35.756223"]]
397
+  (10.5ms) commit transaction
398
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
399
+  (0.1ms) begin transaction
400
+  (0.1ms) commit transaction
401
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
402
+  (0.0ms) begin transaction
403
+ ----------------------------------------------------------------
404
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
405
+ ----------------------------------------------------------------
406
+  (0.0ms) rollback transaction
407
+  (0.1ms) begin transaction
408
+ --------------------------------------------------------
409
+ ModelTest: test_to_hash_should_give_the_right_hash_value
410
+ --------------------------------------------------------
411
+  (0.0ms) rollback transaction
412
+  (0.0ms) begin transaction
413
+ --------------------------------------------------------------
414
+ ModelTest: test_location_should_be_valid_at_negative_boundries
415
+ --------------------------------------------------------------
416
+  (0.0ms) rollback transaction
417
+  (0.0ms) begin transaction
418
+ --------------------------------------------------------------
419
+ ModelTest: test_location_should_be_valid_at_positive_boundries
420
+ --------------------------------------------------------------
421
+  (0.0ms) rollback transaction
422
+  (0.0ms) begin transaction
423
+ -------------------------------------------------------------
424
+ ModelTest: test_as_a_string_should_give_the_right_query_value
425
+ -------------------------------------------------------------
426
+  (0.0ms) rollback transaction
427
+  (0.0ms) begin transaction
428
+ ------------------------------------------------------
429
+ ModelTest: test_coords_should_give_the_values_in_array
430
+ ------------------------------------------------------
431
+  (0.0ms) rollback transaction
432
+  (0.0ms) begin transaction
433
+ -----------------------------------------------------------------------
434
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
435
+ -----------------------------------------------------------------------
436
+  (0.0ms) rollback transaction
437
+  (0.0ms) begin transaction
438
+ -----------------------------------------------------------------------------
439
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
440
+ -----------------------------------------------------------------------------
441
+  (0.0ms) rollback transaction
442
+  (0.0ms) begin transaction
443
+ ----------------------------------------------------------------------------
444
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
445
+ ----------------------------------------------------------------------------
446
+  (0.1ms) rollback transaction
447
+  (0.0ms) begin transaction
448
+ -------------------------------------------------------------
449
+ ModelTest: test_location_should_be_invalid_when_empty_session
450
+ -------------------------------------------------------------
451
+  (0.0ms) rollback transaction
452
+  (0.0ms) begin transaction
453
+ ---------------------------------------------------------------------
454
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
455
+ ---------------------------------------------------------------------
456
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:24:35 -0300
457
+ Processing by Spyme::LocationsController#create as HTML
458
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
459
+  (0.1ms) rollback transaction
460
+  (0.0ms) begin transaction
461
+ -------------------------------------------------
462
+ SpymeTest: test_post_to_spyme_should_store_coords
463
+ -------------------------------------------------
464
+  (0.0ms) rollback transaction
465
+  (0.0ms) begin transaction
466
+ ---------------------------------------------------
467
+ SpymeTest: test_post_to_spyme_should_return_success
468
+ ---------------------------------------------------
469
+  (0.0ms) rollback transaction
470
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
471
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
472
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
473
+  (0.0ms) SELECT sqlite_version(*)
474
+  (11.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
475
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
476
+  (15.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
477
+  (12.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
478
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
479
+  (0.0ms) begin transaction
480
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:24:48.051889"], ["updated_at", "2018-09-17 19:24:48.051889"]]
481
+  (10.3ms) commit transaction
482
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
483
+  (0.1ms) begin transaction
484
+  (0.0ms) commit transaction
485
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
486
+  (0.0ms) begin transaction
487
+ --------------------------------------------------------------
488
+ ModelTest: test_location_should_be_valid_at_positive_boundries
489
+ --------------------------------------------------------------
490
+  (0.0ms) rollback transaction
491
+  (0.0ms) begin transaction
492
+ -------------------------------------------------------------
493
+ ModelTest: test_as_a_string_should_give_the_right_query_value
494
+ -------------------------------------------------------------
495
+  (0.0ms) rollback transaction
496
+  (0.0ms) begin transaction
497
+ --------------------------------------------------------------
498
+ ModelTest: test_location_should_be_valid_at_negative_boundries
499
+ --------------------------------------------------------------
500
+  (0.0ms) rollback transaction
501
+  (0.0ms) begin transaction
502
+ ------------------------------------------------------
503
+ ModelTest: test_coords_should_give_the_values_in_array
504
+ ------------------------------------------------------
505
+  (0.0ms) rollback transaction
506
+  (0.0ms) begin transaction
507
+ ----------------------------------------------------------------
508
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
509
+ ----------------------------------------------------------------
510
+  (0.1ms) rollback transaction
511
+  (0.0ms) begin transaction
512
+ -----------------------------------------------------------------------------
513
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
514
+ -----------------------------------------------------------------------------
515
+  (0.0ms) rollback transaction
516
+  (0.0ms) begin transaction
517
+ ----------------------------------------------------------------------------
518
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
519
+ ----------------------------------------------------------------------------
520
+  (0.0ms) rollback transaction
521
+  (0.0ms) begin transaction
522
+ -----------------------------------------------------------------------
523
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
524
+ -----------------------------------------------------------------------
525
+  (0.0ms) rollback transaction
526
+  (0.0ms) begin transaction
527
+ -------------------------------------------------------------
528
+ ModelTest: test_location_should_be_invalid_when_empty_session
529
+ -------------------------------------------------------------
530
+  (0.0ms) rollback transaction
531
+  (0.0ms) begin transaction
532
+ --------------------------------------------------------
533
+ ModelTest: test_to_hash_should_give_the_right_hash_value
534
+ --------------------------------------------------------
535
+  (0.0ms) rollback transaction
536
+  (0.0ms) begin transaction
537
+ ---------------------------------------------------------------------
538
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
539
+ ---------------------------------------------------------------------
540
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:24:48 -0300
541
+ Processing by Spyme::LocationsController#create as HTML
542
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
543
+  (0.1ms) rollback transaction
544
+  (0.0ms) begin transaction
545
+ ---------------------------------------------------
546
+ SpymeTest: test_post_to_spyme_should_return_success
547
+ ---------------------------------------------------
548
+  (0.0ms) rollback transaction
549
+  (0.1ms) begin transaction
550
+ -------------------------------------------------
551
+ SpymeTest: test_post_to_spyme_should_store_coords
552
+ -------------------------------------------------
553
+  (0.0ms) rollback transaction
554
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
555
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
556
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
557
+  (0.0ms) SELECT sqlite_version(*)
558
+  (11.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
559
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
560
+  (15.9ms) INSERT INTO "schema_migrations" (version) VALUES (0)
561
+  (10.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
562
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
563
+  (0.0ms) begin transaction
564
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:25:42.683839"], ["updated_at", "2018-09-17 19:25:42.683839"]]
565
+  (11.1ms) commit transaction
566
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
567
+  (0.2ms) begin transaction
568
+  (0.1ms) commit transaction
569
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
570
+  (0.1ms) begin transaction
571
+ ---------------------------------------------------------------------
572
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
573
+ ---------------------------------------------------------------------
574
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:25:42 -0300
575
+ Processing by Spyme::LocationsController#create as HTML
576
+ Completed 400 Bad Request in 6ms (ActiveRecord: 0.0ms)
577
+  (0.1ms) rollback transaction
578
+  (0.0ms) begin transaction
579
+ ---------------------------------------------------
580
+ SpymeTest: test_post_to_spyme_should_return_success
581
+ ---------------------------------------------------
582
+  (0.0ms) rollback transaction
583
+  (0.5ms) begin transaction
584
+ -------------------------------------------------
585
+ SpymeTest: test_post_to_spyme_should_store_coords
586
+ -------------------------------------------------
587
+  (0.0ms) rollback transaction
588
+  (0.0ms) begin transaction
589
+ --------------------------------------------------------------
590
+ ModelTest: test_location_should_be_valid_at_negative_boundries
591
+ --------------------------------------------------------------
592
+  (0.0ms) rollback transaction
593
+  (0.0ms) begin transaction
594
+ -----------------------------------------------------------------------
595
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
596
+ -----------------------------------------------------------------------
597
+  (0.0ms) rollback transaction
598
+  (0.0ms) begin transaction
599
+ --------------------------------------------------------
600
+ ModelTest: test_to_hash_should_give_the_right_hash_value
601
+ --------------------------------------------------------
602
+  (0.0ms) rollback transaction
603
+  (0.0ms) begin transaction
604
+ ----------------------------------------------------------------------------
605
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
606
+ ----------------------------------------------------------------------------
607
+  (0.0ms) rollback transaction
608
+  (0.0ms) begin transaction
609
+ -------------------------------------------------------------
610
+ ModelTest: test_as_a_string_should_give_the_right_query_value
611
+ -------------------------------------------------------------
612
+  (0.0ms) rollback transaction
613
+  (0.0ms) begin transaction
614
+ ------------------------------------------------------
615
+ ModelTest: test_coords_should_give_the_values_in_array
616
+ ------------------------------------------------------
617
+  (0.1ms) rollback transaction
618
+  (0.0ms) begin transaction
619
+ ----------------------------------------------------------------
620
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
621
+ ----------------------------------------------------------------
622
+  (0.0ms) rollback transaction
623
+  (0.0ms) begin transaction
624
+ -------------------------------------------------------------
625
+ ModelTest: test_location_should_be_invalid_when_empty_session
626
+ -------------------------------------------------------------
627
+  (0.0ms) rollback transaction
628
+  (0.0ms) begin transaction
629
+ --------------------------------------------------------------
630
+ ModelTest: test_location_should_be_valid_at_positive_boundries
631
+ --------------------------------------------------------------
632
+  (0.0ms) rollback transaction
633
+  (0.0ms) begin transaction
634
+ -----------------------------------------------------------------------------
635
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
636
+ -----------------------------------------------------------------------------
637
+  (0.0ms) rollback transaction
638
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
639
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
640
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
641
+  (0.0ms) SELECT sqlite_version(*)
642
+  (12.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
643
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
644
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
645
+  (11.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
646
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
647
+  (0.0ms) begin transaction
648
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:25:53.481586"], ["updated_at", "2018-09-17 19:25:53.481586"]]
649
+  (9.8ms) commit transaction
650
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
651
+  (0.0ms) begin transaction
652
+  (0.0ms) commit transaction
653
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
654
+  (0.0ms) begin transaction
655
+ ------------------------------------------------------
656
+ ModelTest: test_coords_should_give_the_values_in_array
657
+ ------------------------------------------------------
658
+  (0.0ms) rollback transaction
659
+  (0.0ms) begin transaction
660
+ --------------------------------------------------------
661
+ ModelTest: test_to_hash_should_give_the_right_hash_value
662
+ --------------------------------------------------------
663
+  (0.0ms) rollback transaction
664
+  (0.0ms) begin transaction
665
+ -------------------------------------------------------------
666
+ ModelTest: test_as_a_string_should_give_the_right_query_value
667
+ -------------------------------------------------------------
668
+  (0.0ms) rollback transaction
669
+  (0.0ms) begin transaction
670
+ ----------------------------------------------------------------------------
671
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
672
+ ----------------------------------------------------------------------------
673
+  (0.0ms) rollback transaction
674
+  (0.0ms) begin transaction
675
+ -------------------------------------------------------------
676
+ ModelTest: test_location_should_be_invalid_when_empty_session
677
+ -------------------------------------------------------------
678
+  (0.1ms) rollback transaction
679
+  (0.0ms) begin transaction
680
+ -----------------------------------------------------------------------------
681
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
682
+ -----------------------------------------------------------------------------
683
+  (0.0ms) rollback transaction
684
+  (0.0ms) begin transaction
685
+ -----------------------------------------------------------------------
686
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
687
+ -----------------------------------------------------------------------
688
+  (0.0ms) rollback transaction
689
+  (0.0ms) begin transaction
690
+ ----------------------------------------------------------------
691
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
692
+ ----------------------------------------------------------------
693
+  (0.0ms) rollback transaction
694
+  (0.0ms) begin transaction
695
+ --------------------------------------------------------------
696
+ ModelTest: test_location_should_be_valid_at_positive_boundries
697
+ --------------------------------------------------------------
698
+  (0.0ms) rollback transaction
699
+  (0.0ms) begin transaction
700
+ --------------------------------------------------------------
701
+ ModelTest: test_location_should_be_valid_at_negative_boundries
702
+ --------------------------------------------------------------
703
+  (0.0ms) rollback transaction
704
+  (0.0ms) begin transaction
705
+ -------------------------------------------------
706
+ SpymeTest: test_post_to_spyme_should_store_coords
707
+ -------------------------------------------------
708
+  (0.1ms) rollback transaction
709
+  (0.0ms) begin transaction
710
+ ---------------------------------------------------------------------
711
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
712
+ ---------------------------------------------------------------------
713
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:25:53 -0300
714
+ Processing by Spyme::LocationsController#create as HTML
715
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
716
+  (0.0ms) rollback transaction
717
+  (0.1ms) begin transaction
718
+ ---------------------------------------------------
719
+ SpymeTest: test_post_to_spyme_should_return_success
720
+ ---------------------------------------------------
721
+  (0.0ms) rollback transaction
722
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
723
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
724
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
725
+  (0.0ms) SELECT sqlite_version(*)
726
+  (11.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
727
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
728
+  (16.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
729
+  (11.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
730
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
731
+  (0.1ms) begin transaction
732
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:26:02.599338"], ["updated_at", "2018-09-17 19:26:02.599338"]]
733
+  (10.2ms) commit transaction
734
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
735
+  (0.1ms) begin transaction
736
+  (0.1ms) commit transaction
737
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
738
+  (0.0ms) begin transaction
739
+ -------------------------------------------------------------
740
+ ModelTest: test_as_a_string_should_give_the_right_query_value
741
+ -------------------------------------------------------------
742
+  (0.0ms) rollback transaction
743
+  (0.0ms) begin transaction
744
+ ------------------------------------------------------
745
+ ModelTest: test_coords_should_give_the_values_in_array
746
+ ------------------------------------------------------
747
+  (0.0ms) rollback transaction
748
+  (0.0ms) begin transaction
749
+ --------------------------------------------------------------
750
+ ModelTest: test_location_should_be_valid_at_positive_boundries
751
+ --------------------------------------------------------------
752
+  (0.0ms) rollback transaction
753
+  (0.0ms) begin transaction
754
+ ----------------------------------------------------------------
755
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
756
+ ----------------------------------------------------------------
757
+  (0.0ms) rollback transaction
758
+  (0.0ms) begin transaction
759
+ --------------------------------------------------------
760
+ ModelTest: test_to_hash_should_give_the_right_hash_value
761
+ --------------------------------------------------------
762
+  (0.0ms) rollback transaction
763
+  (0.0ms) begin transaction
764
+ -----------------------------------------------------------------------------
765
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
766
+ -----------------------------------------------------------------------------
767
+  (0.0ms) rollback transaction
768
+  (0.0ms) begin transaction
769
+ ----------------------------------------------------------------------------
770
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
771
+ ----------------------------------------------------------------------------
772
+  (0.0ms) rollback transaction
773
+  (0.0ms) begin transaction
774
+ --------------------------------------------------------------
775
+ ModelTest: test_location_should_be_valid_at_negative_boundries
776
+ --------------------------------------------------------------
777
+  (0.0ms) rollback transaction
778
+  (0.0ms) begin transaction
779
+ -----------------------------------------------------------------------
780
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
781
+ -----------------------------------------------------------------------
782
+  (0.0ms) rollback transaction
783
+  (0.0ms) begin transaction
784
+ -------------------------------------------------------------
785
+ ModelTest: test_location_should_be_invalid_when_empty_session
786
+ -------------------------------------------------------------
787
+  (0.0ms) rollback transaction
788
+  (0.0ms) begin transaction
789
+ ---------------------------------------------------
790
+ SpymeTest: test_post_to_spyme_should_return_success
791
+ ---------------------------------------------------
792
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:26:11 -0300
793
+ Processing by Spyme::LocationsController#create as HTML
794
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
795
+  (0.1ms) rollback transaction
796
+  (0.0ms) begin transaction
797
+ ---------------------------------------------------------------------
798
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
799
+ ---------------------------------------------------------------------
800
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:26:31 -0300
801
+ Processing by Spyme::LocationsController#create as HTML
802
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
803
+  (0.0ms) rollback transaction
804
+  (0.0ms) begin transaction
805
+ -------------------------------------------------
806
+ SpymeTest: test_post_to_spyme_should_store_coords
807
+ -------------------------------------------------
808
+  (0.0ms) rollback transaction
809
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
810
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
811
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
812
+  (0.1ms) SELECT sqlite_version(*)
813
+  (11.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
814
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
815
+  (16.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
816
+  (11.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
817
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
818
+  (0.1ms) begin transaction
819
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:26:42.362148"], ["updated_at", "2018-09-17 19:26:42.362148"]]
820
+  (10.0ms) commit transaction
821
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
822
+  (0.1ms) begin transaction
823
+  (0.0ms) commit transaction
824
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
825
+  (0.1ms) begin transaction
826
+ -----------------------------------------------------------------------------
827
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
828
+ -----------------------------------------------------------------------------
829
+  (0.0ms) rollback transaction
830
+  (0.0ms) begin transaction
831
+ -----------------------------------------------------------------------
832
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
833
+ -----------------------------------------------------------------------
834
+  (0.0ms) rollback transaction
835
+  (0.0ms) begin transaction
836
+ ----------------------------------------------------------------
837
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
838
+ ----------------------------------------------------------------
839
+  (0.0ms) rollback transaction
840
+  (0.0ms) begin transaction
841
+ --------------------------------------------------------------
842
+ ModelTest: test_location_should_be_valid_at_negative_boundries
843
+ --------------------------------------------------------------
844
+  (0.0ms) rollback transaction
845
+  (0.0ms) begin transaction
846
+ --------------------------------------------------------
847
+ ModelTest: test_to_hash_should_give_the_right_hash_value
848
+ --------------------------------------------------------
849
+  (0.0ms) rollback transaction
850
+  (0.0ms) begin transaction
851
+ ------------------------------------------------------
852
+ ModelTest: test_coords_should_give_the_values_in_array
853
+ ------------------------------------------------------
854
+  (0.0ms) rollback transaction
855
+  (0.0ms) begin transaction
856
+ -------------------------------------------------------------
857
+ ModelTest: test_location_should_be_invalid_when_empty_session
858
+ -------------------------------------------------------------
859
+  (0.0ms) rollback transaction
860
+  (0.0ms) begin transaction
861
+ ----------------------------------------------------------------------------
862
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
863
+ ----------------------------------------------------------------------------
864
+  (0.0ms) rollback transaction
865
+  (0.0ms) begin transaction
866
+ --------------------------------------------------------------
867
+ ModelTest: test_location_should_be_valid_at_positive_boundries
868
+ --------------------------------------------------------------
869
+  (0.0ms) rollback transaction
870
+  (0.0ms) begin transaction
871
+ -------------------------------------------------------------
872
+ ModelTest: test_as_a_string_should_give_the_right_query_value
873
+ -------------------------------------------------------------
874
+  (0.0ms) rollback transaction
875
+  (0.0ms) begin transaction
876
+ ---------------------------------------------------------------------
877
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
878
+ ---------------------------------------------------------------------
879
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:26:42 -0300
880
+ Processing by Spyme::LocationsController#create as HTML
881
+ Completed 400 Bad Request in 18945ms (ActiveRecord: 0.0ms)
882
+  (0.1ms) rollback transaction
883
+  (0.0ms) begin transaction
884
+ -------------------------------------------------
885
+ SpymeTest: test_post_to_spyme_should_store_coords
886
+ -------------------------------------------------
887
+  (0.1ms) rollback transaction
888
+  (0.0ms) begin transaction
889
+ ---------------------------------------------------
890
+ SpymeTest: test_post_to_spyme_should_return_success
891
+ ---------------------------------------------------
892
+  (0.1ms) rollback transaction
893
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
894
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
895
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
896
+  (0.0ms) SELECT sqlite_version(*)
897
+  (11.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
898
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
899
+  (16.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
900
+  (10.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
901
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
902
+  (0.1ms) begin transaction
903
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:27:21.091999"], ["updated_at", "2018-09-17 19:27:21.091999"]]
904
+  (10.4ms) commit transaction
905
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
906
+  (0.1ms) begin transaction
907
+  (0.1ms) commit transaction
908
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
909
+  (0.0ms) begin transaction
910
+ ---------------------------------------------------
911
+ SpymeTest: test_post_to_spyme_should_return_success
912
+ ---------------------------------------------------
913
+  (0.1ms) rollback transaction
914
+  (0.0ms) begin transaction
915
+ -------------------------------------------------
916
+ SpymeTest: test_post_to_spyme_should_store_coords
917
+ -------------------------------------------------
918
+  (0.0ms) rollback transaction
919
+  (0.0ms) begin transaction
920
+ --------------------------------------------------------------
921
+ ModelTest: test_location_should_be_valid_at_negative_boundries
922
+ --------------------------------------------------------------
923
+  (0.0ms) rollback transaction
924
+  (0.5ms) begin transaction
925
+ -------------------------------------------------------------
926
+ ModelTest: test_as_a_string_should_give_the_right_query_value
927
+ -------------------------------------------------------------
928
+  (0.0ms) rollback transaction
929
+  (0.0ms) begin transaction
930
+ ----------------------------------------------------------------
931
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
932
+ ----------------------------------------------------------------
933
+  (0.0ms) rollback transaction
934
+  (0.0ms) begin transaction
935
+ -------------------------------------------------------------
936
+ ModelTest: test_location_should_be_invalid_when_empty_session
937
+ -------------------------------------------------------------
938
+  (0.1ms) rollback transaction
939
+  (0.1ms) begin transaction
940
+ -----------------------------------------------------------------------
941
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
942
+ -----------------------------------------------------------------------
943
+  (0.0ms) rollback transaction
944
+  (0.0ms) begin transaction
945
+ ----------------------------------------------------------------------------
946
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
947
+ ----------------------------------------------------------------------------
948
+  (0.0ms) rollback transaction
949
+  (0.0ms) begin transaction
950
+ --------------------------------------------------------
951
+ ModelTest: test_to_hash_should_give_the_right_hash_value
952
+ --------------------------------------------------------
953
+  (0.0ms) rollback transaction
954
+  (0.0ms) begin transaction
955
+ --------------------------------------------------------------
956
+ ModelTest: test_location_should_be_valid_at_positive_boundries
957
+ --------------------------------------------------------------
958
+  (0.0ms) rollback transaction
959
+  (0.0ms) begin transaction
960
+ ------------------------------------------------------
961
+ ModelTest: test_coords_should_give_the_values_in_array
962
+ ------------------------------------------------------
963
+  (0.0ms) rollback transaction
964
+  (0.0ms) begin transaction
965
+ -----------------------------------------------------------------------------
966
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
967
+ -----------------------------------------------------------------------------
968
+  (0.0ms) rollback transaction
969
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
970
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
971
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
972
+  (0.0ms) SELECT sqlite_version(*)
973
+  (11.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
974
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
975
+  (16.3ms) INSERT INTO "schema_migrations" (version) VALUES (0)
976
+  (11.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
977
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
978
+  (0.1ms) begin transaction
979
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:27:57.894995"], ["updated_at", "2018-09-17 19:27:57.894995"]]
980
+  (10.2ms) commit transaction
981
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
982
+  (0.1ms) begin transaction
983
+  (0.1ms) commit transaction
984
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
985
+  (0.0ms) begin transaction
986
+ ------------------------------------------------------
987
+ ModelTest: test_coords_should_give_the_values_in_array
988
+ ------------------------------------------------------
989
+  (0.0ms) rollback transaction
990
+  (0.0ms) begin transaction
991
+ --------------------------------------------------------------
992
+ ModelTest: test_location_should_be_valid_at_negative_boundries
993
+ --------------------------------------------------------------
994
+  (0.0ms) rollback transaction
995
+  (0.0ms) begin transaction
996
+ ----------------------------------------------------------------
997
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
998
+ ----------------------------------------------------------------
999
+  (0.1ms) rollback transaction
1000
+  (0.0ms) begin transaction
1001
+ ----------------------------------------------------------------------------
1002
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
1003
+ ----------------------------------------------------------------------------
1004
+  (0.0ms) rollback transaction
1005
+  (0.0ms) begin transaction
1006
+ --------------------------------------------------------------
1007
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1008
+ --------------------------------------------------------------
1009
+  (0.0ms) rollback transaction
1010
+  (0.0ms) begin transaction
1011
+ -------------------------------------------------------------
1012
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1013
+ -------------------------------------------------------------
1014
+  (0.0ms) rollback transaction
1015
+  (0.0ms) begin transaction
1016
+ -----------------------------------------------------------------------------
1017
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1018
+ -----------------------------------------------------------------------------
1019
+  (0.0ms) rollback transaction
1020
+  (0.0ms) begin transaction
1021
+ --------------------------------------------------------
1022
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1023
+ --------------------------------------------------------
1024
+  (0.0ms) rollback transaction
1025
+  (0.0ms) begin transaction
1026
+ -------------------------------------------------------------
1027
+ ModelTest: test_location_should_be_invalid_when_empty_session
1028
+ -------------------------------------------------------------
1029
+  (0.1ms) rollback transaction
1030
+  (0.0ms) begin transaction
1031
+ -----------------------------------------------------------------------
1032
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1033
+ -----------------------------------------------------------------------
1034
+  (0.0ms) rollback transaction
1035
+  (0.0ms) begin transaction
1036
+ ---------------------------------------------------------------------
1037
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1038
+ ---------------------------------------------------------------------
1039
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:27:58 -0300
1040
+ Processing by Spyme::LocationsController#create as HTML
1041
+ Completed 400 Bad Request in 2824ms (ActiveRecord: 0.0ms)
1042
+  (0.1ms) rollback transaction
1043
+  (0.0ms) begin transaction
1044
+ ---------------------------------------------------
1045
+ SpymeTest: test_post_to_spyme_should_return_success
1046
+ ---------------------------------------------------
1047
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:00 -0300
1048
+ Processing by Spyme::LocationsController#create as HTML
1049
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1050
+ Completed 500 Internal Server Error in 1149ms (ActiveRecord: 0.0ms)
1051
+  (0.1ms) rollback transaction
1052
+  (0.0ms) begin transaction
1053
+ -------------------------------------------------
1054
+ SpymeTest: test_post_to_spyme_should_store_coords
1055
+ -------------------------------------------------
1056
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:02 -0300
1057
+ Processing by Spyme::LocationsController#create as HTML
1058
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1059
+ Completed 500 Internal Server Error in 1126ms (ActiveRecord: 0.0ms)
1060
+  (0.1ms) rollback transaction
1061
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1062
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1063
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1064
+  (0.0ms) SELECT sqlite_version(*)
1065
+  (11.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1066
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1067
+  (15.9ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1068
+  (12.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1069
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1070
+  (0.0ms) begin transaction
1071
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:28:36.178038"], ["updated_at", "2018-09-17 19:28:36.178038"]]
1072
+  (10.1ms) commit transaction
1073
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1074
+  (0.0ms) begin transaction
1075
+  (0.0ms) commit transaction
1076
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1077
+  (0.0ms) begin transaction
1078
+ ---------------------------------------------------
1079
+ SpymeTest: test_post_to_spyme_should_return_success
1080
+ ---------------------------------------------------
1081
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:36 -0300
1082
+ Processing by Spyme::LocationsController#create as HTML
1083
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1084
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1085
+  (0.1ms) rollback transaction
1086
+  (0.0ms) begin transaction
1087
+ ---------------------------------------------------------------------
1088
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1089
+ ---------------------------------------------------------------------
1090
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:36 -0300
1091
+ Processing by Spyme::LocationsController#create as HTML
1092
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
1093
+  (0.0ms) rollback transaction
1094
+  (0.0ms) begin transaction
1095
+ -------------------------------------------------
1096
+ SpymeTest: test_post_to_spyme_should_store_coords
1097
+ -------------------------------------------------
1098
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:36 -0300
1099
+ Processing by Spyme::LocationsController#create as HTML
1100
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1101
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1102
+  (0.0ms) rollback transaction
1103
+  (0.0ms) begin transaction
1104
+ -----------------------------------------------------------------------
1105
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1106
+ -----------------------------------------------------------------------
1107
+  (0.0ms) rollback transaction
1108
+  (0.0ms) begin transaction
1109
+ -------------------------------------------------------------
1110
+ ModelTest: test_location_should_be_invalid_when_empty_session
1111
+ -------------------------------------------------------------
1112
+  (0.0ms) rollback transaction
1113
+  (0.0ms) begin transaction
1114
+ -------------------------------------------------------------
1115
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1116
+ -------------------------------------------------------------
1117
+  (0.0ms) rollback transaction
1118
+  (0.0ms) begin transaction
1119
+ -----------------------------------------------------------------------------
1120
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1121
+ -----------------------------------------------------------------------------
1122
+  (0.0ms) rollback transaction
1123
+  (0.0ms) begin transaction
1124
+ ------------------------------------------------------
1125
+ ModelTest: test_coords_should_give_the_values_in_array
1126
+ ------------------------------------------------------
1127
+  (0.0ms) rollback transaction
1128
+  (0.0ms) begin transaction
1129
+ --------------------------------------------------------------
1130
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1131
+ --------------------------------------------------------------
1132
+  (0.0ms) rollback transaction
1133
+  (0.0ms) begin transaction
1134
+ --------------------------------------------------------
1135
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1136
+ --------------------------------------------------------
1137
+  (0.0ms) rollback transaction
1138
+  (0.0ms) begin transaction
1139
+ ----------------------------------------------------------------
1140
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1141
+ ----------------------------------------------------------------
1142
+  (0.0ms) rollback transaction
1143
+  (0.0ms) begin transaction
1144
+ ----------------------------------------------------------------------------
1145
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
1146
+ ----------------------------------------------------------------------------
1147
+  (0.0ms) rollback transaction
1148
+  (0.0ms) begin transaction
1149
+ --------------------------------------------------------------
1150
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1151
+ --------------------------------------------------------------
1152
+  (0.0ms) rollback transaction
1153
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1154
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1155
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1156
+  (0.0ms) SELECT sqlite_version(*)
1157
+  (12.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1158
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1159
+  (15.3ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1160
+  (11.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1161
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1162
+  (0.1ms) begin transaction
1163
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:28:52.057480"], ["updated_at", "2018-09-17 19:28:52.057480"]]
1164
+  (10.4ms) commit transaction
1165
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1166
+  (0.2ms) begin transaction
1167
+  (0.1ms) commit transaction
1168
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1169
+  (0.1ms) begin transaction
1170
+ ----------------------------------------------------------------------------
1171
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
1172
+ ----------------------------------------------------------------------------
1173
+  (0.0ms) rollback transaction
1174
+  (0.0ms) begin transaction
1175
+ ----------------------------------------------------------------
1176
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1177
+ ----------------------------------------------------------------
1178
+  (0.0ms) rollback transaction
1179
+  (0.0ms) begin transaction
1180
+ ------------------------------------------------------
1181
+ ModelTest: test_coords_should_give_the_values_in_array
1182
+ ------------------------------------------------------
1183
+  (0.0ms) rollback transaction
1184
+  (0.0ms) begin transaction
1185
+ --------------------------------------------------------------
1186
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1187
+ --------------------------------------------------------------
1188
+  (0.0ms) rollback transaction
1189
+  (0.0ms) begin transaction
1190
+ -------------------------------------------------------------
1191
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1192
+ -------------------------------------------------------------
1193
+  (0.0ms) rollback transaction
1194
+  (0.0ms) begin transaction
1195
+ -----------------------------------------------------------------------
1196
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1197
+ -----------------------------------------------------------------------
1198
+  (0.0ms) rollback transaction
1199
+  (0.0ms) begin transaction
1200
+ --------------------------------------------------------------
1201
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1202
+ --------------------------------------------------------------
1203
+  (0.0ms) rollback transaction
1204
+  (0.0ms) begin transaction
1205
+ --------------------------------------------------------
1206
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1207
+ --------------------------------------------------------
1208
+  (0.0ms) rollback transaction
1209
+  (0.0ms) begin transaction
1210
+ -----------------------------------------------------------------------------
1211
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1212
+ -----------------------------------------------------------------------------
1213
+  (0.0ms) rollback transaction
1214
+  (0.0ms) begin transaction
1215
+ -------------------------------------------------------------
1216
+ ModelTest: test_location_should_be_invalid_when_empty_session
1217
+ -------------------------------------------------------------
1218
+  (0.0ms) rollback transaction
1219
+  (0.0ms) begin transaction
1220
+ ---------------------------------------------------------------------
1221
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1222
+ ---------------------------------------------------------------------
1223
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:52 -0300
1224
+ Processing by Spyme::LocationsController#create as HTML
1225
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
1226
+  (0.1ms) rollback transaction
1227
+  (0.0ms) begin transaction
1228
+ -------------------------------------------------
1229
+ SpymeTest: test_post_to_spyme_should_store_coords
1230
+ -------------------------------------------------
1231
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:52 -0300
1232
+ Processing by Spyme::LocationsController#create as HTML
1233
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1234
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1235
+  (0.0ms) rollback transaction
1236
+  (0.0ms) begin transaction
1237
+ ---------------------------------------------------
1238
+ SpymeTest: test_post_to_spyme_should_return_success
1239
+ ---------------------------------------------------
1240
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:52 -0300
1241
+ Processing by Spyme::LocationsController#create as HTML
1242
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1243
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1244
+  (0.0ms) rollback transaction
1245
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1246
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1247
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1248
+  (0.0ms) SELECT sqlite_version(*)
1249
+  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1250
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1251
+  (13.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1252
+  (11.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1253
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1254
+  (0.0ms) begin transaction
1255
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:29:08.620060"], ["updated_at", "2018-09-17 19:29:08.620060"]]
1256
+  (10.3ms) commit transaction
1257
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1258
+  (0.0ms) begin transaction
1259
+  (0.1ms) commit transaction
1260
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1261
+  (0.0ms) begin transaction
1262
+ -------------------------------------------------
1263
+ SpymeTest: test_post_to_spyme_should_store_coords
1264
+ -------------------------------------------------
1265
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:08 -0300
1266
+ Processing by Spyme::LocationsController#create as HTML
1267
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1268
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
1269
+  (0.1ms) rollback transaction
1270
+  (0.0ms) begin transaction
1271
+ ---------------------------------------------------------------------
1272
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1273
+ ---------------------------------------------------------------------
1274
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:08 -0300
1275
+ Processing by Spyme::LocationsController#create as HTML
1276
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
1277
+  (0.0ms) rollback transaction
1278
+  (0.0ms) begin transaction
1279
+ ---------------------------------------------------
1280
+ SpymeTest: test_post_to_spyme_should_return_success
1281
+ ---------------------------------------------------
1282
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:08 -0300
1283
+ Processing by Spyme::LocationsController#create as HTML
1284
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1285
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
1286
+  (0.1ms) rollback transaction
1287
+  (0.0ms) begin transaction
1288
+ --------------------------------------------------------------
1289
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1290
+ --------------------------------------------------------------
1291
+  (0.0ms) rollback transaction
1292
+  (0.0ms) begin transaction
1293
+ -------------------------------------------------------------
1294
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1295
+ -------------------------------------------------------------
1296
+  (0.0ms) rollback transaction
1297
+  (0.0ms) begin transaction
1298
+ --------------------------------------------------------------
1299
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1300
+ --------------------------------------------------------------
1301
+  (0.0ms) rollback transaction
1302
+  (0.0ms) begin transaction
1303
+ -----------------------------------------------------------------------------
1304
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1305
+ -----------------------------------------------------------------------------
1306
+  (0.0ms) rollback transaction
1307
+  (0.0ms) begin transaction
1308
+ -------------------------------------------------------------
1309
+ ModelTest: test_location_should_be_invalid_when_empty_session
1310
+ -------------------------------------------------------------
1311
+  (0.1ms) rollback transaction
1312
+  (0.0ms) begin transaction
1313
+ ------------------------------------------------------
1314
+ ModelTest: test_coords_should_give_the_values_in_array
1315
+ ------------------------------------------------------
1316
+  (0.0ms) rollback transaction
1317
+  (0.0ms) begin transaction
1318
+ ----------------------------------------------------------------
1319
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1320
+ ----------------------------------------------------------------
1321
+  (0.0ms) rollback transaction
1322
+  (0.0ms) begin transaction
1323
+ --------------------------------------------------------
1324
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1325
+ --------------------------------------------------------
1326
+  (0.0ms) rollback transaction
1327
+  (0.0ms) begin transaction
1328
+ -----------------------------------------------------------------------
1329
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1330
+ -----------------------------------------------------------------------
1331
+  (0.0ms) rollback transaction
1332
+  (0.0ms) begin transaction
1333
+ ----------------------------------------------------------------------------
1334
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
1335
+ ----------------------------------------------------------------------------
1336
+  (0.0ms) rollback transaction
1337
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1338
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1339
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1340
+  (0.0ms) SELECT sqlite_version(*)
1341
+  (11.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1342
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1343
+  (16.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1344
+  (12.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1345
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1346
+  (0.1ms) begin transaction
1347
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:29:50.261812"], ["updated_at", "2018-09-17 19:29:50.261812"]]
1348
+  (10.6ms) commit transaction
1349
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1350
+  (0.1ms) begin transaction
1351
+  (0.0ms) commit transaction
1352
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1353
+  (0.1ms) begin transaction
1354
+ -------------------------------------------------------------
1355
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1356
+ -------------------------------------------------------------
1357
+  (0.0ms) rollback transaction
1358
+  (0.0ms) begin transaction
1359
+ ------------------------------------------------------
1360
+ ModelTest: test_coords_should_give_the_values_in_array
1361
+ ------------------------------------------------------
1362
+  (0.0ms) rollback transaction
1363
+  (0.0ms) begin transaction
1364
+ -------------------------------------------------------------
1365
+ ModelTest: test_location_should_be_invalid_when_empty_session
1366
+ -------------------------------------------------------------
1367
+  (0.0ms) rollback transaction
1368
+  (0.0ms) begin transaction
1369
+ --------------------------------------------------------------
1370
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1371
+ --------------------------------------------------------------
1372
+  (0.0ms) rollback transaction
1373
+  (0.0ms) begin transaction
1374
+ -----------------------------------------------------------------------
1375
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1376
+ -----------------------------------------------------------------------
1377
+  (0.0ms) rollback transaction
1378
+  (0.0ms) begin transaction
1379
+ ----------------------------------------------------------------
1380
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1381
+ ----------------------------------------------------------------
1382
+  (0.0ms) rollback transaction
1383
+  (0.0ms) begin transaction
1384
+ --------------------------------------------------------
1385
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1386
+ --------------------------------------------------------
1387
+  (0.0ms) rollback transaction
1388
+  (0.0ms) begin transaction
1389
+ ----------------------------------------------------------------------------
1390
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
1391
+ ----------------------------------------------------------------------------
1392
+  (0.0ms) rollback transaction
1393
+  (0.0ms) begin transaction
1394
+ --------------------------------------------------------------
1395
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1396
+ --------------------------------------------------------------
1397
+  (0.0ms) rollback transaction
1398
+  (0.0ms) begin transaction
1399
+ -----------------------------------------------------------------------------
1400
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1401
+ -----------------------------------------------------------------------------
1402
+  (0.0ms) rollback transaction
1403
+  (0.0ms) begin transaction
2
1404
  ---------------------------------------------------------------------
3
1405
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
4
1406
  ---------------------------------------------------------------------
5
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 12:05:47 -0300
6
-  (0.2ms) rollback transaction
7
-  (0.1ms) begin transaction
1407
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:50 -0300
1408
+ Processing by Spyme::LocationsController#create as HTML
1409
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
1410
+  (0.1ms) rollback transaction
1411
+  (0.0ms) begin transaction
8
1412
  ---------------------------------------------------
9
1413
  SpymeTest: test_post_to_spyme_should_return_success
10
1414
  ---------------------------------------------------
11
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 12:05:47 -0300
12
-  (0.1ms) rollback transaction
13
-  (0.1ms) begin transaction
1415
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:50 -0300
1416
+ Processing by Spyme::LocationsController#create as HTML
1417
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1418
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
1419
+  (0.0ms) rollback transaction
1420
+  (0.1ms) begin transaction
14
1421
  -------------------------------------------------
15
1422
  SpymeTest: test_post_to_spyme_should_store_coords
16
1423
  -------------------------------------------------
17
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 12:05:47 -0300
18
-  (0.1ms) rollback transaction
19
-  (0.1ms) begin transaction
20
- -------------------------------------------------------------------
21
- ModelTest: test_google_map_coords_should_give_the_right_query_value
22
- -------------------------------------------------------------------
23
-  (0.0ms) rollback transaction
24
-  (0.0ms) begin transaction
25
- -----------------------------------------------------------------------------
26
- ModelTest: test_initialize_from_session_should_give_correct_number_attributes
27
- -----------------------------------------------------------------------------
28
-  (0.0ms) rollback transaction
29
-  (0.1ms) begin transaction
30
- ----------------------------------------------------------------------------
31
- ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
32
- ----------------------------------------------------------------------------
33
-  (0.1ms) rollback transaction
34
-  (0.1ms) begin transaction
1424
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:50 -0300
1425
+ Processing by Spyme::LocationsController#create as HTML
1426
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1427
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
1428
+  (0.0ms) rollback transaction
1429
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1430
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1431
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1432
+  (0.0ms) SELECT sqlite_version(*)
1433
+  (11.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1434
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1435
+  (15.4ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1436
+  (11.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1437
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1438
+  (0.1ms) begin transaction
1439
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:30:06.012103"], ["updated_at", "2018-09-17 19:30:06.012103"]]
1440
+  (10.9ms) commit transaction
1441
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1442
+  (0.1ms) begin transaction
1443
+  (0.1ms) commit transaction
1444
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1445
+  (0.1ms) begin transaction
1446
+ -------------------------------------------------------------
1447
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1448
+ -------------------------------------------------------------
1449
+  (0.0ms) rollback transaction
1450
+  (0.0ms) begin transaction
1451
+ ----------------------------------------------------------------
1452
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1453
+ ----------------------------------------------------------------
1454
+  (0.1ms) rollback transaction
1455
+  (0.0ms) begin transaction
1456
+ -------------------------------------------------------------
1457
+ ModelTest: test_location_should_be_invalid_when_empty_session
1458
+ -------------------------------------------------------------
1459
+  (0.1ms) rollback transaction
1460
+  (0.0ms) begin transaction
1461
+ ------------------------------------------------------
1462
+ ModelTest: test_coords_should_give_the_values_in_array
1463
+ ------------------------------------------------------
1464
+  (0.0ms) rollback transaction
1465
+  (0.0ms) begin transaction
1466
+ -----------------------------------------------------------------------
1467
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1468
+ -----------------------------------------------------------------------
1469
+  (0.0ms) rollback transaction
1470
+  (0.0ms) begin transaction
1471
+ --------------------------------------------------------------
1472
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1473
+ --------------------------------------------------------------
1474
+  (0.0ms) rollback transaction
1475
+  (0.0ms) begin transaction
35
1476
  --------------------------------------------------------
36
1477
  ModelTest: test_to_hash_should_give_the_right_hash_value
37
1478
  --------------------------------------------------------
38
-  (0.0ms) rollback transaction
39
-  (0.1ms) begin transaction
40
- -------------------------------------------------------------------
41
- ModelTest: test_google_map_coords_should_give_the_right_query_value
42
- -------------------------------------------------------------------
43
-  (0.1ms) rollback transaction
44
-  (0.0ms) begin transaction
1479
+  (0.0ms) rollback transaction
1480
+  (0.0ms) begin transaction
1481
+ --------------------------------------------------------------
1482
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1483
+ --------------------------------------------------------------
1484
+  (0.0ms) rollback transaction
1485
+  (0.0ms) begin transaction
45
1486
  -----------------------------------------------------------------------------
46
1487
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
47
1488
  -----------------------------------------------------------------------------
48
-  (0.1ms) rollback transaction
49
-  (0.0ms) begin transaction
1489
+  (0.0ms) rollback transaction
1490
+  (0.0ms) begin transaction
50
1491
  ----------------------------------------------------------------------------
51
1492
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
52
1493
  ----------------------------------------------------------------------------
53
-  (0.2ms) rollback transaction
54
-  (0.1ms) begin transaction
55
- --------------------------------------------------------
56
- ModelTest: test_to_hash_should_give_the_right_hash_value
57
- --------------------------------------------------------
58
-  (0.1ms) rollback transaction
59
-  (0.1ms) begin transaction
60
- ---------------------------------------------------------------------
61
- SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
62
- ---------------------------------------------------------------------
63
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 12:06:20 -0300
64
- Processing by Spyme::LocationsController#create as HTML
65
- Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
66
-  (0.1ms) rollback transaction
67
-  (0.1ms) begin transaction
1494
+  (0.1ms) rollback transaction
1495
+  (0.0ms) begin transaction
68
1496
  ---------------------------------------------------
69
1497
  SpymeTest: test_post_to_spyme_should_return_success
70
1498
  ---------------------------------------------------
71
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 12:06:20 -0300
1499
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:30:06 -0300
72
1500
  Processing by Spyme::LocationsController#create as HTML
73
1501
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
74
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
75
-  (0.1ms) rollback transaction
76
-  (0.1ms) begin transaction
1502
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
1503
+  (0.1ms) rollback transaction
1504
+  (0.0ms) begin transaction
77
1505
  -------------------------------------------------
78
1506
  SpymeTest: test_post_to_spyme_should_store_coords
79
1507
  -------------------------------------------------
80
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 12:06:20 -0300
1508
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:30:06 -0300
81
1509
  Processing by Spyme::LocationsController#create as HTML
82
1510
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
83
- Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
84
-  (0.1ms) rollback transaction
85
-  (0.2ms) begin transaction
86
- -------------------------------------------------------------------
87
- ModelTest: test_google_map_coords_should_give_the_right_query_value
88
- -------------------------------------------------------------------
89
-  (0.1ms) rollback transaction
90
-  (0.1ms) begin transaction
1511
+ Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
1512
+  (0.1ms) rollback transaction
1513
+  (0.0ms) begin transaction
1514
+ ---------------------------------------------------------------------
1515
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1516
+ ---------------------------------------------------------------------
1517
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:30:06 -0300
1518
+ Processing by Spyme::LocationsController#create as HTML
1519
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
1520
+  (0.0ms) rollback transaction
1521
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1522
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1523
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1524
+  (0.0ms) SELECT sqlite_version(*)
1525
+  (11.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1526
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1527
+  (13.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1528
+  (12.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1529
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1530
+  (0.0ms) begin transaction
1531
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:31:20.788597"], ["updated_at", "2018-09-17 19:31:20.788597"]]
1532
+  (10.7ms) commit transaction
1533
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1534
+  (0.1ms) begin transaction
1535
+  (0.1ms) commit transaction
1536
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1537
+  (0.1ms) begin transaction
1538
+ ----------------------------------------------------------------
1539
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1540
+ ----------------------------------------------------------------
1541
+  (0.1ms) rollback transaction
1542
+  (0.0ms) begin transaction
1543
+ --------------------------------------------------------------
1544
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1545
+ --------------------------------------------------------------
1546
+  (0.0ms) rollback transaction
1547
+  (0.0ms) begin transaction
1548
+ -------------------------------------------------------------
1549
+ ModelTest: test_location_should_be_invalid_when_empty_session
1550
+ -------------------------------------------------------------
1551
+  (0.0ms) rollback transaction
1552
+  (0.0ms) begin transaction
1553
+ -------------------------------------------------------------
1554
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1555
+ -------------------------------------------------------------
1556
+  (0.0ms) rollback transaction
1557
+  (0.0ms) begin transaction
1558
+ ------------------------------------------------------
1559
+ ModelTest: test_coords_should_give_the_values_in_array
1560
+ ------------------------------------------------------
1561
+  (0.0ms) rollback transaction
1562
+  (0.0ms) begin transaction
91
1563
  -----------------------------------------------------------------------------
92
1564
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
93
1565
  -----------------------------------------------------------------------------
94
-  (0.1ms) rollback transaction
95
-  (0.1ms) begin transaction
1566
+  (0.0ms) rollback transaction
1567
+  (0.0ms) begin transaction
1568
+ --------------------------------------------------------------
1569
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1570
+ --------------------------------------------------------------
1571
+  (0.0ms) rollback transaction
1572
+  (0.0ms) begin transaction
96
1573
  ----------------------------------------------------------------------------
97
1574
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
98
1575
  ----------------------------------------------------------------------------
99
-  (0.1ms) rollback transaction
100
-  (0.1ms) begin transaction
1576
+  (0.0ms) rollback transaction
1577
+  (0.0ms) begin transaction
1578
+ -----------------------------------------------------------------------
1579
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1580
+ -----------------------------------------------------------------------
1581
+  (0.0ms) rollback transaction
1582
+  (0.0ms) begin transaction
101
1583
  --------------------------------------------------------
102
1584
  ModelTest: test_to_hash_should_give_the_right_hash_value
103
1585
  --------------------------------------------------------
104
-  (0.0ms) rollback transaction
105
-  (0.1ms) begin transaction
1586
+  (0.0ms) rollback transaction
1587
+  (0.0ms) begin transaction
106
1588
  ---------------------------------------------------------------------
107
1589
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
108
1590
  ---------------------------------------------------------------------
109
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 15:27:47 -0300
1591
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:31:20 -0300
110
1592
  Processing by Spyme::LocationsController#create as HTML
111
1593
  Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
112
-  (0.1ms) rollback transaction
113
-  (0.1ms) begin transaction
1594
+  (0.1ms) rollback transaction
1595
+  (0.1ms) begin transaction
114
1596
  ---------------------------------------------------
115
1597
  SpymeTest: test_post_to_spyme_should_return_success
116
1598
  ---------------------------------------------------
117
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 15:27:47 -0300
1599
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:31:20 -0300
118
1600
  Processing by Spyme::LocationsController#create as HTML
119
1601
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
120
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
121
-  (0.1ms) rollback transaction
122
-  (0.1ms) begin transaction
1602
+ Unpermitted parameter: :location
1603
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
1604
+  (0.0ms) rollback transaction
1605
+  (0.0ms) begin transaction
123
1606
  -------------------------------------------------
124
1607
  SpymeTest: test_post_to_spyme_should_store_coords
125
1608
  -------------------------------------------------
126
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 15:27:47 -0300
1609
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:31:20 -0300
127
1610
  Processing by Spyme::LocationsController#create as HTML
128
1611
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
129
- Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
130
-  (0.1ms) rollback transaction
131
-  (0.2ms) begin transaction
1612
+ Unpermitted parameter: :location
1613
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
1614
+  (0.0ms) rollback transaction
1615
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1616
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1617
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1618
+  (0.0ms) SELECT sqlite_version(*)
1619
+  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1620
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1621
+  (15.2ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1622
+  (12.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1623
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1624
+  (0.1ms) begin transaction
1625
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:32:01.191702"], ["updated_at", "2018-09-17 19:32:01.191702"]]
1626
+  (10.8ms) commit transaction
1627
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1628
+  (0.1ms) begin transaction
1629
+  (0.1ms) commit transaction
1630
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1631
+  (0.0ms) begin transaction
132
1632
  ---------------------------------------------------------------------
133
1633
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
134
1634
  ---------------------------------------------------------------------
135
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:04:55 -0300
1635
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:01 -0300
1636
+ Processing by Spyme::LocationsController#create as HTML
1637
+ Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
1638
+  (0.4ms) rollback transaction
1639
+  (0.0ms) begin transaction
1640
+ -------------------------------------------------
1641
+ SpymeTest: test_post_to_spyme_should_store_coords
1642
+ -------------------------------------------------
1643
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:01 -0300
136
1644
  Processing by Spyme::LocationsController#create as HTML
137
- Completed 400 Bad Request in 24ms (ActiveRecord: 0.0ms)
138
-  (0.2ms) rollback transaction
139
-  (0.1ms) begin transaction
1645
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1646
+ Unpermitted parameter: :location
1647
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.0ms)
1648
+  (0.0ms) rollback transaction
1649
+  (0.0ms) begin transaction
1650
+ ---------------------------------------------------
1651
+ SpymeTest: test_post_to_spyme_should_return_success
1652
+ ---------------------------------------------------
1653
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:01 -0300
1654
+ Processing by Spyme::LocationsController#create as HTML
1655
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1656
+ Unpermitted parameter: :location
1657
+ Completed 400 Bad Request in 6ms (ActiveRecord: 0.0ms)
1658
+  (0.1ms) rollback transaction
1659
+  (0.0ms) begin transaction
1660
+ -------------------------------------------------------------
1661
+ ModelTest: test_location_should_be_invalid_when_empty_session
1662
+ -------------------------------------------------------------
1663
+  (0.1ms) rollback transaction
1664
+  (0.0ms) begin transaction
1665
+ -------------------------------------------------------------
1666
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1667
+ -------------------------------------------------------------
1668
+  (0.0ms) rollback transaction
1669
+  (0.0ms) begin transaction
1670
+ -----------------------------------------------------------------------
1671
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1672
+ -----------------------------------------------------------------------
1673
+  (0.1ms) rollback transaction
1674
+  (0.0ms) begin transaction
1675
+ ----------------------------------------------------------------
1676
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1677
+ ----------------------------------------------------------------
1678
+  (0.0ms) rollback transaction
1679
+  (0.0ms) begin transaction
1680
+ ------------------------------------------------------
1681
+ ModelTest: test_coords_should_give_the_values_in_array
1682
+ ------------------------------------------------------
1683
+  (0.0ms) rollback transaction
1684
+  (0.0ms) begin transaction
1685
+ ----------------------------------------------------------------------------
1686
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
1687
+ ----------------------------------------------------------------------------
1688
+  (0.0ms) rollback transaction
1689
+  (0.0ms) begin transaction
1690
+ --------------------------------------------------------
1691
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1692
+ --------------------------------------------------------
1693
+  (0.1ms) rollback transaction
1694
+  (0.0ms) begin transaction
1695
+ --------------------------------------------------------------
1696
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1697
+ --------------------------------------------------------------
1698
+  (0.0ms) rollback transaction
1699
+  (0.0ms) begin transaction
1700
+ --------------------------------------------------------------
1701
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1702
+ --------------------------------------------------------------
1703
+  (0.0ms) rollback transaction
1704
+  (0.0ms) begin transaction
1705
+ -----------------------------------------------------------------------------
1706
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1707
+ -----------------------------------------------------------------------------
1708
+  (0.0ms) rollback transaction
1709
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1710
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1711
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1712
+  (0.0ms) SELECT sqlite_version(*)
1713
+  (12.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1714
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1715
+  (16.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1716
+  (10.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1717
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1718
+  (0.1ms) begin transaction
1719
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:32:17.862550"], ["updated_at", "2018-09-17 19:32:17.862550"]]
1720
+  (10.7ms) commit transaction
1721
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1722
+  (0.1ms) begin transaction
1723
+  (0.1ms) commit transaction
1724
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1725
+  (0.0ms) begin transaction
140
1726
  ---------------------------------------------------
141
1727
  SpymeTest: test_post_to_spyme_should_return_success
142
1728
  ---------------------------------------------------
143
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:04:55 -0300
1729
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:17 -0300
144
1730
  Processing by Spyme::LocationsController#create as HTML
145
1731
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
146
- Completed 201 Created in 29ms (ActiveRecord: 0.0ms)
147
-  (0.2ms) rollback transaction
148
-  (0.1ms) begin transaction
1732
+ Unpermitted parameter: :location
1733
+ Unpermitted parameter: :location
1734
+ Unpermitted parameter: :location
1735
+ Completed 400 Bad Request in 10282ms (ActiveRecord: 0.0ms)
1736
+  (0.1ms) rollback transaction
1737
+  (0.0ms) begin transaction
1738
+ ---------------------------------------------------------------------
1739
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1740
+ ---------------------------------------------------------------------
1741
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:28 -0300
1742
+ Processing by Spyme::LocationsController#create as HTML
1743
+ Completed 400 Bad Request in 11934ms (ActiveRecord: 0.0ms)
1744
+  (0.1ms) rollback transaction
1745
+  (0.0ms) begin transaction
149
1746
  -------------------------------------------------
150
1747
  SpymeTest: test_post_to_spyme_should_store_coords
151
1748
  -------------------------------------------------
152
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:04:55 -0300
1749
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:40 -0300
153
1750
  Processing by Spyme::LocationsController#create as HTML
154
1751
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
155
- Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
156
-  (0.1ms) rollback transaction
157
-  (0.1ms) begin transaction
158
- -------------------------------------------------------------------
159
- ModelTest: test_google_map_coords_should_give_the_right_query_value
160
- -------------------------------------------------------------------
161
-  (0.1ms) rollback transaction
162
-  (0.1ms) begin transaction
163
- -----------------------------------------------------------------------------
164
- ModelTest: test_initialize_from_session_should_give_correct_number_attributes
165
- -----------------------------------------------------------------------------
166
-  (0.1ms) rollback transaction
167
-  (0.1ms) begin transaction
1752
+ Unpermitted parameter: :location
1753
+ Unpermitted parameter: :location
1754
+ Unpermitted parameter: :location
1755
+ Completed 400 Bad Request in 34622ms (ActiveRecord: 0.0ms)
1756
+  (0.1ms) rollback transaction
1757
+  (0.0ms) begin transaction
1758
+ -----------------------------------------------------------------------
1759
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1760
+ -----------------------------------------------------------------------
1761
+  (0.0ms) rollback transaction
1762
+  (0.0ms) begin transaction
168
1763
  ----------------------------------------------------------------------------
169
1764
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
170
1765
  ----------------------------------------------------------------------------
171
-  (0.1ms) rollback transaction
172
-  (0.1ms) begin transaction
1766
+  (0.0ms) rollback transaction
1767
+  (0.0ms) begin transaction
1768
+ --------------------------------------------------------------
1769
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1770
+ --------------------------------------------------------------
1771
+  (0.0ms) rollback transaction
1772
+  (0.0ms) begin transaction
1773
+ -------------------------------------------------------------
1774
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1775
+ -------------------------------------------------------------
1776
+  (0.0ms) rollback transaction
1777
+  (0.0ms) begin transaction
1778
+ ------------------------------------------------------
1779
+ ModelTest: test_coords_should_give_the_values_in_array
1780
+ ------------------------------------------------------
1781
+  (0.0ms) rollback transaction
1782
+  (0.0ms) begin transaction
173
1783
  --------------------------------------------------------
174
1784
  ModelTest: test_to_hash_should_give_the_right_hash_value
175
1785
  --------------------------------------------------------
176
-  (0.1ms) rollback transaction
177
-  (0.1ms) begin transaction
1786
+  (0.0ms) rollback transaction
1787
+  (0.0ms) begin transaction
1788
+ -----------------------------------------------------------------------------
1789
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1790
+ -----------------------------------------------------------------------------
1791
+  (0.0ms) rollback transaction
1792
+  (0.0ms) begin transaction
1793
+ ----------------------------------------------------------------
1794
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1795
+ ----------------------------------------------------------------
1796
+  (0.0ms) rollback transaction
1797
+  (0.1ms) begin transaction
1798
+ -------------------------------------------------------------
1799
+ ModelTest: test_location_should_be_invalid_when_empty_session
1800
+ -------------------------------------------------------------
1801
+  (0.0ms) rollback transaction
1802
+  (0.0ms) begin transaction
1803
+ --------------------------------------------------------------
1804
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1805
+ --------------------------------------------------------------
1806
+  (0.0ms) rollback transaction
1807
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1808
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1809
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1810
+  (0.0ms) SELECT sqlite_version(*)
1811
+  (10.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1812
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1813
+  (16.7ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1814
+  (11.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1815
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1816
+  (0.0ms) begin transaction
1817
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:33:33.874537"], ["updated_at", "2018-09-17 19:33:33.874537"]]
1818
+  (10.1ms) commit transaction
1819
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1820
+  (0.0ms) begin transaction
1821
+  (0.0ms) commit transaction
1822
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1823
+  (0.1ms) begin transaction
1824
+ ---------------------------------------------------------------------
1825
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1826
+ ---------------------------------------------------------------------
1827
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:33 -0300
1828
+ Processing by Spyme::LocationsController#create as HTML
1829
+ Completed 400 Bad Request in 3422ms (ActiveRecord: 0.0ms)
1830
+  (0.1ms) rollback transaction
1831
+  (0.0ms) begin transaction
1832
+ -------------------------------------------------
1833
+ SpymeTest: test_post_to_spyme_should_store_coords
1834
+ -------------------------------------------------
1835
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:37 -0300
1836
+ Processing by Spyme::LocationsController#create as HTML
1837
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1838
+ Completed 500 Internal Server Error in 1130ms (ActiveRecord: 0.0ms)
1839
+  (0.1ms) rollback transaction
1840
+  (0.0ms) begin transaction
1841
+ ---------------------------------------------------
1842
+ SpymeTest: test_post_to_spyme_should_return_success
1843
+ ---------------------------------------------------
1844
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:38 -0300
1845
+ Processing by Spyme::LocationsController#create as HTML
1846
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1847
+ Completed 500 Internal Server Error in 1094ms (ActiveRecord: 0.0ms)
1848
+  (0.1ms) rollback transaction
1849
+  (0.0ms) begin transaction
178
1850
  ------------------------------------------------------
179
1851
  ModelTest: test_coords_should_give_the_values_in_array
180
1852
  ------------------------------------------------------
181
-  (0.1ms) rollback transaction
182
-  (0.0ms) begin transaction
183
- -------------------------------------------------------------------
184
- ModelTest: test_google_map_coords_should_give_the_right_query_value
185
- -------------------------------------------------------------------
186
-  (0.0ms) rollback transaction
187
-  (0.1ms) begin transaction
1853
+  (0.0ms) rollback transaction
1854
+  (0.0ms) begin transaction
1855
+ ----------------------------------------------------------------
1856
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1857
+ ----------------------------------------------------------------
1858
+  (0.0ms) rollback transaction
1859
+  (0.0ms) begin transaction
1860
+ -----------------------------------------------------------------------
1861
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1862
+ -----------------------------------------------------------------------
1863
+  (0.0ms) rollback transaction
1864
+  (0.0ms) begin transaction
1865
+ ----------------------------------------------------------------------------
1866
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
1867
+ ----------------------------------------------------------------------------
1868
+  (0.0ms) rollback transaction
1869
+  (0.0ms) begin transaction
1870
+ --------------------------------------------------------------
1871
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1872
+ --------------------------------------------------------------
1873
+  (0.0ms) rollback transaction
1874
+  (0.0ms) begin transaction
1875
+ -------------------------------------------------------------
1876
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1877
+ -------------------------------------------------------------
1878
+  (0.0ms) rollback transaction
1879
+  (0.0ms) begin transaction
188
1880
  -----------------------------------------------------------------------------
189
1881
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
190
1882
  -----------------------------------------------------------------------------
191
-  (0.1ms) rollback transaction
192
-  (0.0ms) begin transaction
1883
+  (0.0ms) rollback transaction
1884
+  (0.0ms) begin transaction
1885
+ --------------------------------------------------------------
1886
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1887
+ --------------------------------------------------------------
1888
+  (0.0ms) rollback transaction
1889
+  (0.0ms) begin transaction
1890
+ --------------------------------------------------------
1891
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1892
+ --------------------------------------------------------
1893
+  (0.0ms) rollback transaction
1894
+  (0.0ms) begin transaction
1895
+ -------------------------------------------------------------
1896
+ ModelTest: test_location_should_be_invalid_when_empty_session
1897
+ -------------------------------------------------------------
1898
+  (0.0ms) rollback transaction
1899
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1900
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1901
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1902
+  (0.0ms) SELECT sqlite_version(*)
1903
+  (12.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1904
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1905
+  (15.9ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1906
+  (11.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1907
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1908
+  (0.0ms) begin transaction
1909
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:33:54.055743"], ["updated_at", "2018-09-17 19:33:54.055743"]]
1910
+  (11.1ms) commit transaction
1911
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1912
+  (0.0ms) begin transaction
1913
+  (0.0ms) commit transaction
1914
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1915
+  (0.1ms) begin transaction
1916
+ --------------------------------------------------------------
1917
+ ModelTest: test_location_should_be_valid_at_positive_boundries
1918
+ --------------------------------------------------------------
1919
+  (0.0ms) rollback transaction
1920
+  (0.0ms) begin transaction
1921
+ --------------------------------------------------------
1922
+ ModelTest: test_to_hash_should_give_the_right_hash_value
1923
+ --------------------------------------------------------
1924
+  (0.0ms) rollback transaction
1925
+  (0.0ms) begin transaction
193
1926
  ----------------------------------------------------------------------------
194
1927
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
195
1928
  ----------------------------------------------------------------------------
196
-  (0.1ms) rollback transaction
197
-  (0.1ms) begin transaction
1929
+  (0.0ms) rollback transaction
1930
+  (0.0ms) begin transaction
1931
+ -------------------------------------------------------------
1932
+ ModelTest: test_location_should_be_invalid_when_empty_session
1933
+ -------------------------------------------------------------
1934
+  (0.0ms) rollback transaction
1935
+  (0.0ms) begin transaction
1936
+ --------------------------------------------------------------
1937
+ ModelTest: test_location_should_be_valid_at_negative_boundries
1938
+ --------------------------------------------------------------
1939
+  (0.0ms) rollback transaction
1940
+  (0.0ms) begin transaction
1941
+ ------------------------------------------------------
1942
+ ModelTest: test_coords_should_give_the_values_in_array
1943
+ ------------------------------------------------------
1944
+  (0.0ms) rollback transaction
1945
+  (0.0ms) begin transaction
1946
+ ----------------------------------------------------------------
1947
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
1948
+ ----------------------------------------------------------------
1949
+  (0.1ms) rollback transaction
1950
+  (0.0ms) begin transaction
1951
+ -------------------------------------------------------------
1952
+ ModelTest: test_as_a_string_should_give_the_right_query_value
1953
+ -------------------------------------------------------------
1954
+  (0.1ms) rollback transaction
1955
+  (0.0ms) begin transaction
1956
+ -----------------------------------------------------------------------------
1957
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
1958
+ -----------------------------------------------------------------------------
1959
+  (0.0ms) rollback transaction
1960
+  (0.0ms) begin transaction
1961
+ -----------------------------------------------------------------------
1962
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
1963
+ -----------------------------------------------------------------------
1964
+  (0.0ms) rollback transaction
1965
+  (0.0ms) begin transaction
1966
+ -------------------------------------------------
1967
+ SpymeTest: test_post_to_spyme_should_store_coords
1968
+ -------------------------------------------------
1969
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:54 -0300
1970
+ Processing by Spyme::LocationsController#create as HTML
1971
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1972
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1973
+  (0.1ms) rollback transaction
1974
+  (0.0ms) begin transaction
1975
+ ---------------------------------------------------------------------
1976
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
1977
+ ---------------------------------------------------------------------
1978
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:54 -0300
1979
+ Processing by Spyme::LocationsController#create as HTML
1980
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
1981
+  (0.0ms) rollback transaction
1982
+  (0.0ms) begin transaction
1983
+ ---------------------------------------------------
1984
+ SpymeTest: test_post_to_spyme_should_return_success
1985
+ ---------------------------------------------------
1986
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:54 -0300
1987
+ Processing by Spyme::LocationsController#create as HTML
1988
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
1989
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1990
+  (0.0ms) rollback transaction
1991
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1992
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1993
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1994
+  (0.0ms) SELECT sqlite_version(*)
1995
+  (12.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1996
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1997
+  (15.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1998
+  (11.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1999
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2000
+  (0.1ms) begin transaction
2001
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:34:32.763017"], ["updated_at", "2018-09-17 19:34:32.763017"]]
2002
+  (10.3ms) commit transaction
2003
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2004
+  (0.1ms) begin transaction
2005
+  (0.0ms) commit transaction
2006
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2007
+  (0.1ms) begin transaction
198
2008
  --------------------------------------------------------
199
2009
  ModelTest: test_to_hash_should_give_the_right_hash_value
200
2010
  --------------------------------------------------------
201
-  (0.0ms) rollback transaction
202
-  (0.1ms) begin transaction
2011
+  (0.0ms) rollback transaction
2012
+  (0.0ms) begin transaction
2013
+ -----------------------------------------------------------------------------
2014
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
2015
+ -----------------------------------------------------------------------------
2016
+  (0.0ms) rollback transaction
2017
+  (0.0ms) begin transaction
2018
+ -----------------------------------------------------------------------
2019
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2020
+ -----------------------------------------------------------------------
2021
+  (0.0ms) rollback transaction
2022
+  (0.0ms) begin transaction
2023
+ ----------------------------------------------------------------
2024
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
2025
+ ----------------------------------------------------------------
2026
+  (0.0ms) rollback transaction
2027
+  (0.0ms) begin transaction
2028
+ ----------------------------------------------------------------------------
2029
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
2030
+ ----------------------------------------------------------------------------
2031
+  (0.0ms) rollback transaction
2032
+  (0.0ms) begin transaction
2033
+ ------------------------------------------------------
2034
+ ModelTest: test_coords_should_give_the_values_in_array
2035
+ ------------------------------------------------------
2036
+  (0.0ms) rollback transaction
2037
+  (0.0ms) begin transaction
2038
+ -------------------------------------------------------------
2039
+ ModelTest: test_location_should_be_invalid_when_empty_session
2040
+ -------------------------------------------------------------
2041
+  (0.0ms) rollback transaction
2042
+  (0.0ms) begin transaction
2043
+ -------------------------------------------------------------
2044
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2045
+ -------------------------------------------------------------
2046
+  (0.0ms) rollback transaction
2047
+  (0.0ms) begin transaction
2048
+ --------------------------------------------------------------
2049
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2050
+ --------------------------------------------------------------
2051
+  (0.0ms) rollback transaction
2052
+  (0.0ms) begin transaction
2053
+ --------------------------------------------------------------
2054
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2055
+ --------------------------------------------------------------
2056
+  (0.0ms) rollback transaction
2057
+  (0.0ms) begin transaction
203
2058
  ---------------------------------------------------------------------
204
2059
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
205
2060
  ---------------------------------------------------------------------
206
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:30:24 -0300
2061
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:34:32 -0300
207
2062
  Processing by Spyme::LocationsController#create as HTML
208
2063
  Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
209
-  (0.1ms) rollback transaction
210
-  (0.1ms) begin transaction
2064
+  (0.1ms) rollback transaction
2065
+  (0.0ms) begin transaction
211
2066
  ---------------------------------------------------
212
2067
  SpymeTest: test_post_to_spyme_should_return_success
213
2068
  ---------------------------------------------------
214
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:30:24 -0300
2069
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:34:32 -0300
215
2070
  Processing by Spyme::LocationsController#create as HTML
216
2071
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
217
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
218
-  (0.1ms) rollback transaction
219
-  (0.1ms) begin transaction
2072
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
2073
+  (0.0ms) rollback transaction
2074
+  (0.0ms) begin transaction
220
2075
  -------------------------------------------------
221
2076
  SpymeTest: test_post_to_spyme_should_store_coords
222
2077
  -------------------------------------------------
223
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:30:24 -0300
2078
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:34:32 -0300
224
2079
  Processing by Spyme::LocationsController#create as HTML
225
2080
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
226
- Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
227
-  (0.1ms) rollback transaction
228
-  (0.1ms) begin transaction
2081
+ Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
2082
+  (0.0ms) rollback transaction
2083
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2084
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2085
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2086
+  (0.0ms) SELECT sqlite_version(*)
2087
+  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2088
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2089
+  (15.4ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2090
+  (10.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2091
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2092
+  (0.0ms) begin transaction
2093
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:36:22.010384"], ["updated_at", "2018-09-17 19:36:22.010384"]]
2094
+  (11.6ms) commit transaction
2095
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2096
+  (0.0ms) begin transaction
2097
+  (0.0ms) commit transaction
2098
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2099
+  (0.0ms) begin transaction
2100
+ ---------------------------------------------------------------------
2101
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
2102
+ ---------------------------------------------------------------------
2103
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:36:22 -0300
2104
+ Processing by Spyme::LocationsController#create as HTML
2105
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
2106
+  (0.1ms) rollback transaction
2107
+  (0.4ms) begin transaction
2108
+ ---------------------------------------------------
2109
+ SpymeTest: test_post_to_spyme_should_return_success
2110
+ ---------------------------------------------------
2111
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:36:22 -0300
2112
+ Processing by Spyme::LocationsController#create as HTML
2113
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
2114
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
2115
+  (0.0ms) rollback transaction
2116
+  (0.0ms) begin transaction
2117
+ -------------------------------------------------
2118
+ SpymeTest: test_post_to_spyme_should_store_coords
2119
+ -------------------------------------------------
2120
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:36:22 -0300
2121
+ Processing by Spyme::LocationsController#create as HTML
2122
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
2123
+ Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
2124
+  (0.0ms) rollback transaction
2125
+  (0.0ms) begin transaction
2126
+ ----------------------------------------------------------------------------
2127
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
2128
+ ----------------------------------------------------------------------------
2129
+  (0.1ms) rollback transaction
2130
+  (0.0ms) begin transaction
2131
+ -----------------------------------------------------------------------
2132
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2133
+ -----------------------------------------------------------------------
2134
+  (0.0ms) rollback transaction
2135
+  (0.0ms) begin transaction
2136
+ --------------------------------------------------------
2137
+ ModelTest: test_to_hash_should_give_the_right_hash_value
2138
+ --------------------------------------------------------
2139
+  (0.0ms) rollback transaction
2140
+  (0.0ms) begin transaction
2141
+ -----------------------------------------------------------------------------
2142
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
2143
+ -----------------------------------------------------------------------------
2144
+  (0.0ms) rollback transaction
2145
+  (0.0ms) begin transaction
2146
+ ----------------------------------------------------------------
2147
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
2148
+ ----------------------------------------------------------------
2149
+  (0.1ms) rollback transaction
2150
+  (0.0ms) begin transaction
2151
+ --------------------------------------------------------------
2152
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2153
+ --------------------------------------------------------------
2154
+  (0.0ms) rollback transaction
2155
+  (0.0ms) begin transaction
2156
+ -------------------------------------------------------------
2157
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2158
+ -------------------------------------------------------------
2159
+  (0.0ms) rollback transaction
2160
+  (0.0ms) begin transaction
2161
+ -------------------------------------------------------------
2162
+ ModelTest: test_location_should_be_invalid_when_empty_session
2163
+ -------------------------------------------------------------
2164
+  (0.0ms) rollback transaction
2165
+  (0.0ms) begin transaction
2166
+ --------------------------------------------------------------
2167
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2168
+ --------------------------------------------------------------
2169
+  (0.0ms) rollback transaction
2170
+  (0.0ms) begin transaction
229
2171
  ------------------------------------------------------
230
2172
  ModelTest: test_coords_should_give_the_values_in_array
231
2173
  ------------------------------------------------------
232
-  (0.1ms) rollback transaction
233
-  (0.0ms) begin transaction
234
- -------------------------------------------------------------------
235
- ModelTest: test_google_map_coords_should_give_the_right_query_value
236
- -------------------------------------------------------------------
237
-  (0.1ms) rollback transaction
238
-  (0.1ms) begin transaction
2174
+  (0.0ms) rollback transaction
2175
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2176
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2177
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2178
+  (0.0ms) SELECT sqlite_version(*)
2179
+  (12.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2180
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2181
+  (15.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2182
+  (11.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2183
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2184
+  (0.1ms) begin transaction
2185
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:37:03.425337"], ["updated_at", "2018-09-17 19:37:03.425337"]]
2186
+  (10.7ms) commit transaction
2187
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2188
+  (0.0ms) begin transaction
2189
+  (0.0ms) commit transaction
2190
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2191
+  (0.1ms) begin transaction
239
2192
  -----------------------------------------------------------------------------
240
2193
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
241
2194
  -----------------------------------------------------------------------------
242
-  (0.0ms) rollback transaction
243
-  (0.0ms) begin transaction
2195
+  (0.0ms) rollback transaction
2196
+  (0.0ms) begin transaction
244
2197
  ----------------------------------------------------------------------------
245
2198
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
246
2199
  ----------------------------------------------------------------------------
247
-  (0.1ms) rollback transaction
248
-  (0.1ms) begin transaction
2200
+  (0.0ms) rollback transaction
2201
+  (0.0ms) begin transaction
2202
+ -------------------------------------------------------------
2203
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2204
+ -------------------------------------------------------------
2205
+  (0.0ms) rollback transaction
2206
+  (0.0ms) begin transaction
2207
+ --------------------------------------------------------------
2208
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2209
+ --------------------------------------------------------------
2210
+  (0.0ms) rollback transaction
2211
+  (0.0ms) begin transaction
2212
+ -----------------------------------------------------------------------
2213
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2214
+ -----------------------------------------------------------------------
2215
+  (0.0ms) rollback transaction
2216
+  (0.0ms) begin transaction
2217
+ ----------------------------------------------------------------
2218
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
2219
+ ----------------------------------------------------------------
2220
+  (0.0ms) rollback transaction
2221
+  (0.0ms) begin transaction
249
2222
  --------------------------------------------------------
250
2223
  ModelTest: test_to_hash_should_give_the_right_hash_value
251
2224
  --------------------------------------------------------
252
-  (0.0ms) rollback transaction
253
-  (0.1ms) begin transaction
254
- ---------------------------------------------------------------------
255
- SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
256
- ---------------------------------------------------------------------
257
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:30:41 -0300
258
- Processing by Spyme::LocationsController#create as HTML
259
- Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
260
-  (0.1ms) rollback transaction
261
-  (0.1ms) begin transaction
2225
+  (0.0ms) rollback transaction
2226
+  (0.0ms) begin transaction
2227
+ ------------------------------------------------------
2228
+ ModelTest: test_coords_should_give_the_values_in_array
2229
+ ------------------------------------------------------
2230
+  (0.0ms) rollback transaction
2231
+  (0.0ms) begin transaction
2232
+ -------------------------------------------------------------
2233
+ ModelTest: test_location_should_be_invalid_when_empty_session
2234
+ -------------------------------------------------------------
2235
+  (0.0ms) rollback transaction
2236
+  (0.0ms) begin transaction
2237
+ --------------------------------------------------------------
2238
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2239
+ --------------------------------------------------------------
2240
+  (0.0ms) rollback transaction
2241
+  (0.0ms) begin transaction
262
2242
  ---------------------------------------------------
263
2243
  SpymeTest: test_post_to_spyme_should_return_success
264
2244
  ---------------------------------------------------
265
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:30:41 -0300
2245
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:03 -0300
266
2246
  Processing by Spyme::LocationsController#create as HTML
267
2247
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
268
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
269
-  (0.1ms) rollback transaction
270
-  (0.1ms) begin transaction
2248
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
2249
+  (0.1ms) rollback transaction
2250
+  (0.0ms) begin transaction
271
2251
  -------------------------------------------------
272
2252
  SpymeTest: test_post_to_spyme_should_store_coords
273
2253
  -------------------------------------------------
274
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:30:41 -0300
2254
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:03 -0300
275
2255
  Processing by Spyme::LocationsController#create as HTML
276
2256
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
277
2257
  Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
278
-  (0.1ms) rollback transaction
279
-  (0.1ms) begin transaction
2258
+  (0.0ms) rollback transaction
2259
+  (0.0ms) begin transaction
280
2260
  ---------------------------------------------------------------------
281
2261
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
282
2262
  ---------------------------------------------------------------------
283
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:31:13 -0300
2263
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:03 -0300
284
2264
  Processing by Spyme::LocationsController#create as HTML
285
- Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
286
-  (0.1ms) rollback transaction
287
-  (0.1ms) begin transaction
2265
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
2266
+  (0.0ms) rollback transaction
2267
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2268
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2269
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2270
+  (0.0ms) SELECT sqlite_version(*)
2271
+  (11.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2272
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2273
+  (17.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2274
+  (12.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2275
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2276
+  (0.2ms) begin transaction
2277
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:37:21.630298"], ["updated_at", "2018-09-17 19:37:21.630298"]]
2278
+  (10.6ms) commit transaction
2279
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2280
+  (0.1ms) begin transaction
2281
+  (0.1ms) commit transaction
2282
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2283
+  (0.1ms) begin transaction
2284
+ ---------------------------------------------------------------------
2285
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
2286
+ ---------------------------------------------------------------------
2287
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:21 -0300
2288
+ Processing by Spyme::LocationsController#create as HTML
2289
+ Completed 400 Bad Request in 8496ms (ActiveRecord: 0.0ms)
2290
+  (0.3ms) rollback transaction
2291
+  (0.1ms) begin transaction
288
2292
  ---------------------------------------------------
289
2293
  SpymeTest: test_post_to_spyme_should_return_success
290
2294
  ---------------------------------------------------
291
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:31:13 -0300
2295
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:30 -0300
292
2296
  Processing by Spyme::LocationsController#create as HTML
293
2297
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
294
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
295
-  (0.1ms) rollback transaction
296
-  (0.1ms) begin transaction
2298
+ Completed 201 Created in 2415ms (ActiveRecord: 0.0ms)
2299
+  (0.1ms) rollback transaction
2300
+  (0.0ms) begin transaction
297
2301
  -------------------------------------------------
298
2302
  SpymeTest: test_post_to_spyme_should_store_coords
299
2303
  -------------------------------------------------
300
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:31:13 -0300
2304
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:32 -0300
301
2305
  Processing by Spyme::LocationsController#create as HTML
302
2306
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
303
- Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
304
-  (0.1ms) rollback transaction
305
-  (0.1ms) begin transaction
2307
+ Completed 201 Created in 2253ms (ActiveRecord: 0.0ms)
2308
+  (0.1ms) rollback transaction
2309
+  (0.0ms) begin transaction
2310
+ -------------------------------------------------------------
2311
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2312
+ -------------------------------------------------------------
2313
+  (0.0ms) rollback transaction
2314
+  (0.0ms) begin transaction
306
2315
  ------------------------------------------------------
307
2316
  ModelTest: test_coords_should_give_the_values_in_array
308
2317
  ------------------------------------------------------
309
-  (0.0ms) rollback transaction
310
-  (0.0ms) begin transaction
311
- -------------------------------------------------------------------
312
- ModelTest: test_google_map_coords_should_give_the_right_query_value
313
- -------------------------------------------------------------------
314
-  (0.0ms) rollback transaction
315
-  (0.0ms) begin transaction
316
- -----------------------------------------------------------------------------
317
- ModelTest: test_initialize_from_session_should_give_correct_number_attributes
318
- -----------------------------------------------------------------------------
319
-  (0.0ms) rollback transaction
320
-  (0.0ms) begin transaction
2318
+  (0.0ms) rollback transaction
2319
+  (0.0ms) begin transaction
2320
+ ----------------------------------------------------------------
2321
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
2322
+ ----------------------------------------------------------------
2323
+  (0.0ms) rollback transaction
2324
+  (0.0ms) begin transaction
2325
+ --------------------------------------------------------------
2326
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2327
+ --------------------------------------------------------------
2328
+  (0.0ms) rollback transaction
2329
+  (0.0ms) begin transaction
2330
+ --------------------------------------------------------------
2331
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2332
+ --------------------------------------------------------------
2333
+  (0.0ms) rollback transaction
2334
+  (0.1ms) begin transaction
321
2335
  ----------------------------------------------------------------------------
322
2336
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
323
2337
  ----------------------------------------------------------------------------
324
-  (0.1ms) rollback transaction
325
-  (0.0ms) begin transaction
2338
+  (0.0ms) rollback transaction
2339
+  (0.0ms) begin transaction
326
2340
  --------------------------------------------------------
327
2341
  ModelTest: test_to_hash_should_give_the_right_hash_value
328
2342
  --------------------------------------------------------
329
-  (0.0ms) rollback transaction
330
-  (0.1ms) begin transaction
331
- ------------------------------------------------------
332
- ModelTest: test_coords_should_give_the_values_in_array
333
- ------------------------------------------------------
334
-  (0.1ms) rollback transaction
335
-  (0.0ms) begin transaction
336
- -------------------------------------------------------------------
337
- ModelTest: test_google_map_coords_should_give_the_right_query_value
338
- -------------------------------------------------------------------
339
-  (0.0ms) rollback transaction
340
-  (0.0ms) begin transaction
2343
+  (0.0ms) rollback transaction
2344
+  (0.0ms) begin transaction
2345
+ -----------------------------------------------------------------------
2346
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2347
+ -----------------------------------------------------------------------
2348
+  (0.0ms) rollback transaction
2349
+  (0.0ms) begin transaction
341
2350
  -----------------------------------------------------------------------------
342
2351
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
343
2352
  -----------------------------------------------------------------------------
344
-  (0.1ms) rollback transaction
345
-  (0.0ms) begin transaction
346
- ----------------------------------------------------------------------------
347
- ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
348
- ----------------------------------------------------------------------------
349
-  (0.1ms) rollback transaction
350
-  (0.1ms) begin transaction
351
- --------------------------------------------------------
352
- ModelTest: test_to_hash_should_give_the_right_hash_value
353
- --------------------------------------------------------
354
-  (0.0ms) rollback transaction
355
-  (0.1ms) begin transaction
356
- ---------------------------------------------------------------------
357
- SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
358
- ---------------------------------------------------------------------
359
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:23 -0300
360
- Processing by Spyme::LocationsController#create as HTML
361
- Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
362
-  (0.1ms) rollback transaction
363
-  (0.1ms) begin transaction
2353
+  (0.0ms) rollback transaction
2354
+  (0.1ms) begin transaction
2355
+ -------------------------------------------------------------
2356
+ ModelTest: test_location_should_be_invalid_when_empty_session
2357
+ -------------------------------------------------------------
2358
+  (0.0ms) rollback transaction
2359
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2360
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2361
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2362
+  (0.0ms) SELECT sqlite_version(*)
2363
+  (12.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2364
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2365
+  (16.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2366
+  (11.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2367
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2368
+  (0.1ms) begin transaction
2369
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:37:38.092049"], ["updated_at", "2018-09-17 19:37:38.092049"]]
2370
+  (10.9ms) commit transaction
2371
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2372
+  (0.1ms) begin transaction
2373
+  (0.1ms) commit transaction
2374
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2375
+  (0.1ms) begin transaction
364
2376
  ---------------------------------------------------
365
2377
  SpymeTest: test_post_to_spyme_should_return_success
366
2378
  ---------------------------------------------------
367
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:23 -0300
2379
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:38 -0300
368
2380
  Processing by Spyme::LocationsController#create as HTML
369
2381
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
370
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
371
-  (0.1ms) rollback transaction
372
-  (0.1ms) begin transaction
2382
+ Completed 201 Created in 3077ms (ActiveRecord: 0.0ms)
2383
+  (0.1ms) rollback transaction
2384
+  (0.0ms) begin transaction
373
2385
  -------------------------------------------------
374
2386
  SpymeTest: test_post_to_spyme_should_store_coords
375
2387
  -------------------------------------------------
376
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:23 -0300
2388
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:41 -0300
377
2389
  Processing by Spyme::LocationsController#create as HTML
378
2390
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
379
- Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
380
-  (0.1ms) rollback transaction
381
-  (0.1ms) begin transaction
2391
+ Completed 201 Created in 2168ms (ActiveRecord: 0.0ms)
2392
+  (0.1ms) rollback transaction
2393
+  (0.0ms) begin transaction
382
2394
  ---------------------------------------------------------------------
383
2395
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
384
2396
  ---------------------------------------------------------------------
385
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:41 -0300
386
- Processing by Spyme::LocationsController#create as HTML
387
- Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
388
-  (0.1ms) rollback transaction
389
-  (0.1ms) begin transaction
390
- ---------------------------------------------------
391
- SpymeTest: test_post_to_spyme_should_return_success
392
- ---------------------------------------------------
393
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:41 -0300
394
- Processing by Spyme::LocationsController#create as HTML
395
- Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
396
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
397
-  (0.1ms) rollback transaction
398
-  (0.1ms) begin transaction
399
- -------------------------------------------------
400
- SpymeTest: test_post_to_spyme_should_store_coords
401
- -------------------------------------------------
402
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:41 -0300
2397
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:43 -0300
403
2398
  Processing by Spyme::LocationsController#create as HTML
404
- Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
405
- Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
406
-  (0.1ms) rollback transaction
407
-  (0.1ms) begin transaction
2399
+ Completed 400 Bad Request in 30539ms (ActiveRecord: 0.0ms)
2400
+  (0.1ms) rollback transaction
2401
+  (0.0ms) begin transaction
2402
+ ----------------------------------------------------------------
2403
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
2404
+ ----------------------------------------------------------------
2405
+  (0.0ms) rollback transaction
2406
+  (0.0ms) begin transaction
408
2407
  -------------------------------------------------------------
409
- ModelTest: test_as_a_string_should_give_the_right_query_value
2408
+ ModelTest: test_location_should_be_invalid_when_empty_session
410
2409
  -------------------------------------------------------------
411
-  (0.0ms) rollback transaction
412
-  (0.0ms) begin transaction
2410
+  (0.0ms) rollback transaction
2411
+  (0.0ms) begin transaction
413
2412
  ------------------------------------------------------
414
2413
  ModelTest: test_coords_should_give_the_values_in_array
415
2414
  ------------------------------------------------------
416
-  (0.0ms) rollback transaction
417
-  (0.0ms) begin transaction
2415
+  (0.0ms) rollback transaction
2416
+  (0.0ms) begin transaction
418
2417
  -----------------------------------------------------------------------------
419
2418
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
420
2419
  -----------------------------------------------------------------------------
421
-  (0.0ms) rollback transaction
422
-  (0.0ms) begin transaction
2420
+  (0.0ms) rollback transaction
2421
+  (0.0ms) begin transaction
423
2422
  ----------------------------------------------------------------------------
424
2423
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
425
2424
  ----------------------------------------------------------------------------
426
-  (0.1ms) rollback transaction
427
-  (0.0ms) begin transaction
2425
+  (0.0ms) rollback transaction
2426
+  (0.0ms) begin transaction
2427
+ --------------------------------------------------------
2428
+ ModelTest: test_to_hash_should_give_the_right_hash_value
2429
+ --------------------------------------------------------
2430
+  (0.0ms) rollback transaction
2431
+  (0.0ms) begin transaction
2432
+ -------------------------------------------------------------
2433
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2434
+ -------------------------------------------------------------
2435
+  (0.1ms) rollback transaction
2436
+  (0.0ms) begin transaction
2437
+ -----------------------------------------------------------------------
2438
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2439
+ -----------------------------------------------------------------------
2440
+  (0.0ms) rollback transaction
2441
+  (0.0ms) begin transaction
2442
+ --------------------------------------------------------------
2443
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2444
+ --------------------------------------------------------------
2445
+  (0.0ms) rollback transaction
2446
+  (0.0ms) begin transaction
2447
+ --------------------------------------------------------------
2448
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2449
+ --------------------------------------------------------------
2450
+  (0.0ms) rollback transaction
2451
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2452
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2453
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2454
+  (0.0ms) SELECT sqlite_version(*)
2455
+  (11.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2456
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2457
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2458
+  (12.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2459
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2460
+  (0.1ms) begin transaction
2461
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:38:30.336013"], ["updated_at", "2018-09-17 19:38:30.336013"]]
2462
+  (10.7ms) commit transaction
2463
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2464
+  (0.1ms) begin transaction
2465
+  (0.1ms) commit transaction
2466
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2467
+  (0.1ms) begin transaction
2468
+ -----------------------------------------------------------------------
2469
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2470
+ -----------------------------------------------------------------------
2471
+  (0.0ms) rollback transaction
2472
+  (0.0ms) begin transaction
2473
+ --------------------------------------------------------------
2474
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2475
+ --------------------------------------------------------------
2476
+  (0.0ms) rollback transaction
2477
+  (0.0ms) begin transaction
2478
+ ------------------------------------------------------
2479
+ ModelTest: test_coords_should_give_the_values_in_array
2480
+ ------------------------------------------------------
2481
+  (0.0ms) rollback transaction
2482
+  (0.1ms) begin transaction
2483
+ --------------------------------------------------------------
2484
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2485
+ --------------------------------------------------------------
2486
+  (0.0ms) rollback transaction
2487
+  (0.0ms) begin transaction
2488
+ -----------------------------------------------------------------------------
2489
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
2490
+ -----------------------------------------------------------------------------
2491
+  (0.0ms) rollback transaction
2492
+  (0.0ms) begin transaction
428
2493
  --------------------------------------------------------
429
2494
  ModelTest: test_to_hash_should_give_the_right_hash_value
430
2495
  --------------------------------------------------------
431
-  (0.0ms) rollback transaction
432
-  (0.1ms) begin transaction
2496
+  (0.0ms) rollback transaction
2497
+  (0.0ms) begin transaction
2498
+ -------------------------------------------------------------
2499
+ ModelTest: test_location_should_be_invalid_when_empty_session
2500
+ -------------------------------------------------------------
2501
+  (0.0ms) rollback transaction
2502
+  (0.0ms) begin transaction
2503
+ -------------------------------------------------------------
2504
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2505
+ -------------------------------------------------------------
2506
+  (0.0ms) rollback transaction
2507
+  (0.0ms) begin transaction
2508
+ ----------------------------------------------------------------------------
2509
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
2510
+ ----------------------------------------------------------------------------
2511
+  (0.0ms) rollback transaction
2512
+  (0.0ms) begin transaction
2513
+ ----------------------------------------------------------------
2514
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
2515
+ ----------------------------------------------------------------
2516
+  (0.0ms) rollback transaction
2517
+  (0.0ms) begin transaction
433
2518
  ---------------------------------------------------------------------
434
2519
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
435
2520
  ---------------------------------------------------------------------
436
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:33:49 -0300
2521
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:38:30 -0300
437
2522
  Processing by Spyme::LocationsController#create as HTML
438
- Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
439
-  (0.1ms) rollback transaction
440
-  (0.1ms) begin transaction
2523
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
2524
+ Completed 400 Bad Request in 6445ms (ActiveRecord: 0.0ms)
2525
+  (0.1ms) rollback transaction
2526
+  (0.0ms) begin transaction
441
2527
  ---------------------------------------------------
442
2528
  SpymeTest: test_post_to_spyme_should_return_success
443
2529
  ---------------------------------------------------
444
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:33:49 -0300
2530
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:38:36 -0300
2531
+ Processing by Spyme::LocationsController#create as HTML
2532
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
2533
+ Completed 201 Created in 797ms (ActiveRecord: 0.0ms)
2534
+  (0.1ms) rollback transaction
2535
+  (0.0ms) begin transaction
2536
+ -------------------------------------------------
2537
+ SpymeTest: test_post_to_spyme_should_store_coords
2538
+ -------------------------------------------------
2539
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:38:37 -0300
445
2540
  Processing by Spyme::LocationsController#create as HTML
446
2541
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
447
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
448
-  (0.1ms) rollback transaction
449
-  (0.1ms) begin transaction
2542
+ Completed 201 Created in 708ms (ActiveRecord: 0.0ms)
2543
+  (0.1ms) rollback transaction
2544
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2545
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2546
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2547
+  (0.0ms) SELECT sqlite_version(*)
2548
+  (12.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2549
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2550
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2551
+  (11.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2552
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2553
+  (0.1ms) begin transaction
2554
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:39:27.132207"], ["updated_at", "2018-09-17 19:39:27.132207"]]
2555
+  (10.4ms) commit transaction
2556
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2557
+  (0.1ms) begin transaction
2558
+  (0.1ms) commit transaction
2559
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2560
+  (0.0ms) begin transaction
450
2561
  -------------------------------------------------
451
2562
  SpymeTest: test_post_to_spyme_should_store_coords
452
2563
  -------------------------------------------------
453
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:33:49 -0300
2564
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:39:27 -0300
2565
+ Processing by Spyme::LocationsController#create as HTML
2566
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
2567
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
2568
+  (0.1ms) rollback transaction
2569
+  (0.0ms) begin transaction
2570
+ ---------------------------------------------------------------------
2571
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
2572
+ ---------------------------------------------------------------------
2573
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:39:27 -0300
2574
+ Processing by Spyme::LocationsController#create as HTML
2575
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
2576
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
2577
+  (0.0ms) rollback transaction
2578
+  (0.0ms) begin transaction
2579
+ ---------------------------------------------------
2580
+ SpymeTest: test_post_to_spyme_should_return_success
2581
+ ---------------------------------------------------
2582
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:39:27 -0300
454
2583
  Processing by Spyme::LocationsController#create as HTML
455
2584
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
456
2585
  Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
457
-  (0.1ms) rollback transaction
458
-  (0.1ms) begin transaction
2586
+  (0.0ms) rollback transaction
2587
+  (0.0ms) begin transaction
2588
+ -----------------------------------------------------------------------------
2589
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
2590
+ -----------------------------------------------------------------------------
2591
+  (0.0ms) rollback transaction
2592
+  (0.0ms) begin transaction
2593
+ --------------------------------------------------------------
2594
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2595
+ --------------------------------------------------------------
2596
+  (0.1ms) rollback transaction
2597
+  (0.1ms) begin transaction
2598
+ ----------------------------------------------------------------------------
2599
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
2600
+ ----------------------------------------------------------------------------
2601
+  (0.1ms) rollback transaction
2602
+  (0.0ms) begin transaction
2603
+ --------------------------------------------------------------
2604
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2605
+ --------------------------------------------------------------
2606
+  (0.0ms) rollback transaction
2607
+  (0.0ms) begin transaction
2608
+ -------------------------------------------------------------
2609
+ ModelTest: test_location_should_be_invalid_when_empty_session
2610
+ -------------------------------------------------------------
2611
+  (0.1ms) rollback transaction
2612
+  (0.0ms) begin transaction
459
2613
  -------------------------------------------------------------
460
2614
  ModelTest: test_as_a_string_should_give_the_right_query_value
461
2615
  -------------------------------------------------------------
462
-  (0.1ms) rollback transaction
463
-  (0.0ms) begin transaction
2616
+  (0.0ms) rollback transaction
2617
+  (0.0ms) begin transaction
2618
+ --------------------------------------------------------
2619
+ ModelTest: test_to_hash_should_give_the_right_hash_value
2620
+ --------------------------------------------------------
2621
+  (0.0ms) rollback transaction
2622
+  (0.0ms) begin transaction
464
2623
  ------------------------------------------------------
465
2624
  ModelTest: test_coords_should_give_the_values_in_array
466
2625
  ------------------------------------------------------
467
-  (0.0ms) rollback transaction
468
-  (0.0ms) begin transaction
469
- -----------------------------------------------------------------------------
470
- ModelTest: test_initialize_from_session_should_give_correct_number_attributes
471
- -----------------------------------------------------------------------------
472
-  (0.0ms) rollback transaction
473
-  (0.0ms) begin transaction
2626
+  (0.0ms) rollback transaction
2627
+  (0.0ms) begin transaction
2628
+ -----------------------------------------------------------------------
2629
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2630
+ -----------------------------------------------------------------------
2631
+  (0.0ms) rollback transaction
2632
+  (0.0ms) begin transaction
474
2633
  ----------------------------------------------------------------
475
2634
  ModelTest: test_location_should_be_invalid_when_empty_attributes
476
2635
  ----------------------------------------------------------------
477
-  (0.1ms) rollback transaction
478
-  (0.0ms) begin transaction
2636
+  (0.0ms) rollback transaction
2637
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2638
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2639
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2640
+  (0.0ms) SELECT sqlite_version(*)
2641
+  (16.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2642
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2643
+  (15.4ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2644
+  (10.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2645
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2646
+  (0.1ms) begin transaction
2647
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:40:10.876855"], ["updated_at", "2018-09-17 19:40:10.876855"]]
2648
+  (10.1ms) commit transaction
2649
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2650
+  (0.1ms) begin transaction
2651
+  (0.1ms) commit transaction
2652
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2653
+  (0.0ms) begin transaction
2654
+ --------------------------------------------------------------
2655
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2656
+ --------------------------------------------------------------
2657
+  (0.0ms) rollback transaction
2658
+  (0.0ms) begin transaction
2659
+ ------------------------------------------------------
2660
+ ModelTest: test_coords_should_give_the_values_in_array
2661
+ ------------------------------------------------------
2662
+  (0.0ms) rollback transaction
2663
+  (0.0ms) begin transaction
2664
+ -----------------------------------------------------------------------
2665
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2666
+ -----------------------------------------------------------------------
2667
+  (0.0ms) rollback transaction
2668
+  (0.0ms) begin transaction
2669
+ --------------------------------------------------------------
2670
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2671
+ --------------------------------------------------------------
2672
+  (0.0ms) rollback transaction
2673
+  (0.0ms) begin transaction
479
2674
  ----------------------------------------------------------------------------
480
2675
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
481
2676
  ----------------------------------------------------------------------------
482
-  (0.0ms) rollback transaction
483
-  (0.0ms) begin transaction
2677
+  (0.0ms) rollback transaction
2678
+  (0.0ms) begin transaction
484
2679
  --------------------------------------------------------
485
2680
  ModelTest: test_to_hash_should_give_the_right_hash_value
486
2681
  --------------------------------------------------------
487
-  (0.0ms) rollback transaction
488
-  (0.1ms) begin transaction
2682
+  (0.0ms) rollback transaction
2683
+  (0.0ms) begin transaction
2684
+ ----------------------------------------------------------------
2685
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
2686
+ ----------------------------------------------------------------
2687
+  (0.0ms) rollback transaction
2688
+  (0.0ms) begin transaction
2689
+ -------------------------------------------------------------
2690
+ ModelTest: test_location_should_be_invalid_when_empty_session
2691
+ -------------------------------------------------------------
2692
+  (0.0ms) rollback transaction
2693
+  (0.0ms) begin transaction
2694
+ -------------------------------------------------------------
2695
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2696
+ -------------------------------------------------------------
2697
+  (0.0ms) rollback transaction
2698
+  (0.0ms) begin transaction
2699
+ -----------------------------------------------------------------------------
2700
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
2701
+ -----------------------------------------------------------------------------
2702
+  (0.0ms) rollback transaction
2703
+  (0.0ms) begin transaction
489
2704
  ---------------------------------------------------------------------
490
2705
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
491
2706
  ---------------------------------------------------------------------
492
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:34:39 -0300
2707
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:40:10 -0300
493
2708
  Processing by Spyme::LocationsController#create as HTML
494
- Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
495
-  (0.1ms) rollback transaction
496
-  (0.1ms) begin transaction
2709
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
2710
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
2711
+  (0.1ms) rollback transaction
2712
+  (0.0ms) begin transaction
497
2713
  ---------------------------------------------------
498
2714
  SpymeTest: test_post_to_spyme_should_return_success
499
2715
  ---------------------------------------------------
500
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:34:39 -0300
2716
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:40:10 -0300
501
2717
  Processing by Spyme::LocationsController#create as HTML
502
2718
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
503
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
504
-  (0.1ms) rollback transaction
505
-  (0.1ms) begin transaction
2719
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
2720
+  (0.0ms) rollback transaction
2721
+  (0.0ms) begin transaction
506
2722
  -------------------------------------------------
507
2723
  SpymeTest: test_post_to_spyme_should_store_coords
508
2724
  -------------------------------------------------
509
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:34:39 -0300
2725
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:40:10 -0300
510
2726
  Processing by Spyme::LocationsController#create as HTML
511
2727
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
512
2728
  Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
513
-  (0.1ms) rollback transaction
514
-  (0.1ms) begin transaction
515
- -------------------------------------------------------------
516
- ModelTest: test_as_a_string_should_give_the_right_query_value
517
- -------------------------------------------------------------
518
-  (0.0ms) rollback transaction
519
-  (0.0ms) begin transaction
2729
+  (0.0ms) rollback transaction
2730
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2731
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2732
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2733
+  (0.0ms) SELECT sqlite_version(*)
2734
+  (10.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2735
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2736
+  (15.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2737
+  (11.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2738
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2739
+  (0.1ms) begin transaction
2740
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 19:53:38.894445"], ["updated_at", "2018-09-17 19:53:38.894445"]]
2741
+  (9.7ms) commit transaction
2742
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2743
+  (0.1ms) begin transaction
2744
+  (0.1ms) commit transaction
2745
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2746
+  (0.0ms) begin transaction
520
2747
  ------------------------------------------------------
521
2748
  ModelTest: test_coords_should_give_the_values_in_array
522
2749
  ------------------------------------------------------
523
-  (0.0ms) rollback transaction
524
-  (0.0ms) begin transaction
2750
+  (0.0ms) rollback transaction
2751
+  (0.0ms) begin transaction
2752
+ -------------------------------------------------------------
2753
+ ModelTest: test_location_should_be_invalid_when_empty_session
2754
+ -------------------------------------------------------------
2755
+  (0.1ms) rollback transaction
2756
+  (0.0ms) begin transaction
2757
+ --------------------------------------------------------
2758
+ ModelTest: test_to_hash_should_give_the_right_hash_value
2759
+ --------------------------------------------------------
2760
+  (0.0ms) rollback transaction
2761
+  (0.0ms) begin transaction
2762
+ --------------------------------------------------------------
2763
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2764
+ --------------------------------------------------------------
2765
+  (0.0ms) rollback transaction
2766
+  (0.0ms) begin transaction
525
2767
  -----------------------------------------------------------------------------
526
2768
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
527
2769
  -----------------------------------------------------------------------------
528
-  (0.0ms) rollback transaction
529
-  (0.0ms) begin transaction
2770
+  (0.0ms) rollback transaction
2771
+  (0.0ms) begin transaction
2772
+ -------------------------------------------------------------
2773
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2774
+ -------------------------------------------------------------
2775
+  (0.0ms) rollback transaction
2776
+  (0.0ms) begin transaction
2777
+ -----------------------------------------------------------------------
2778
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2779
+ -----------------------------------------------------------------------
2780
+  (0.0ms) rollback transaction
2781
+  (0.0ms) begin transaction
530
2782
  ----------------------------------------------------------------
531
2783
  ModelTest: test_location_should_be_invalid_when_empty_attributes
532
2784
  ----------------------------------------------------------------
533
-  (0.1ms) rollback transaction
534
-  (0.0ms) begin transaction
2785
+  (0.0ms) rollback transaction
2786
+  (0.0ms) begin transaction
535
2787
  ----------------------------------------------------------------------------
536
2788
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
537
2789
  ----------------------------------------------------------------------------
538
-  (0.0ms) rollback transaction
539
-  (0.0ms) begin transaction
540
- -------------------------------------------------------------
541
- ModelTest: test_location_should_be_invalid_when_empty_session
542
- -------------------------------------------------------------
543
-  (0.0ms) rollback transaction
544
-  (0.0ms) begin transaction
545
- --------------------------------------------------------
546
- ModelTest: test_to_hash_should_give_the_right_hash_value
547
- --------------------------------------------------------
548
-  (0.0ms) rollback transaction
549
-  (0.1ms) begin transaction
2790
+  (0.0ms) rollback transaction
2791
+  (0.0ms) begin transaction
2792
+ --------------------------------------------------------------
2793
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2794
+ --------------------------------------------------------------
2795
+  (0.0ms) rollback transaction
2796
+  (0.0ms) begin transaction
550
2797
  ---------------------------------------------------------------------
551
2798
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
552
2799
  ---------------------------------------------------------------------
553
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:35:18 -0300
2800
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:53:39 -0300
554
2801
  Processing by Spyme::LocationsController#create as HTML
555
- Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
556
-  (0.1ms) rollback transaction
557
-  (0.1ms) begin transaction
2802
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
2803
+  (0.1ms) rollback transaction
2804
+  (0.0ms) begin transaction
2805
+ ---------------------------------------------------
2806
+ SpymeTest: test_post_to_spyme_should_return_success
2807
+ ---------------------------------------------------
2808
+  (0.0ms) rollback transaction
2809
+  (0.0ms) begin transaction
2810
+ -------------------------------------------------
2811
+ SpymeTest: test_post_to_spyme_should_store_coords
2812
+ -------------------------------------------------
2813
+  (0.0ms) rollback transaction
2814
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2815
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2816
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2817
+  (0.1ms) SELECT sqlite_version(*)
2818
+  (12.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2819
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2820
+  (16.4ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2821
+  (12.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2822
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2823
+  (0.0ms) begin transaction
2824
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 20:01:14.181380"], ["updated_at", "2018-09-17 20:01:14.181380"]]
2825
+  (10.6ms) commit transaction
2826
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2827
+  (0.0ms) begin transaction
2828
+  (0.0ms) commit transaction
2829
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2830
+  (0.0ms) begin transaction
558
2831
  ---------------------------------------------------
559
2832
  SpymeTest: test_post_to_spyme_should_return_success
560
2833
  ---------------------------------------------------
561
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:35:18 -0300
2834
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:14 -0300
562
2835
  Processing by Spyme::LocationsController#create as HTML
563
2836
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
564
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
565
-  (0.1ms) rollback transaction
566
-  (0.1ms) begin transaction
2837
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
2838
+  (0.1ms) rollback transaction
2839
+  (0.0ms) begin transaction
2840
+ ---------------------------------------------------------------------
2841
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
2842
+ ---------------------------------------------------------------------
2843
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:14 -0300
2844
+ Processing by Spyme::LocationsController#create as HTML
2845
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
2846
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
2847
+  (0.1ms) rollback transaction
2848
+  (0.1ms) begin transaction
567
2849
  -------------------------------------------------
568
2850
  SpymeTest: test_post_to_spyme_should_store_coords
569
2851
  -------------------------------------------------
570
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:35:18 -0300
2852
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:14 -0300
571
2853
  Processing by Spyme::LocationsController#create as HTML
572
2854
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
573
2855
  Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
574
-  (0.1ms) rollback transaction
575
-  (0.1ms) begin transaction
576
- -------------------------------------------------------------
577
- ModelTest: test_as_a_string_should_give_the_right_query_value
578
- -------------------------------------------------------------
579
-  (0.0ms) rollback transaction
580
-  (0.0ms) begin transaction
581
- ------------------------------------------------------
582
- ModelTest: test_coords_should_give_the_values_in_array
583
- ------------------------------------------------------
584
-  (0.0ms) rollback transaction
585
-  (0.0ms) begin transaction
2856
+  (0.0ms) rollback transaction
2857
+  (0.0ms) begin transaction
2858
+ -----------------------------------------------------------------------
2859
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2860
+ -----------------------------------------------------------------------
2861
+  (0.0ms) rollback transaction
2862
+  (0.1ms) begin transaction
2863
+ --------------------------------------------------------
2864
+ ModelTest: test_to_hash_should_give_the_right_hash_value
2865
+ --------------------------------------------------------
2866
+  (0.0ms) rollback transaction
2867
+  (0.0ms) begin transaction
586
2868
  -----------------------------------------------------------------------------
587
2869
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
588
2870
  -----------------------------------------------------------------------------
589
-  (0.0ms) rollback transaction
590
-  (0.0ms) begin transaction
2871
+  (0.0ms) rollback transaction
2872
+  (0.1ms) begin transaction
2873
+ ------------------------------------------------------
2874
+ ModelTest: test_coords_should_give_the_values_in_array
2875
+ ------------------------------------------------------
2876
+  (0.1ms) rollback transaction
2877
+  (0.1ms) begin transaction
2878
+ --------------------------------------------------------------
2879
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2880
+ --------------------------------------------------------------
2881
+  (0.0ms) rollback transaction
2882
+  (0.1ms) begin transaction
2883
+ --------------------------------------------------------------
2884
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2885
+ --------------------------------------------------------------
2886
+  (0.2ms) rollback transaction
2887
+  (0.1ms) begin transaction
2888
+ -------------------------------------------------------------
2889
+ ModelTest: test_as_a_string_should_give_the_right_query_value
2890
+ -------------------------------------------------------------
2891
+  (0.1ms) rollback transaction
2892
+  (0.1ms) begin transaction
591
2893
  ----------------------------------------------------------------
592
2894
  ModelTest: test_location_should_be_invalid_when_empty_attributes
593
2895
  ----------------------------------------------------------------
594
-  (0.1ms) rollback transaction
595
-  (0.0ms) begin transaction
596
- ----------------------------------------------------------------------------
597
- ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
598
- ----------------------------------------------------------------------------
599
-  (0.1ms) rollback transaction
600
-  (0.0ms) begin transaction
2896
+  (0.0ms) rollback transaction
2897
+  (0.1ms) begin transaction
601
2898
  -------------------------------------------------------------
602
2899
  ModelTest: test_location_should_be_invalid_when_empty_session
603
2900
  -------------------------------------------------------------
604
-  (0.0ms) rollback transaction
605
-  (0.0ms) begin transaction
2901
+  (0.1ms) rollback transaction
2902
+  (0.1ms) begin transaction
2903
+ ----------------------------------------------------------------------------
2904
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
2905
+ ----------------------------------------------------------------------------
2906
+  (0.0ms) rollback transaction
2907
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2908
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2909
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2910
+  (0.0ms) SELECT sqlite_version(*)
2911
+  (12.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2912
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2913
+  (16.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
2914
+  (11.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2915
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2916
+  (0.0ms) begin transaction
2917
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 20:01:21.731543"], ["updated_at", "2018-09-17 20:01:21.731543"]]
2918
+  (11.2ms) commit transaction
2919
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2920
+  (0.0ms) begin transaction
2921
+  (0.0ms) commit transaction
2922
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2923
+  (0.0ms) begin transaction
2924
+ -------------------------------------------------
2925
+ SpymeTest: test_post_to_spyme_should_store_coords
2926
+ -------------------------------------------------
2927
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:21 -0300
2928
+ Processing by Spyme::LocationsController#create as HTML
2929
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
2930
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
2931
+  (0.1ms) rollback transaction
2932
+  (0.0ms) begin transaction
2933
+ ---------------------------------------------------------------------
2934
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
2935
+ ---------------------------------------------------------------------
2936
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:21 -0300
2937
+ Processing by Spyme::LocationsController#create as HTML
2938
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
2939
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
2940
+  (0.0ms) rollback transaction
2941
+  (0.0ms) begin transaction
2942
+ ---------------------------------------------------
2943
+ SpymeTest: test_post_to_spyme_should_return_success
2944
+ ---------------------------------------------------
2945
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:21 -0300
2946
+ Processing by Spyme::LocationsController#create as HTML
2947
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
2948
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
2949
+  (0.0ms) rollback transaction
2950
+  (0.0ms) begin transaction
606
2951
  --------------------------------------------------------
607
2952
  ModelTest: test_to_hash_should_give_the_right_hash_value
608
2953
  --------------------------------------------------------
609
-  (0.0ms) rollback transaction
610
-  (0.1ms) begin transaction
611
- -------------------------------------------------------------
612
- ModelTest: test_as_a_string_should_give_the_right_query_value
613
- -------------------------------------------------------------
614
-  (0.2ms) rollback transaction
615
-  (0.1ms) begin transaction
616
- ------------------------------------------------------
617
- ModelTest: test_coords_should_give_the_values_in_array
618
- ------------------------------------------------------
619
-  (0.1ms) rollback transaction
620
-  (0.1ms) begin transaction
2954
+  (0.0ms) rollback transaction
2955
+  (0.0ms) begin transaction
621
2956
  -----------------------------------------------------------------------------
622
2957
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
623
2958
  -----------------------------------------------------------------------------
624
-  (0.2ms) rollback transaction
625
-  (0.1ms) begin transaction
2959
+  (0.0ms) rollback transaction
2960
+  (0.0ms) begin transaction
2961
+ ------------------------------------------------------
2962
+ ModelTest: test_coords_should_give_the_values_in_array
2963
+ ------------------------------------------------------
2964
+  (0.0ms) rollback transaction
2965
+  (0.0ms) begin transaction
626
2966
  ----------------------------------------------------------------
627
2967
  ModelTest: test_location_should_be_invalid_when_empty_attributes
628
2968
  ----------------------------------------------------------------
629
-  (0.1ms) rollback transaction
630
-  (0.1ms) begin transaction
2969
+  (0.0ms) rollback transaction
2970
+  (0.0ms) begin transaction
2971
+ -------------------------------------------------------------
2972
+ ModelTest: test_location_should_be_invalid_when_empty_session
2973
+ -------------------------------------------------------------
2974
+  (0.1ms) rollback transaction
2975
+  (0.0ms) begin transaction
2976
+ -----------------------------------------------------------------------
2977
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
2978
+ -----------------------------------------------------------------------
2979
+  (0.1ms) rollback transaction
2980
+  (0.0ms) begin transaction
631
2981
  ----------------------------------------------------------------------------
632
2982
  ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
633
2983
  ----------------------------------------------------------------------------
634
-  (0.1ms) rollback transaction
635
-  (0.1ms) begin transaction
2984
+  (0.0ms) rollback transaction
2985
+  (0.0ms) begin transaction
636
2986
  -------------------------------------------------------------
637
- ModelTest: test_location_should_be_invalid_when_empty_session
2987
+ ModelTest: test_as_a_string_should_give_the_right_query_value
638
2988
  -------------------------------------------------------------
639
-  (0.1ms) rollback transaction
640
-  (0.1ms) begin transaction
641
- --------------------------------------------------------
642
- ModelTest: test_to_hash_should_give_the_right_hash_value
643
- --------------------------------------------------------
644
-  (0.0ms) rollback transaction
645
-  (0.1ms) begin transaction
646
- ---------------------------------------------------------------------
647
- SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
648
- ---------------------------------------------------------------------
649
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:38:10 -0300
650
- Processing by Spyme::LocationsController#create as HTML
651
- Completed 400 Bad Request in 2ms (ActiveRecord: 0.0ms)
652
-  (0.1ms) rollback transaction
653
-  (0.1ms) begin transaction
654
- ---------------------------------------------------
655
- SpymeTest: test_post_to_spyme_should_return_success
656
- ---------------------------------------------------
657
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:38:10 -0300
658
- Processing by Spyme::LocationsController#create as HTML
659
- Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
660
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
661
-  (0.1ms) rollback transaction
662
-  (0.1ms) begin transaction
663
- -------------------------------------------------
664
- SpymeTest: test_post_to_spyme_should_store_coords
665
- -------------------------------------------------
666
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:38:10 -0300
667
- Processing by Spyme::LocationsController#create as HTML
668
- Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
669
- Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
670
-  (0.1ms) rollback transaction
671
-  (0.1ms) begin transaction
2989
+  (0.0ms) rollback transaction
2990
+  (0.0ms) begin transaction
2991
+ --------------------------------------------------------------
2992
+ ModelTest: test_location_should_be_valid_at_negative_boundries
2993
+ --------------------------------------------------------------
2994
+  (0.0ms) rollback transaction
2995
+  (0.0ms) begin transaction
2996
+ --------------------------------------------------------------
2997
+ ModelTest: test_location_should_be_valid_at_positive_boundries
2998
+ --------------------------------------------------------------
2999
+  (0.0ms) rollback transaction
3000
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3001
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3002
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3003
+  (0.1ms) SELECT sqlite_version(*)
3004
+  (12.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3005
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3006
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3007
+  (10.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3008
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3009
+  (0.0ms) begin transaction
3010
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-09-17 20:03:37.715342"], ["updated_at", "2018-09-17 20:03:37.715342"]]
3011
+  (11.9ms) commit transaction
3012
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3013
+  (0.0ms) begin transaction
3014
+  (0.0ms) commit transaction
3015
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3016
+  (0.1ms) begin transaction
672
3017
  ---------------------------------------------------------------------
673
3018
  SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
674
3019
  ---------------------------------------------------------------------
675
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 18:16:16 -0300
3020
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:03:37 -0300
676
3021
  Processing by Spyme::LocationsController#create as HTML
677
- Completed 400 Bad Request in 8ms (ActiveRecord: 0.0ms)
678
-  (0.1ms) rollback transaction
679
-  (0.1ms) begin transaction
3022
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3023
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
3024
+  (0.1ms) rollback transaction
3025
+  (0.0ms) begin transaction
680
3026
  ---------------------------------------------------
681
3027
  SpymeTest: test_post_to_spyme_should_return_success
682
3028
  ---------------------------------------------------
683
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 18:16:16 -0300
3029
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:03:37 -0300
684
3030
  Processing by Spyme::LocationsController#create as HTML
685
3031
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
686
- Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
687
-  (0.1ms) rollback transaction
688
-  (0.1ms) begin transaction
3032
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3033
+  (0.0ms) rollback transaction
3034
+  (0.0ms) begin transaction
689
3035
  -------------------------------------------------
690
3036
  SpymeTest: test_post_to_spyme_should_store_coords
691
3037
  -------------------------------------------------
692
- Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 18:16:16 -0300
3038
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:03:37 -0300
693
3039
  Processing by Spyme::LocationsController#create as HTML
694
3040
  Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
695
- Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
696
-  (0.1ms) rollback transaction
697
-  (0.1ms) begin transaction
3041
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3042
+  (0.0ms) rollback transaction
3043
+  (0.0ms) begin transaction
698
3044
  -------------------------------------------------------------
699
3045
  ModelTest: test_as_a_string_should_give_the_right_query_value
700
3046
  -------------------------------------------------------------
701
-  (0.0ms) rollback transaction
702
-  (0.0ms) begin transaction
3047
+  (0.0ms) rollback transaction
3048
+  (0.0ms) begin transaction
3049
+ ----------------------------------------------------------------------------
3050
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3051
+ ----------------------------------------------------------------------------
3052
+  (0.0ms) rollback transaction
3053
+  (0.0ms) begin transaction
3054
+ ----------------------------------------------------------------
3055
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3056
+ ----------------------------------------------------------------
3057
+  (0.0ms) rollback transaction
3058
+  (0.1ms) begin transaction
3059
+ --------------------------------------------------------------
3060
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3061
+ --------------------------------------------------------------
3062
+  (0.0ms) rollback transaction
3063
+  (0.0ms) begin transaction
703
3064
  ------------------------------------------------------
704
3065
  ModelTest: test_coords_should_give_the_values_in_array
705
3066
  ------------------------------------------------------
706
-  (0.0ms) rollback transaction
707
-  (0.0ms) begin transaction
3067
+  (0.0ms) rollback transaction
3068
+  (0.0ms) begin transaction
3069
+ -----------------------------------------------------------------------
3070
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3071
+ -----------------------------------------------------------------------
3072
+  (0.0ms) rollback transaction
3073
+  (0.1ms) begin transaction
3074
+ --------------------------------------------------------------
3075
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3076
+ --------------------------------------------------------------
3077
+  (0.0ms) rollback transaction
3078
+  (0.1ms) begin transaction
708
3079
  -----------------------------------------------------------------------------
709
3080
  ModelTest: test_initialize_from_session_should_give_correct_number_attributes
710
3081
  -----------------------------------------------------------------------------
711
-  (0.0ms) rollback transaction
712
-  (0.0ms) begin transaction
713
- ----------------------------------------------------------------
714
- ModelTest: test_location_should_be_invalid_when_empty_attributes
715
- ----------------------------------------------------------------
716
-  (0.1ms) rollback transaction
717
-  (0.0ms) begin transaction
718
- ----------------------------------------------------------------------------
719
- ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
720
- ----------------------------------------------------------------------------
721
-  (0.1ms) rollback transaction
722
-  (0.1ms) begin transaction
3082
+  (0.0ms) rollback transaction
3083
+  (0.0ms) begin transaction
723
3084
  -------------------------------------------------------------
724
3085
  ModelTest: test_location_should_be_invalid_when_empty_session
725
3086
  -------------------------------------------------------------
726
-  (0.1ms) rollback transaction
727
-  (0.1ms) begin transaction
3087
+  (0.0ms) rollback transaction
3088
+  (0.0ms) begin transaction
728
3089
  --------------------------------------------------------
729
3090
  ModelTest: test_to_hash_should_give_the_right_hash_value
730
3091
  --------------------------------------------------------
731
-  (0.1ms) rollback transaction
3092
+  (0.0ms) rollback transaction