spyme 0.1.1 → 0.1.2

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
2
  SHA256:
3
- metadata.gz: d62bbbd73d3c056a462c280ce53b520edd3e4772e2694ef6e76795f1c2438fc9
4
- data.tar.gz: 229b0a9259be177b264873c28aa4b0573bb9d6e3ee4c922d81f16fbe08f11e86
3
+ metadata.gz: 7d32f9afd69c6bc36155a89242826cc3b32e6f47036481b8741ad52f52d2eb72
4
+ data.tar.gz: 6d8a37e99c7fee35fad47be4391d2bbaaff96c10e9937ff2b374f34f49c0cb13
5
5
  SHA512:
6
- metadata.gz: 7241eb02b65df19c41bc74ba32b2be0886fd0660944a67a1395c62565495075f762b7ec5c2c4fb850b8cc09bc3804a7dc56a0ccb9ebc3189b04ffed4eb7530b9
7
- data.tar.gz: 1831a383da43674bea6666e470eacb4237608d6e0be3fd07e9529b10b473587f879e3933a4a993b25d4b6b915a62216bd9adfc89baaf6fc7ac37c24e183813c6
6
+ metadata.gz: 401194b3114203e2ecf997da8de8a986f40a5467d3daddd249e2b405dfd1fd1c72a2271cffebe4175de2823af8b0b5f947774025819d5cadfcfc193a68af83f0
7
+ data.tar.gz: fa4f905afdc3551126e2531c97e4925d16e17108233250b31c663fbc427cec53d50f67984ecab0d17be1aef4e490b1a1e73b17d1dd66d308f9a677bbb3b74a72
@@ -3,7 +3,7 @@ module Spyme
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- helper_method :current_position
6
+ helper_method :current_location
7
7
  end
8
8
 
9
9
  def current_location
@@ -1,3 +1,3 @@
1
1
  module Spyme
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -0,0 +1,14 @@
1
+ require 'test_helper'
2
+
3
+ class ApplicationControllerTest < ActionController::TestCase
4
+ test "current_location should return a location object" do
5
+ assert_equal Spyme::Model::Location, @controller.view_context.current_location.class
6
+ end
7
+
8
+ test "current_location should return the location" do
9
+ session[:latitude] = '54.34212'
10
+ session[:longitude] = '32.14424'
11
+
12
+ assert_equal [54.34212, 32.14424], @controller.view_context.current_location.coords
13
+ end
14
+ end
Binary file
@@ -3090,3 +3090,1122 @@ ModelTest: test_location_should_be_invalid_when_empty_session
3090
3090
  ModelTest: test_to_hash_should_give_the_right_hash_value
3091
3091
  --------------------------------------------------------
3092
3092
   (0.0ms) rollback transaction
3093
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3094
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3095
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3096
+  (0.0ms) SELECT sqlite_version(*)
3097
+  (12.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3098
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3099
+  (16.2ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3100
+  (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)
3101
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3102
+  (0.1ms) begin transaction
3103
+ 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-18 14:32:10.150160"], ["updated_at", "2018-09-18 14:32:10.150160"]]
3104
+  (10.1ms) commit transaction
3105
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3106
+  (0.1ms) begin transaction
3107
+  (0.1ms) commit transaction
3108
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3109
+  (0.1ms) begin transaction
3110
+ ----------------------------------------------------------------
3111
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3112
+ ----------------------------------------------------------------
3113
+  (0.1ms) rollback transaction
3114
+  (0.0ms) begin transaction
3115
+ ----------------------------------------------------------------------------
3116
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3117
+ ----------------------------------------------------------------------------
3118
+  (0.0ms) rollback transaction
3119
+  (0.0ms) begin transaction
3120
+ -------------------------------------------------------------
3121
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3122
+ -------------------------------------------------------------
3123
+  (0.0ms) rollback transaction
3124
+  (0.0ms) begin transaction
3125
+ -----------------------------------------------------------------------------
3126
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3127
+ -----------------------------------------------------------------------------
3128
+  (0.0ms) rollback transaction
3129
+  (0.0ms) begin transaction
3130
+ -----------------------------------------------------------------------
3131
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3132
+ -----------------------------------------------------------------------
3133
+  (0.0ms) rollback transaction
3134
+  (0.0ms) begin transaction
3135
+ --------------------------------------------------------------
3136
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3137
+ --------------------------------------------------------------
3138
+  (0.0ms) rollback transaction
3139
+  (0.0ms) begin transaction
3140
+ --------------------------------------------------------
3141
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3142
+ --------------------------------------------------------
3143
+  (0.0ms) rollback transaction
3144
+  (0.0ms) begin transaction
3145
+ ------------------------------------------------------
3146
+ ModelTest: test_coords_should_give_the_values_in_array
3147
+ ------------------------------------------------------
3148
+  (0.0ms) rollback transaction
3149
+  (0.0ms) begin transaction
3150
+ -------------------------------------------------------------
3151
+ ModelTest: test_location_should_be_invalid_when_empty_session
3152
+ -------------------------------------------------------------
3153
+  (0.0ms) rollback transaction
3154
+  (0.0ms) begin transaction
3155
+ --------------------------------------------------------------
3156
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3157
+ --------------------------------------------------------------
3158
+  (0.0ms) rollback transaction
3159
+  (0.0ms) begin transaction
3160
+ ---------------------------------------------------------------------
3161
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3162
+ ---------------------------------------------------------------------
3163
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:32:10 -0300
3164
+ Processing by Spyme::LocationsController#create as HTML
3165
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3166
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
3167
+  (0.1ms) rollback transaction
3168
+  (0.0ms) begin transaction
3169
+ ---------------------------------------------------
3170
+ SpymeTest: test_post_to_spyme_should_return_success
3171
+ ---------------------------------------------------
3172
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:32:10 -0300
3173
+ Processing by Spyme::LocationsController#create as HTML
3174
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3175
+ Completed 201 Created in 2ms (ActiveRecord: 0.0ms)
3176
+  (0.0ms) rollback transaction
3177
+  (0.0ms) begin transaction
3178
+ -------------------------------------------------
3179
+ SpymeTest: test_post_to_spyme_should_store_coords
3180
+ -------------------------------------------------
3181
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:32:10 -0300
3182
+ Processing by Spyme::LocationsController#create as HTML
3183
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3184
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3185
+  (0.0ms) rollback transaction
3186
+  (0.0ms) begin transaction
3187
+ -----------------------------------------------------------------------
3188
+ ApplicationHelperTest: test_current_location_should_return_the_location
3189
+ -----------------------------------------------------------------------
3190
+  (0.0ms) rollback transaction
3191
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3192
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3193
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3194
+  (0.0ms) SELECT sqlite_version(*)
3195
+  (11.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3196
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3197
+  (15.7ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3198
+  (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)
3199
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3200
+  (0.0ms) begin transaction
3201
+ 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-18 14:32:30.716955"], ["updated_at", "2018-09-18 14:32:30.716955"]]
3202
+  (12.2ms) commit transaction
3203
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3204
+  (0.0ms) begin transaction
3205
+  (0.0ms) commit transaction
3206
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3207
+  (0.1ms) begin transaction
3208
+ -------------------------------------------------------------
3209
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3210
+ -------------------------------------------------------------
3211
+  (0.0ms) rollback transaction
3212
+  (0.0ms) begin transaction
3213
+ ------------------------------------------------------
3214
+ ModelTest: test_coords_should_give_the_values_in_array
3215
+ ------------------------------------------------------
3216
+  (0.0ms) rollback transaction
3217
+  (0.0ms) begin transaction
3218
+ -------------------------------------------------------------
3219
+ ModelTest: test_location_should_be_invalid_when_empty_session
3220
+ -------------------------------------------------------------
3221
+  (0.0ms) rollback transaction
3222
+  (0.0ms) begin transaction
3223
+ ----------------------------------------------------------------------------
3224
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3225
+ ----------------------------------------------------------------------------
3226
+  (0.0ms) rollback transaction
3227
+  (0.0ms) begin transaction
3228
+ --------------------------------------------------------------
3229
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3230
+ --------------------------------------------------------------
3231
+  (0.0ms) rollback transaction
3232
+  (0.0ms) begin transaction
3233
+ --------------------------------------------------------------
3234
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3235
+ --------------------------------------------------------------
3236
+  (0.0ms) rollback transaction
3237
+  (0.0ms) begin transaction
3238
+ --------------------------------------------------------
3239
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3240
+ --------------------------------------------------------
3241
+  (0.0ms) rollback transaction
3242
+  (0.0ms) begin transaction
3243
+ -----------------------------------------------------------------------------
3244
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3245
+ -----------------------------------------------------------------------------
3246
+  (0.0ms) rollback transaction
3247
+  (0.0ms) begin transaction
3248
+ -----------------------------------------------------------------------
3249
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3250
+ -----------------------------------------------------------------------
3251
+  (0.0ms) rollback transaction
3252
+  (0.0ms) begin transaction
3253
+ ----------------------------------------------------------------
3254
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3255
+ ----------------------------------------------------------------
3256
+  (0.0ms) rollback transaction
3257
+  (0.0ms) begin transaction
3258
+ -----------------------------------------------------------------------
3259
+ ApplicationHelperTest: test_current_location_should_return_the_location
3260
+ -----------------------------------------------------------------------
3261
+  (0.0ms) rollback transaction
3262
+  (0.0ms) begin transaction
3263
+ ---------------------------------------------------------------------
3264
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3265
+ ---------------------------------------------------------------------
3266
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:32:30 -0300
3267
+ Processing by Spyme::LocationsController#create as HTML
3268
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3269
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
3270
+  (0.1ms) rollback transaction
3271
+  (0.0ms) begin transaction
3272
+ ---------------------------------------------------
3273
+ SpymeTest: test_post_to_spyme_should_return_success
3274
+ ---------------------------------------------------
3275
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:32:30 -0300
3276
+ Processing by Spyme::LocationsController#create as HTML
3277
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3278
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3279
+  (0.0ms) rollback transaction
3280
+  (0.0ms) begin transaction
3281
+ -------------------------------------------------
3282
+ SpymeTest: test_post_to_spyme_should_store_coords
3283
+ -------------------------------------------------
3284
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:32:30 -0300
3285
+ Processing by Spyme::LocationsController#create as HTML
3286
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3287
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3288
+  (0.0ms) rollback transaction
3289
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3290
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3291
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3292
+  (0.0ms) SELECT sqlite_version(*)
3293
+  (12.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3294
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3295
+  (15.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3296
+  (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)
3297
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3298
+  (0.1ms) begin transaction
3299
+ 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-18 14:42:17.695818"], ["updated_at", "2018-09-18 14:42:17.695818"]]
3300
+  (10.7ms) commit transaction
3301
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3302
+  (0.1ms) begin transaction
3303
+  (0.1ms) commit transaction
3304
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3305
+  (0.0ms) begin transaction
3306
+ ---------------------------------------------------------------------
3307
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3308
+ ---------------------------------------------------------------------
3309
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:42:17 -0300
3310
+ Processing by Spyme::LocationsController#create as HTML
3311
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3312
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
3313
+  (0.1ms) rollback transaction
3314
+  (0.0ms) begin transaction
3315
+ ---------------------------------------------------
3316
+ SpymeTest: test_post_to_spyme_should_return_success
3317
+ ---------------------------------------------------
3318
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:42:17 -0300
3319
+ Processing by Spyme::LocationsController#create as HTML
3320
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3321
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3322
+  (0.0ms) rollback transaction
3323
+  (0.0ms) begin transaction
3324
+ -------------------------------------------------
3325
+ SpymeTest: test_post_to_spyme_should_store_coords
3326
+ -------------------------------------------------
3327
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:42:17 -0300
3328
+ Processing by Spyme::LocationsController#create as HTML
3329
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3330
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3331
+  (0.0ms) rollback transaction
3332
+  (0.0ms) begin transaction
3333
+ ------------------------------------------------------
3334
+ ModelTest: test_coords_should_give_the_values_in_array
3335
+ ------------------------------------------------------
3336
+  (0.0ms) rollback transaction
3337
+  (0.0ms) begin transaction
3338
+ -------------------------------------------------------------
3339
+ ModelTest: test_location_should_be_invalid_when_empty_session
3340
+ -------------------------------------------------------------
3341
+  (0.1ms) rollback transaction
3342
+  (0.0ms) begin transaction
3343
+ --------------------------------------------------------
3344
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3345
+ --------------------------------------------------------
3346
+  (0.0ms) rollback transaction
3347
+  (0.0ms) begin transaction
3348
+ ----------------------------------------------------------------
3349
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3350
+ ----------------------------------------------------------------
3351
+  (0.0ms) rollback transaction
3352
+  (0.0ms) begin transaction
3353
+ -----------------------------------------------------------------------
3354
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3355
+ -----------------------------------------------------------------------
3356
+  (0.0ms) rollback transaction
3357
+  (0.0ms) begin transaction
3358
+ ----------------------------------------------------------------------------
3359
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3360
+ ----------------------------------------------------------------------------
3361
+  (0.0ms) rollback transaction
3362
+  (0.0ms) begin transaction
3363
+ -------------------------------------------------------------
3364
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3365
+ -------------------------------------------------------------
3366
+  (0.0ms) rollback transaction
3367
+  (0.0ms) begin transaction
3368
+ --------------------------------------------------------------
3369
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3370
+ --------------------------------------------------------------
3371
+  (0.0ms) rollback transaction
3372
+  (0.0ms) begin transaction
3373
+ -----------------------------------------------------------------------------
3374
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3375
+ -----------------------------------------------------------------------------
3376
+  (0.0ms) rollback transaction
3377
+  (0.0ms) begin transaction
3378
+ --------------------------------------------------------------
3379
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3380
+ --------------------------------------------------------------
3381
+  (0.0ms) rollback transaction
3382
+  (0.0ms) begin transaction
3383
+ ---------------------------------------------------------------------------
3384
+ ApplicationControllerTest: test_current_location_should_return_the_location
3385
+ ---------------------------------------------------------------------------
3386
+  (0.0ms) rollback transaction
3387
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3388
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3389
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3390
+  (0.0ms) SELECT sqlite_version(*)
3391
+  (11.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3392
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3393
+  (16.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3394
+  (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)
3395
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3396
+  (0.1ms) begin transaction
3397
+ 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-18 14:42:54.741417"], ["updated_at", "2018-09-18 14:42:54.741417"]]
3398
+  (10.1ms) commit transaction
3399
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3400
+  (0.0ms) begin transaction
3401
+  (0.0ms) commit transaction
3402
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3403
+  (0.0ms) begin transaction
3404
+ ----------------------------------------------------------------
3405
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3406
+ ----------------------------------------------------------------
3407
+  (0.0ms) rollback transaction
3408
+  (0.0ms) begin transaction
3409
+ -----------------------------------------------------------------------------
3410
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3411
+ -----------------------------------------------------------------------------
3412
+  (0.0ms) rollback transaction
3413
+  (0.0ms) begin transaction
3414
+ ----------------------------------------------------------------------------
3415
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3416
+ ----------------------------------------------------------------------------
3417
+  (0.0ms) rollback transaction
3418
+  (0.0ms) begin transaction
3419
+ -------------------------------------------------------------
3420
+ ModelTest: test_location_should_be_invalid_when_empty_session
3421
+ -------------------------------------------------------------
3422
+  (0.0ms) rollback transaction
3423
+  (0.0ms) begin transaction
3424
+ --------------------------------------------------------------
3425
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3426
+ --------------------------------------------------------------
3427
+  (0.0ms) rollback transaction
3428
+  (0.0ms) begin transaction
3429
+ -----------------------------------------------------------------------
3430
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3431
+ -----------------------------------------------------------------------
3432
+  (0.0ms) rollback transaction
3433
+  (0.0ms) begin transaction
3434
+ --------------------------------------------------------------
3435
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3436
+ --------------------------------------------------------------
3437
+  (0.0ms) rollback transaction
3438
+  (0.0ms) begin transaction
3439
+ --------------------------------------------------------
3440
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3441
+ --------------------------------------------------------
3442
+  (0.0ms) rollback transaction
3443
+  (0.0ms) begin transaction
3444
+ ------------------------------------------------------
3445
+ ModelTest: test_coords_should_give_the_values_in_array
3446
+ ------------------------------------------------------
3447
+  (0.0ms) rollback transaction
3448
+  (0.0ms) begin transaction
3449
+ -------------------------------------------------------------
3450
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3451
+ -------------------------------------------------------------
3452
+  (0.0ms) rollback transaction
3453
+  (0.0ms) begin transaction
3454
+ ---------------------------------------------------------------------------
3455
+ ApplicationControllerTest: test_current_location_should_return_the_location
3456
+ ---------------------------------------------------------------------------
3457
+  (0.0ms) rollback transaction
3458
+  (0.0ms) begin transaction
3459
+ ---------------------------------------------------------------------
3460
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3461
+ ---------------------------------------------------------------------
3462
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:42:54 -0300
3463
+ Processing by Spyme::LocationsController#create as HTML
3464
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3465
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
3466
+  (0.1ms) rollback transaction
3467
+  (0.0ms) begin transaction
3468
+ -------------------------------------------------
3469
+ SpymeTest: test_post_to_spyme_should_store_coords
3470
+ -------------------------------------------------
3471
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:42:54 -0300
3472
+ Processing by Spyme::LocationsController#create as HTML
3473
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3474
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3475
+  (0.0ms) rollback transaction
3476
+  (0.0ms) begin transaction
3477
+ ---------------------------------------------------
3478
+ SpymeTest: test_post_to_spyme_should_return_success
3479
+ ---------------------------------------------------
3480
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:42:54 -0300
3481
+ Processing by Spyme::LocationsController#create as HTML
3482
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3483
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3484
+  (0.0ms) rollback transaction
3485
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3486
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3487
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3488
+  (0.0ms) SELECT sqlite_version(*)
3489
+  (11.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3490
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3491
+  (15.3ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3492
+  (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)
3493
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3494
+  (0.0ms) begin transaction
3495
+ 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-18 14:43:12.989155"], ["updated_at", "2018-09-18 14:43:12.989155"]]
3496
+  (10.5ms) commit transaction
3497
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3498
+  (0.1ms) begin transaction
3499
+  (0.1ms) commit transaction
3500
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3501
+  (0.0ms) begin transaction
3502
+ ---------------------------------------------------------------------
3503
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3504
+ ---------------------------------------------------------------------
3505
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:43:13 -0300
3506
+ Processing by Spyme::LocationsController#create as HTML
3507
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3508
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
3509
+  (0.1ms) rollback transaction
3510
+  (0.0ms) begin transaction
3511
+ -------------------------------------------------
3512
+ SpymeTest: test_post_to_spyme_should_store_coords
3513
+ -------------------------------------------------
3514
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:43:13 -0300
3515
+ Processing by Spyme::LocationsController#create as HTML
3516
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3517
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3518
+  (0.0ms) rollback transaction
3519
+  (0.0ms) begin transaction
3520
+ ---------------------------------------------------
3521
+ SpymeTest: test_post_to_spyme_should_return_success
3522
+ ---------------------------------------------------
3523
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:43:13 -0300
3524
+ Processing by Spyme::LocationsController#create as HTML
3525
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3526
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3527
+  (0.0ms) rollback transaction
3528
+  (0.0ms) begin transaction
3529
+ ---------------------------------------------------------------------------
3530
+ ApplicationControllerTest: test_current_location_should_return_the_location
3531
+ ---------------------------------------------------------------------------
3532
+  (0.0ms) rollback transaction
3533
+  (0.0ms) begin transaction
3534
+ ----------------------------------------------------------------------------
3535
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3536
+ ----------------------------------------------------------------------------
3537
+  (0.0ms) rollback transaction
3538
+  (0.0ms) begin transaction
3539
+ --------------------------------------------------------------
3540
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3541
+ --------------------------------------------------------------
3542
+  (0.0ms) rollback transaction
3543
+  (0.0ms) begin transaction
3544
+ ------------------------------------------------------
3545
+ ModelTest: test_coords_should_give_the_values_in_array
3546
+ ------------------------------------------------------
3547
+  (0.0ms) rollback transaction
3548
+  (0.0ms) begin transaction
3549
+ ----------------------------------------------------------------
3550
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3551
+ ----------------------------------------------------------------
3552
+  (0.0ms) rollback transaction
3553
+  (0.0ms) begin transaction
3554
+ --------------------------------------------------------------
3555
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3556
+ --------------------------------------------------------------
3557
+  (0.0ms) rollback transaction
3558
+  (0.0ms) begin transaction
3559
+ -------------------------------------------------------------
3560
+ ModelTest: test_location_should_be_invalid_when_empty_session
3561
+ -------------------------------------------------------------
3562
+  (0.0ms) rollback transaction
3563
+  (0.0ms) begin transaction
3564
+ -----------------------------------------------------------------------------
3565
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3566
+ -----------------------------------------------------------------------------
3567
+  (0.0ms) rollback transaction
3568
+  (0.0ms) begin transaction
3569
+ -------------------------------------------------------------
3570
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3571
+ -------------------------------------------------------------
3572
+  (0.0ms) rollback transaction
3573
+  (0.0ms) begin transaction
3574
+ --------------------------------------------------------
3575
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3576
+ --------------------------------------------------------
3577
+  (0.0ms) rollback transaction
3578
+  (0.0ms) begin transaction
3579
+ -----------------------------------------------------------------------
3580
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3581
+ -----------------------------------------------------------------------
3582
+  (0.0ms) rollback transaction
3583
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3584
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3585
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3586
+  (0.0ms) SELECT sqlite_version(*)
3587
+  (11.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3588
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3589
+  (15.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3590
+  (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)
3591
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3592
+  (0.1ms) begin transaction
3593
+ 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-18 14:43:57.965360"], ["updated_at", "2018-09-18 14:43:57.965360"]]
3594
+  (10.4ms) commit transaction
3595
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3596
+  (0.1ms) begin transaction
3597
+  (0.1ms) commit transaction
3598
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3599
+  (0.0ms) begin transaction
3600
+ ---------------------------------------------------
3601
+ SpymeTest: test_post_to_spyme_should_return_success
3602
+ ---------------------------------------------------
3603
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:43:58 -0300
3604
+ Processing by Spyme::LocationsController#create as HTML
3605
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3606
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3607
+  (0.1ms) rollback transaction
3608
+  (0.0ms) begin transaction
3609
+ -------------------------------------------------
3610
+ SpymeTest: test_post_to_spyme_should_store_coords
3611
+ -------------------------------------------------
3612
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:43:58 -0300
3613
+ Processing by Spyme::LocationsController#create as HTML
3614
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3615
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3616
+  (0.0ms) rollback transaction
3617
+  (0.0ms) begin transaction
3618
+ ---------------------------------------------------------------------
3619
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3620
+ ---------------------------------------------------------------------
3621
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:43:58 -0300
3622
+ Processing by Spyme::LocationsController#create as HTML
3623
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3624
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
3625
+  (0.0ms) rollback transaction
3626
+  (0.0ms) begin transaction
3627
+ ---------------------------------------------------------------------------
3628
+ ApplicationControllerTest: test_current_location_should_return_the_location
3629
+ ---------------------------------------------------------------------------
3630
+  (0.0ms) rollback transaction
3631
+  (0.0ms) begin transaction
3632
+ ----------------------------------------------------------------
3633
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3634
+ ----------------------------------------------------------------
3635
+  (0.0ms) rollback transaction
3636
+  (0.0ms) begin transaction
3637
+ -------------------------------------------------------------
3638
+ ModelTest: test_location_should_be_invalid_when_empty_session
3639
+ -------------------------------------------------------------
3640
+  (0.0ms) rollback transaction
3641
+  (0.0ms) begin transaction
3642
+ -------------------------------------------------------------
3643
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3644
+ -------------------------------------------------------------
3645
+  (0.0ms) rollback transaction
3646
+  (0.0ms) begin transaction
3647
+ --------------------------------------------------------
3648
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3649
+ --------------------------------------------------------
3650
+  (0.0ms) rollback transaction
3651
+  (0.0ms) begin transaction
3652
+ -----------------------------------------------------------------------
3653
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3654
+ -----------------------------------------------------------------------
3655
+  (0.0ms) rollback transaction
3656
+  (0.0ms) begin transaction
3657
+ ----------------------------------------------------------------------------
3658
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3659
+ ----------------------------------------------------------------------------
3660
+  (0.0ms) rollback transaction
3661
+  (0.0ms) begin transaction
3662
+ --------------------------------------------------------------
3663
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3664
+ --------------------------------------------------------------
3665
+  (0.0ms) rollback transaction
3666
+  (0.0ms) begin transaction
3667
+ --------------------------------------------------------------
3668
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3669
+ --------------------------------------------------------------
3670
+  (0.0ms) rollback transaction
3671
+  (0.0ms) begin transaction
3672
+ ------------------------------------------------------
3673
+ ModelTest: test_coords_should_give_the_values_in_array
3674
+ ------------------------------------------------------
3675
+  (0.0ms) rollback transaction
3676
+  (0.0ms) begin transaction
3677
+ -----------------------------------------------------------------------------
3678
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3679
+ -----------------------------------------------------------------------------
3680
+  (0.0ms) rollback transaction
3681
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3682
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3683
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3684
+  (0.1ms) SELECT sqlite_version(*)
3685
+  (12.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3686
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3687
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3688
+  (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)
3689
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3690
+  (0.1ms) begin transaction
3691
+ 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-18 14:44:27.826481"], ["updated_at", "2018-09-18 14:44:27.826481"]]
3692
+  (10.5ms) commit transaction
3693
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3694
+  (0.0ms) begin transaction
3695
+  (0.0ms) commit transaction
3696
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3697
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3698
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3699
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3700
+  (0.0ms) SELECT sqlite_version(*)
3701
+  (33.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3702
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3703
+  (24.3ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3704
+  (12.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3705
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3706
+  (0.1ms) begin transaction
3707
+ 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-18 14:44:47.347770"], ["updated_at", "2018-09-18 14:44:47.347770"]]
3708
+  (10.9ms) commit transaction
3709
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3710
+  (0.1ms) begin transaction
3711
+  (0.1ms) commit transaction
3712
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3713
+  (0.0ms) begin transaction
3714
+ --------------------------------------------------------------------------------
3715
+ ApplicationControllerTest: test_current_location_should_return_a_location_object
3716
+ --------------------------------------------------------------------------------
3717
+  (0.0ms) rollback transaction
3718
+  (0.0ms) begin transaction
3719
+ ---------------------------------------------------------------------------
3720
+ ApplicationControllerTest: test_current_location_should_return_the_location
3721
+ ---------------------------------------------------------------------------
3722
+  (0.0ms) rollback transaction
3723
+  (0.0ms) begin transaction
3724
+ -----------------------------------------------------------------------
3725
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3726
+ -----------------------------------------------------------------------
3727
+  (0.0ms) rollback transaction
3728
+  (0.0ms) begin transaction
3729
+ --------------------------------------------------------------
3730
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3731
+ --------------------------------------------------------------
3732
+  (0.0ms) rollback transaction
3733
+  (0.0ms) begin transaction
3734
+ ----------------------------------------------------------------
3735
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3736
+ ----------------------------------------------------------------
3737
+  (0.0ms) rollback transaction
3738
+  (0.0ms) begin transaction
3739
+ ----------------------------------------------------------------------------
3740
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3741
+ ----------------------------------------------------------------------------
3742
+  (0.0ms) rollback transaction
3743
+  (0.0ms) begin transaction
3744
+ --------------------------------------------------------
3745
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3746
+ --------------------------------------------------------
3747
+  (0.0ms) rollback transaction
3748
+  (0.0ms) begin transaction
3749
+ -------------------------------------------------------------
3750
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3751
+ -------------------------------------------------------------
3752
+  (0.0ms) rollback transaction
3753
+  (0.0ms) begin transaction
3754
+ --------------------------------------------------------------
3755
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3756
+ --------------------------------------------------------------
3757
+  (0.0ms) rollback transaction
3758
+  (0.0ms) begin transaction
3759
+ -----------------------------------------------------------------------------
3760
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3761
+ -----------------------------------------------------------------------------
3762
+  (0.0ms) rollback transaction
3763
+  (0.0ms) begin transaction
3764
+ ------------------------------------------------------
3765
+ ModelTest: test_coords_should_give_the_values_in_array
3766
+ ------------------------------------------------------
3767
+  (0.0ms) rollback transaction
3768
+  (0.0ms) begin transaction
3769
+ -------------------------------------------------------------
3770
+ ModelTest: test_location_should_be_invalid_when_empty_session
3771
+ -------------------------------------------------------------
3772
+  (0.0ms) rollback transaction
3773
+  (0.0ms) begin transaction
3774
+ -------------------------------------------------
3775
+ SpymeTest: test_post_to_spyme_should_store_coords
3776
+ -------------------------------------------------
3777
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:44:47 -0300
3778
+ Processing by Spyme::LocationsController#create as HTML
3779
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3780
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3781
+  (0.1ms) rollback transaction
3782
+  (0.0ms) begin transaction
3783
+ ---------------------------------------------------------------------
3784
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3785
+ ---------------------------------------------------------------------
3786
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:44:47 -0300
3787
+ Processing by Spyme::LocationsController#create as HTML
3788
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3789
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
3790
+  (0.0ms) rollback transaction
3791
+  (0.0ms) begin transaction
3792
+ ---------------------------------------------------
3793
+ SpymeTest: test_post_to_spyme_should_return_success
3794
+ ---------------------------------------------------
3795
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:44:47 -0300
3796
+ Processing by Spyme::LocationsController#create as HTML
3797
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3798
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3799
+  (0.0ms) rollback transaction
3800
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3801
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3802
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3803
+  (0.0ms) SELECT sqlite_version(*)
3804
+  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3805
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3806
+  (15.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3807
+  (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)
3808
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3809
+  (0.0ms) begin transaction
3810
+ 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-18 14:45:57.567154"], ["updated_at", "2018-09-18 14:45:57.567154"]]
3811
+  (10.9ms) commit transaction
3812
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3813
+  (0.0ms) begin transaction
3814
+  (0.0ms) commit transaction
3815
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3816
+  (0.0ms) begin transaction
3817
+ ---------------------------------------------------------------------
3818
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3819
+ ---------------------------------------------------------------------
3820
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:45:57 -0300
3821
+ Processing by Spyme::LocationsController#create as HTML
3822
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3823
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
3824
+  (0.1ms) rollback transaction
3825
+  (0.0ms) begin transaction
3826
+ ---------------------------------------------------
3827
+ SpymeTest: test_post_to_spyme_should_return_success
3828
+ ---------------------------------------------------
3829
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:45:57 -0300
3830
+ Processing by Spyme::LocationsController#create as HTML
3831
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3832
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3833
+  (0.0ms) rollback transaction
3834
+  (0.0ms) begin transaction
3835
+ -------------------------------------------------
3836
+ SpymeTest: test_post_to_spyme_should_store_coords
3837
+ -------------------------------------------------
3838
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:45:57 -0300
3839
+ Processing by Spyme::LocationsController#create as HTML
3840
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3841
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3842
+  (0.0ms) rollback transaction
3843
+  (0.0ms) begin transaction
3844
+ ----------------------------------------------------------------------------
3845
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
3846
+ ----------------------------------------------------------------------------
3847
+  (0.0ms) rollback transaction
3848
+  (0.0ms) begin transaction
3849
+ -----------------------------------------------------------------------------
3850
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3851
+ -----------------------------------------------------------------------------
3852
+  (0.0ms) rollback transaction
3853
+  (0.0ms) begin transaction
3854
+ -------------------------------------------------------------
3855
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3856
+ -------------------------------------------------------------
3857
+  (0.0ms) rollback transaction
3858
+  (0.0ms) begin transaction
3859
+ -----------------------------------------------------------------------
3860
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3861
+ -----------------------------------------------------------------------
3862
+  (0.0ms) rollback transaction
3863
+  (0.0ms) begin transaction
3864
+ --------------------------------------------------------------
3865
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3866
+ --------------------------------------------------------------
3867
+  (0.0ms) rollback transaction
3868
+  (0.0ms) begin transaction
3869
+ ----------------------------------------------------------------
3870
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3871
+ ----------------------------------------------------------------
3872
+  (0.0ms) rollback transaction
3873
+  (0.0ms) begin transaction
3874
+ --------------------------------------------------------
3875
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3876
+ --------------------------------------------------------
3877
+  (0.0ms) rollback transaction
3878
+  (0.0ms) begin transaction
3879
+ ------------------------------------------------------
3880
+ ModelTest: test_coords_should_give_the_values_in_array
3881
+ ------------------------------------------------------
3882
+  (0.0ms) rollback transaction
3883
+  (0.0ms) begin transaction
3884
+ --------------------------------------------------------------
3885
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3886
+ --------------------------------------------------------------
3887
+  (0.0ms) rollback transaction
3888
+  (0.0ms) begin transaction
3889
+ -------------------------------------------------------------
3890
+ ModelTest: test_location_should_be_invalid_when_empty_session
3891
+ -------------------------------------------------------------
3892
+  (0.0ms) rollback transaction
3893
+  (0.0ms) begin transaction
3894
+ ---------------------------------------------------------------------------
3895
+ ApplicationControllerTest: test_current_location_should_return_the_location
3896
+ ---------------------------------------------------------------------------
3897
+  (0.0ms) rollback transaction
3898
+  (0.0ms) begin transaction
3899
+ --------------------------------------------------------------------------------
3900
+ ApplicationControllerTest: test_current_location_should_return_a_location_object
3901
+ --------------------------------------------------------------------------------
3902
+  (0.0ms) rollback transaction
3903
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3904
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3905
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3906
+  (0.1ms) SELECT sqlite_version(*)
3907
+  (12.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3908
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3909
+  (16.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
3910
+  (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)
3911
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3912
+  (0.1ms) begin transaction
3913
+ 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-18 14:46:23.275010"], ["updated_at", "2018-09-18 14:46:23.275010"]]
3914
+  (10.5ms) commit transaction
3915
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3916
+  (0.1ms) begin transaction
3917
+  (0.1ms) commit transaction
3918
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3919
+  (0.0ms) begin transaction
3920
+ --------------------------------------------------------------------------------
3921
+ ApplicationControllerTest: test_current_location_should_return_a_location_object
3922
+ --------------------------------------------------------------------------------
3923
+  (0.0ms) rollback transaction
3924
+  (0.0ms) begin transaction
3925
+ ---------------------------------------------------------------------------
3926
+ ApplicationControllerTest: test_current_location_should_return_the_location
3927
+ ---------------------------------------------------------------------------
3928
+  (0.0ms) rollback transaction
3929
+  (0.0ms) begin transaction
3930
+ ---------------------------------------------------------------------
3931
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
3932
+ ---------------------------------------------------------------------
3933
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:46:23 -0300
3934
+ Processing by Spyme::LocationsController#create as HTML
3935
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
3936
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
3937
+  (0.1ms) rollback transaction
3938
+  (0.0ms) begin transaction
3939
+ ---------------------------------------------------
3940
+ SpymeTest: test_post_to_spyme_should_return_success
3941
+ ---------------------------------------------------
3942
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:46:23 -0300
3943
+ Processing by Spyme::LocationsController#create as HTML
3944
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3945
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
3946
+  (0.0ms) rollback transaction
3947
+  (0.0ms) begin transaction
3948
+ -------------------------------------------------
3949
+ SpymeTest: test_post_to_spyme_should_store_coords
3950
+ -------------------------------------------------
3951
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:46:23 -0300
3952
+ Processing by Spyme::LocationsController#create as HTML
3953
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
3954
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
3955
+  (0.0ms) rollback transaction
3956
+  (0.0ms) begin transaction
3957
+ ----------------------------------------------------------------
3958
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
3959
+ ----------------------------------------------------------------
3960
+  (0.0ms) rollback transaction
3961
+  (0.0ms) begin transaction
3962
+ ------------------------------------------------------
3963
+ ModelTest: test_coords_should_give_the_values_in_array
3964
+ ------------------------------------------------------
3965
+  (0.0ms) rollback transaction
3966
+  (0.0ms) begin transaction
3967
+ --------------------------------------------------------------
3968
+ ModelTest: test_location_should_be_valid_at_positive_boundries
3969
+ --------------------------------------------------------------
3970
+  (0.0ms) rollback transaction
3971
+  (0.0ms) begin transaction
3972
+ -------------------------------------------------------------
3973
+ ModelTest: test_as_a_string_should_give_the_right_query_value
3974
+ -------------------------------------------------------------
3975
+  (0.0ms) rollback transaction
3976
+  (0.0ms) begin transaction
3977
+ -----------------------------------------------------------------------------
3978
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
3979
+ -----------------------------------------------------------------------------
3980
+  (0.0ms) rollback transaction
3981
+  (0.0ms) begin transaction
3982
+ -------------------------------------------------------------
3983
+ ModelTest: test_location_should_be_invalid_when_empty_session
3984
+ -------------------------------------------------------------
3985
+  (0.0ms) rollback transaction
3986
+  (0.0ms) begin transaction
3987
+ --------------------------------------------------------
3988
+ ModelTest: test_to_hash_should_give_the_right_hash_value
3989
+ --------------------------------------------------------
3990
+  (0.0ms) rollback transaction
3991
+  (0.0ms) begin transaction
3992
+ --------------------------------------------------------------
3993
+ ModelTest: test_location_should_be_valid_at_negative_boundries
3994
+ --------------------------------------------------------------
3995
+  (0.0ms) rollback transaction
3996
+  (0.0ms) begin transaction
3997
+ -----------------------------------------------------------------------
3998
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
3999
+ -----------------------------------------------------------------------
4000
+  (0.0ms) rollback transaction
4001
+  (0.0ms) begin transaction
4002
+ ----------------------------------------------------------------------------
4003
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
4004
+ ----------------------------------------------------------------------------
4005
+  (0.0ms) rollback transaction
4006
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4007
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4008
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4009
+  (0.1ms) SELECT sqlite_version(*)
4010
+  (12.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
4011
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4012
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
4013
+  (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)
4014
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
4015
+  (0.1ms) begin transaction
4016
+ 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-18 14:46:41.366488"], ["updated_at", "2018-09-18 14:46:41.366488"]]
4017
+  (10.6ms) commit transaction
4018
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
4019
+  (0.1ms) begin transaction
4020
+  (0.1ms) commit transaction
4021
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4022
+  (0.1ms) begin transaction
4023
+ ------------------------------------------------------
4024
+ ModelTest: test_coords_should_give_the_values_in_array
4025
+ ------------------------------------------------------
4026
+  (0.1ms) rollback transaction
4027
+  (0.1ms) begin transaction
4028
+ --------------------------------------------------------------
4029
+ ModelTest: test_location_should_be_valid_at_negative_boundries
4030
+ --------------------------------------------------------------
4031
+  (0.1ms) rollback transaction
4032
+  (0.1ms) begin transaction
4033
+ ----------------------------------------------------------------------------
4034
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
4035
+ ----------------------------------------------------------------------------
4036
+  (0.1ms) rollback transaction
4037
+  (0.1ms) begin transaction
4038
+ -------------------------------------------------------------
4039
+ ModelTest: test_as_a_string_should_give_the_right_query_value
4040
+ -------------------------------------------------------------
4041
+  (0.1ms) rollback transaction
4042
+  (0.1ms) begin transaction
4043
+ --------------------------------------------------------
4044
+ ModelTest: test_to_hash_should_give_the_right_hash_value
4045
+ --------------------------------------------------------
4046
+  (0.0ms) rollback transaction
4047
+  (0.0ms) begin transaction
4048
+ -------------------------------------------------------------
4049
+ ModelTest: test_location_should_be_invalid_when_empty_session
4050
+ -------------------------------------------------------------
4051
+  (0.1ms) rollback transaction
4052
+  (0.1ms) begin transaction
4053
+ -----------------------------------------------------------------------------
4054
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
4055
+ -----------------------------------------------------------------------------
4056
+  (0.0ms) rollback transaction
4057
+  (0.0ms) begin transaction
4058
+ -----------------------------------------------------------------------
4059
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
4060
+ -----------------------------------------------------------------------
4061
+  (0.1ms) rollback transaction
4062
+  (0.0ms) begin transaction
4063
+ --------------------------------------------------------------
4064
+ ModelTest: test_location_should_be_valid_at_positive_boundries
4065
+ --------------------------------------------------------------
4066
+  (0.1ms) rollback transaction
4067
+  (0.0ms) begin transaction
4068
+ ----------------------------------------------------------------
4069
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
4070
+ ----------------------------------------------------------------
4071
+  (0.1ms) rollback transaction
4072
+  (0.0ms) begin transaction
4073
+ -------------------------------------------------
4074
+ SpymeTest: test_post_to_spyme_should_store_coords
4075
+ -------------------------------------------------
4076
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:46:41 -0300
4077
+ Processing by Spyme::LocationsController#create as HTML
4078
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
4079
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
4080
+  (0.1ms) rollback transaction
4081
+  (0.0ms) begin transaction
4082
+ ---------------------------------------------------------------------
4083
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
4084
+ ---------------------------------------------------------------------
4085
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:46:41 -0300
4086
+ Processing by Spyme::LocationsController#create as HTML
4087
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
4088
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
4089
+  (0.0ms) rollback transaction
4090
+  (0.0ms) begin transaction
4091
+ ---------------------------------------------------
4092
+ SpymeTest: test_post_to_spyme_should_return_success
4093
+ ---------------------------------------------------
4094
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:46:41 -0300
4095
+ Processing by Spyme::LocationsController#create as HTML
4096
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
4097
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
4098
+  (0.0ms) rollback transaction
4099
+  (0.0ms) begin transaction
4100
+ ---------------------------------------------------------------------------
4101
+ ApplicationControllerTest: test_current_location_should_return_the_location
4102
+ ---------------------------------------------------------------------------
4103
+  (0.0ms) rollback transaction
4104
+  (0.0ms) begin transaction
4105
+ --------------------------------------------------------------------------------
4106
+ ApplicationControllerTest: test_current_location_should_return_a_location_object
4107
+ --------------------------------------------------------------------------------
4108
+  (0.0ms) rollback transaction
4109
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4110
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4111
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4112
+  (0.0ms) SELECT sqlite_version(*)
4113
+  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
4114
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4115
+  (15.4ms) INSERT INTO "schema_migrations" (version) VALUES (0)
4116
+  (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)
4117
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
4118
+  (0.1ms) begin transaction
4119
+ 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-18 14:48:14.084530"], ["updated_at", "2018-09-18 14:48:14.084530"]]
4120
+  (10.4ms) commit transaction
4121
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
4122
+  (0.0ms) begin transaction
4123
+  (0.0ms) commit transaction
4124
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4125
+  (0.0ms) begin transaction
4126
+ --------------------------------------------------------------------------------
4127
+ ApplicationControllerTest: test_current_location_should_return_a_location_object
4128
+ --------------------------------------------------------------------------------
4129
+  (0.0ms) rollback transaction
4130
+  (0.0ms) begin transaction
4131
+ ---------------------------------------------------------------------------
4132
+ ApplicationControllerTest: test_current_location_should_return_the_location
4133
+ ---------------------------------------------------------------------------
4134
+  (0.0ms) rollback transaction
4135
+  (0.0ms) begin transaction
4136
+ ---------------------------------------------------------------------
4137
+ SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
4138
+ ---------------------------------------------------------------------
4139
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:48:14 -0300
4140
+ Processing by Spyme::LocationsController#create as HTML
4141
+ Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
4142
+ Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
4143
+  (0.1ms) rollback transaction
4144
+  (0.0ms) begin transaction
4145
+ ---------------------------------------------------
4146
+ SpymeTest: test_post_to_spyme_should_return_success
4147
+ ---------------------------------------------------
4148
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:48:14 -0300
4149
+ Processing by Spyme::LocationsController#create as HTML
4150
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
4151
+ Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
4152
+  (0.0ms) rollback transaction
4153
+  (0.0ms) begin transaction
4154
+ -------------------------------------------------
4155
+ SpymeTest: test_post_to_spyme_should_store_coords
4156
+ -------------------------------------------------
4157
+ Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-18 11:48:14 -0300
4158
+ Processing by Spyme::LocationsController#create as HTML
4159
+ Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
4160
+ Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
4161
+  (0.0ms) rollback transaction
4162
+  (0.0ms) begin transaction
4163
+ ------------------------------------------------------
4164
+ ModelTest: test_coords_should_give_the_values_in_array
4165
+ ------------------------------------------------------
4166
+  (0.0ms) rollback transaction
4167
+  (0.0ms) begin transaction
4168
+ -----------------------------------------------------------------------------
4169
+ ModelTest: test_initialize_from_session_should_give_correct_number_attributes
4170
+ -----------------------------------------------------------------------------
4171
+  (0.0ms) rollback transaction
4172
+  (0.0ms) begin transaction
4173
+ --------------------------------------------------------
4174
+ ModelTest: test_to_hash_should_give_the_right_hash_value
4175
+ --------------------------------------------------------
4176
+  (0.0ms) rollback transaction
4177
+  (0.0ms) begin transaction
4178
+ -----------------------------------------------------------------------
4179
+ ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
4180
+ -----------------------------------------------------------------------
4181
+  (0.0ms) rollback transaction
4182
+  (0.0ms) begin transaction
4183
+ -------------------------------------------------------------
4184
+ ModelTest: test_location_should_be_invalid_when_empty_session
4185
+ -------------------------------------------------------------
4186
+  (0.0ms) rollback transaction
4187
+  (0.0ms) begin transaction
4188
+ ----------------------------------------------------------------------------
4189
+ ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
4190
+ ----------------------------------------------------------------------------
4191
+  (0.0ms) rollback transaction
4192
+  (0.0ms) begin transaction
4193
+ -------------------------------------------------------------
4194
+ ModelTest: test_as_a_string_should_give_the_right_query_value
4195
+ -------------------------------------------------------------
4196
+  (0.0ms) rollback transaction
4197
+  (0.0ms) begin transaction
4198
+ ----------------------------------------------------------------
4199
+ ModelTest: test_location_should_be_invalid_when_empty_attributes
4200
+ ----------------------------------------------------------------
4201
+  (0.0ms) rollback transaction
4202
+  (0.0ms) begin transaction
4203
+ --------------------------------------------------------------
4204
+ ModelTest: test_location_should_be_valid_at_negative_boundries
4205
+ --------------------------------------------------------------
4206
+  (0.0ms) rollback transaction
4207
+  (0.0ms) begin transaction
4208
+ --------------------------------------------------------------
4209
+ ModelTest: test_location_should_be_valid_at_positive_boundries
4210
+ --------------------------------------------------------------
4211
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spyme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juani Villarejo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-17 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -56,6 +56,7 @@ files:
56
56
  - lib/spyme/model.rb
57
57
  - lib/spyme/version.rb
58
58
  - lib/tasks/spyme_tasks.rake
59
+ - test/controllers/application_helper_test.rb
59
60
  - test/dummy/README.rdoc
60
61
  - test/dummy/Rakefile
61
62
  - test/dummy/app/assets/javascripts/application.js
@@ -128,6 +129,7 @@ summary: A Rails plugin that tracks and store browser geolocation position
128
129
  test_files:
129
130
  - test/test_helper.rb
130
131
  - test/integration/spyme_test.rb
132
+ - test/controllers/application_helper_test.rb
131
133
  - test/models/model_test.rb
132
134
  - test/dummy/Rakefile
133
135
  - test/dummy/config.ru