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 +4 -4
- data/lib/spyme/controller.rb +1 -1
- data/lib/spyme/version.rb +1 -1
- data/test/controllers/application_helper_test.rb +14 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1119 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d32f9afd69c6bc36155a89242826cc3b32e6f47036481b8741ad52f52d2eb72
|
4
|
+
data.tar.gz: 6d8a37e99c7fee35fad47be4391d2bbaaff96c10e9937ff2b374f34f49c0cb13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 401194b3114203e2ecf997da8de8a986f40a5467d3daddd249e2b405dfd1fd1c72a2271cffebe4175de2823af8b0b5f947774025819d5cadfcfc193a68af83f0
|
7
|
+
data.tar.gz: fa4f905afdc3551126e2531c97e4925d16e17108233250b31c663fbc427cec53d50f67984ecab0d17be1aef4e490b1a1e73b17d1dd66d308f9a677bbb3b74a72
|
data/lib/spyme/controller.rb
CHANGED
data/lib/spyme/version.rb
CHANGED
@@ -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
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -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
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3093
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3094
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3095
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3096
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3097
|
+
[1m[35m (12.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3098
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3099
|
+
[1m[35m (16.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3100
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3101
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3102
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3103
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:32:10.150160"], ["updated_at", "2018-09-18 14:32:10.150160"]]
|
3104
|
+
[1m[35m (10.1ms)[0m [1m[36mcommit transaction[0m
|
3105
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3106
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3107
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
3108
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3109
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3110
|
+
----------------------------------------------------------------
|
3111
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3112
|
+
----------------------------------------------------------------
|
3113
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3114
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3115
|
+
----------------------------------------------------------------------------
|
3116
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3117
|
+
----------------------------------------------------------------------------
|
3118
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3119
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3120
|
+
-------------------------------------------------------------
|
3121
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3122
|
+
-------------------------------------------------------------
|
3123
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3124
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3125
|
+
-----------------------------------------------------------------------------
|
3126
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3127
|
+
-----------------------------------------------------------------------------
|
3128
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3129
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3130
|
+
-----------------------------------------------------------------------
|
3131
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3132
|
+
-----------------------------------------------------------------------
|
3133
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3134
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3135
|
+
--------------------------------------------------------------
|
3136
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3137
|
+
--------------------------------------------------------------
|
3138
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3139
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3140
|
+
--------------------------------------------------------
|
3141
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3142
|
+
--------------------------------------------------------
|
3143
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3144
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3145
|
+
------------------------------------------------------
|
3146
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3147
|
+
------------------------------------------------------
|
3148
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3149
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3150
|
+
-------------------------------------------------------------
|
3151
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3152
|
+
-------------------------------------------------------------
|
3153
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3154
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3155
|
+
--------------------------------------------------------------
|
3156
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3157
|
+
--------------------------------------------------------------
|
3158
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3159
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3168
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3177
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3186
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3187
|
+
-----------------------------------------------------------------------
|
3188
|
+
ApplicationHelperTest: test_current_location_should_return_the_location
|
3189
|
+
-----------------------------------------------------------------------
|
3190
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3191
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3192
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3193
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3194
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3195
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3196
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3197
|
+
[1m[35m (15.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3198
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3199
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3200
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3201
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:32:30.716955"], ["updated_at", "2018-09-18 14:32:30.716955"]]
|
3202
|
+
[1m[35m (12.2ms)[0m [1m[36mcommit transaction[0m
|
3203
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3204
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3205
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
3206
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3207
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3208
|
+
-------------------------------------------------------------
|
3209
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3210
|
+
-------------------------------------------------------------
|
3211
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3212
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3213
|
+
------------------------------------------------------
|
3214
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3215
|
+
------------------------------------------------------
|
3216
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3217
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3218
|
+
-------------------------------------------------------------
|
3219
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3220
|
+
-------------------------------------------------------------
|
3221
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3222
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3223
|
+
----------------------------------------------------------------------------
|
3224
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3225
|
+
----------------------------------------------------------------------------
|
3226
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3227
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3228
|
+
--------------------------------------------------------------
|
3229
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3230
|
+
--------------------------------------------------------------
|
3231
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3232
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3233
|
+
--------------------------------------------------------------
|
3234
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3235
|
+
--------------------------------------------------------------
|
3236
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3237
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3238
|
+
--------------------------------------------------------
|
3239
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3240
|
+
--------------------------------------------------------
|
3241
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3242
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3243
|
+
-----------------------------------------------------------------------------
|
3244
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3245
|
+
-----------------------------------------------------------------------------
|
3246
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3247
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3248
|
+
-----------------------------------------------------------------------
|
3249
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3250
|
+
-----------------------------------------------------------------------
|
3251
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3252
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3253
|
+
----------------------------------------------------------------
|
3254
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3255
|
+
----------------------------------------------------------------
|
3256
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3257
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3258
|
+
-----------------------------------------------------------------------
|
3259
|
+
ApplicationHelperTest: test_current_location_should_return_the_location
|
3260
|
+
-----------------------------------------------------------------------
|
3261
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3262
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3271
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3280
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3289
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3290
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3291
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3292
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3293
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3294
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3295
|
+
[1m[35m (15.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3296
|
+
[1m[35m (12.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3297
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3298
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3299
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:42:17.695818"], ["updated_at", "2018-09-18 14:42:17.695818"]]
|
3300
|
+
[1m[35m (10.7ms)[0m [1m[36mcommit transaction[0m
|
3301
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3302
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3303
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
3304
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3305
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3314
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3323
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3332
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3333
|
+
------------------------------------------------------
|
3334
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3335
|
+
------------------------------------------------------
|
3336
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3337
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3338
|
+
-------------------------------------------------------------
|
3339
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3340
|
+
-------------------------------------------------------------
|
3341
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3342
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3343
|
+
--------------------------------------------------------
|
3344
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3345
|
+
--------------------------------------------------------
|
3346
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3347
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3348
|
+
----------------------------------------------------------------
|
3349
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3350
|
+
----------------------------------------------------------------
|
3351
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3352
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3353
|
+
-----------------------------------------------------------------------
|
3354
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3355
|
+
-----------------------------------------------------------------------
|
3356
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3357
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3358
|
+
----------------------------------------------------------------------------
|
3359
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3360
|
+
----------------------------------------------------------------------------
|
3361
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3362
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3363
|
+
-------------------------------------------------------------
|
3364
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3365
|
+
-------------------------------------------------------------
|
3366
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3367
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3368
|
+
--------------------------------------------------------------
|
3369
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3370
|
+
--------------------------------------------------------------
|
3371
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3372
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3373
|
+
-----------------------------------------------------------------------------
|
3374
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3375
|
+
-----------------------------------------------------------------------------
|
3376
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3377
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3378
|
+
--------------------------------------------------------------
|
3379
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3380
|
+
--------------------------------------------------------------
|
3381
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3382
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3383
|
+
---------------------------------------------------------------------------
|
3384
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
3385
|
+
---------------------------------------------------------------------------
|
3386
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3387
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3388
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3389
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3390
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3391
|
+
[1m[35m (11.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3392
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3393
|
+
[1m[35m (16.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3394
|
+
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3395
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3396
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3397
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:42:54.741417"], ["updated_at", "2018-09-18 14:42:54.741417"]]
|
3398
|
+
[1m[35m (10.1ms)[0m [1m[36mcommit transaction[0m
|
3399
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3400
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3401
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
3402
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3403
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3404
|
+
----------------------------------------------------------------
|
3405
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3406
|
+
----------------------------------------------------------------
|
3407
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3408
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3409
|
+
-----------------------------------------------------------------------------
|
3410
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3411
|
+
-----------------------------------------------------------------------------
|
3412
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3413
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3414
|
+
----------------------------------------------------------------------------
|
3415
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3416
|
+
----------------------------------------------------------------------------
|
3417
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3418
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3419
|
+
-------------------------------------------------------------
|
3420
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3421
|
+
-------------------------------------------------------------
|
3422
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3423
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3424
|
+
--------------------------------------------------------------
|
3425
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3426
|
+
--------------------------------------------------------------
|
3427
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3428
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3429
|
+
-----------------------------------------------------------------------
|
3430
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3431
|
+
-----------------------------------------------------------------------
|
3432
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3433
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3434
|
+
--------------------------------------------------------------
|
3435
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3436
|
+
--------------------------------------------------------------
|
3437
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3438
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3439
|
+
--------------------------------------------------------
|
3440
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3441
|
+
--------------------------------------------------------
|
3442
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3443
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3444
|
+
------------------------------------------------------
|
3445
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3446
|
+
------------------------------------------------------
|
3447
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3448
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3449
|
+
-------------------------------------------------------------
|
3450
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3451
|
+
-------------------------------------------------------------
|
3452
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3453
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3454
|
+
---------------------------------------------------------------------------
|
3455
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
3456
|
+
---------------------------------------------------------------------------
|
3457
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3458
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3467
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3476
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3485
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3486
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3487
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3488
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3489
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3490
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3491
|
+
[1m[35m (15.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3492
|
+
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3493
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3494
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3495
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:43:12.989155"], ["updated_at", "2018-09-18 14:43:12.989155"]]
|
3496
|
+
[1m[35m (10.5ms)[0m [1m[36mcommit transaction[0m
|
3497
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3498
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3499
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
3500
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3501
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3510
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3519
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3528
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3529
|
+
---------------------------------------------------------------------------
|
3530
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
3531
|
+
---------------------------------------------------------------------------
|
3532
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3533
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3534
|
+
----------------------------------------------------------------------------
|
3535
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3536
|
+
----------------------------------------------------------------------------
|
3537
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3538
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3539
|
+
--------------------------------------------------------------
|
3540
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3541
|
+
--------------------------------------------------------------
|
3542
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3543
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3544
|
+
------------------------------------------------------
|
3545
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3546
|
+
------------------------------------------------------
|
3547
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3548
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3549
|
+
----------------------------------------------------------------
|
3550
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3551
|
+
----------------------------------------------------------------
|
3552
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3553
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3554
|
+
--------------------------------------------------------------
|
3555
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3556
|
+
--------------------------------------------------------------
|
3557
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3558
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3559
|
+
-------------------------------------------------------------
|
3560
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3561
|
+
-------------------------------------------------------------
|
3562
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3563
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3564
|
+
-----------------------------------------------------------------------------
|
3565
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3566
|
+
-----------------------------------------------------------------------------
|
3567
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3568
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3569
|
+
-------------------------------------------------------------
|
3570
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3571
|
+
-------------------------------------------------------------
|
3572
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3573
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3574
|
+
--------------------------------------------------------
|
3575
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3576
|
+
--------------------------------------------------------
|
3577
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3578
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3579
|
+
-----------------------------------------------------------------------
|
3580
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3581
|
+
-----------------------------------------------------------------------
|
3582
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3583
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3584
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3585
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3586
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3587
|
+
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3588
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3589
|
+
[1m[35m (15.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3590
|
+
[1m[35m (12.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3591
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3592
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3593
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:43:57.965360"], ["updated_at", "2018-09-18 14:43:57.965360"]]
|
3594
|
+
[1m[35m (10.4ms)[0m [1m[36mcommit transaction[0m
|
3595
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3596
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3597
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
3598
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3599
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3608
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3617
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3626
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3627
|
+
---------------------------------------------------------------------------
|
3628
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
3629
|
+
---------------------------------------------------------------------------
|
3630
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3631
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3632
|
+
----------------------------------------------------------------
|
3633
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3634
|
+
----------------------------------------------------------------
|
3635
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3636
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3637
|
+
-------------------------------------------------------------
|
3638
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3639
|
+
-------------------------------------------------------------
|
3640
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3641
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3642
|
+
-------------------------------------------------------------
|
3643
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3644
|
+
-------------------------------------------------------------
|
3645
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3646
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3647
|
+
--------------------------------------------------------
|
3648
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3649
|
+
--------------------------------------------------------
|
3650
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3651
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3652
|
+
-----------------------------------------------------------------------
|
3653
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3654
|
+
-----------------------------------------------------------------------
|
3655
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3656
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3657
|
+
----------------------------------------------------------------------------
|
3658
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3659
|
+
----------------------------------------------------------------------------
|
3660
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3661
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3662
|
+
--------------------------------------------------------------
|
3663
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3664
|
+
--------------------------------------------------------------
|
3665
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3666
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3667
|
+
--------------------------------------------------------------
|
3668
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3669
|
+
--------------------------------------------------------------
|
3670
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3671
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3672
|
+
------------------------------------------------------
|
3673
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3674
|
+
------------------------------------------------------
|
3675
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3676
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3677
|
+
-----------------------------------------------------------------------------
|
3678
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3679
|
+
-----------------------------------------------------------------------------
|
3680
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3681
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3682
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3683
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3684
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3685
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3686
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3687
|
+
[1m[35m (15.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3688
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3689
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3690
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3691
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:44:27.826481"], ["updated_at", "2018-09-18 14:44:27.826481"]]
|
3692
|
+
[1m[35m (10.5ms)[0m [1m[36mcommit transaction[0m
|
3693
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3694
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3695
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
3696
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3697
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3698
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3699
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3700
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3701
|
+
[1m[35m (33.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3702
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3703
|
+
[1m[35m (24.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3704
|
+
[1m[35m (12.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3705
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3706
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3707
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:44:47.347770"], ["updated_at", "2018-09-18 14:44:47.347770"]]
|
3708
|
+
[1m[35m (10.9ms)[0m [1m[36mcommit transaction[0m
|
3709
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3710
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3711
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
3712
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3713
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3714
|
+
--------------------------------------------------------------------------------
|
3715
|
+
ApplicationControllerTest: test_current_location_should_return_a_location_object
|
3716
|
+
--------------------------------------------------------------------------------
|
3717
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3718
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3719
|
+
---------------------------------------------------------------------------
|
3720
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
3721
|
+
---------------------------------------------------------------------------
|
3722
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3723
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3724
|
+
-----------------------------------------------------------------------
|
3725
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3726
|
+
-----------------------------------------------------------------------
|
3727
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3728
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3729
|
+
--------------------------------------------------------------
|
3730
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3731
|
+
--------------------------------------------------------------
|
3732
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3733
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3734
|
+
----------------------------------------------------------------
|
3735
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3736
|
+
----------------------------------------------------------------
|
3737
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3738
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3739
|
+
----------------------------------------------------------------------------
|
3740
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3741
|
+
----------------------------------------------------------------------------
|
3742
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3743
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3744
|
+
--------------------------------------------------------
|
3745
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3746
|
+
--------------------------------------------------------
|
3747
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3748
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3749
|
+
-------------------------------------------------------------
|
3750
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3751
|
+
-------------------------------------------------------------
|
3752
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3753
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3754
|
+
--------------------------------------------------------------
|
3755
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3756
|
+
--------------------------------------------------------------
|
3757
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3758
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3759
|
+
-----------------------------------------------------------------------------
|
3760
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3761
|
+
-----------------------------------------------------------------------------
|
3762
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3763
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3764
|
+
------------------------------------------------------
|
3765
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3766
|
+
------------------------------------------------------
|
3767
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3768
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3769
|
+
-------------------------------------------------------------
|
3770
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3771
|
+
-------------------------------------------------------------
|
3772
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3773
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3782
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3791
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3800
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3801
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3802
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3803
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3804
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3805
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3806
|
+
[1m[35m (15.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3807
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3808
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3809
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3810
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:45:57.567154"], ["updated_at", "2018-09-18 14:45:57.567154"]]
|
3811
|
+
[1m[35m (10.9ms)[0m [1m[36mcommit transaction[0m
|
3812
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3813
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3814
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
3815
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3816
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3825
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3834
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3843
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3844
|
+
----------------------------------------------------------------------------
|
3845
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3846
|
+
----------------------------------------------------------------------------
|
3847
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3848
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3849
|
+
-----------------------------------------------------------------------------
|
3850
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3851
|
+
-----------------------------------------------------------------------------
|
3852
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3853
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3854
|
+
-------------------------------------------------------------
|
3855
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3856
|
+
-------------------------------------------------------------
|
3857
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3858
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3859
|
+
-----------------------------------------------------------------------
|
3860
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3861
|
+
-----------------------------------------------------------------------
|
3862
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3863
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3864
|
+
--------------------------------------------------------------
|
3865
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3866
|
+
--------------------------------------------------------------
|
3867
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3868
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3869
|
+
----------------------------------------------------------------
|
3870
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3871
|
+
----------------------------------------------------------------
|
3872
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3873
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3874
|
+
--------------------------------------------------------
|
3875
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3876
|
+
--------------------------------------------------------
|
3877
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3878
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3879
|
+
------------------------------------------------------
|
3880
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3881
|
+
------------------------------------------------------
|
3882
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3883
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3884
|
+
--------------------------------------------------------------
|
3885
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3886
|
+
--------------------------------------------------------------
|
3887
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3888
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3889
|
+
-------------------------------------------------------------
|
3890
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3891
|
+
-------------------------------------------------------------
|
3892
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3893
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3894
|
+
---------------------------------------------------------------------------
|
3895
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
3896
|
+
---------------------------------------------------------------------------
|
3897
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3898
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3899
|
+
--------------------------------------------------------------------------------
|
3900
|
+
ApplicationControllerTest: test_current_location_should_return_a_location_object
|
3901
|
+
--------------------------------------------------------------------------------
|
3902
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3903
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3904
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3905
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3906
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3907
|
+
[1m[35m (12.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3908
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3909
|
+
[1m[35m (16.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3910
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3911
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3912
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3913
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:46:23.275010"], ["updated_at", "2018-09-18 14:46:23.275010"]]
|
3914
|
+
[1m[35m (10.5ms)[0m [1m[36mcommit transaction[0m
|
3915
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
3916
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3917
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
3918
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3919
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3920
|
+
--------------------------------------------------------------------------------
|
3921
|
+
ApplicationControllerTest: test_current_location_should_return_a_location_object
|
3922
|
+
--------------------------------------------------------------------------------
|
3923
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3924
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3925
|
+
---------------------------------------------------------------------------
|
3926
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
3927
|
+
---------------------------------------------------------------------------
|
3928
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3929
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3938
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3947
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3956
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3957
|
+
----------------------------------------------------------------
|
3958
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3959
|
+
----------------------------------------------------------------
|
3960
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3961
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3962
|
+
------------------------------------------------------
|
3963
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
3964
|
+
------------------------------------------------------
|
3965
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3966
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3967
|
+
--------------------------------------------------------------
|
3968
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3969
|
+
--------------------------------------------------------------
|
3970
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3971
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3972
|
+
-------------------------------------------------------------
|
3973
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
3974
|
+
-------------------------------------------------------------
|
3975
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3976
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3977
|
+
-----------------------------------------------------------------------------
|
3978
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
3979
|
+
-----------------------------------------------------------------------------
|
3980
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3981
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3982
|
+
-------------------------------------------------------------
|
3983
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
3984
|
+
-------------------------------------------------------------
|
3985
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3986
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3987
|
+
--------------------------------------------------------
|
3988
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
3989
|
+
--------------------------------------------------------
|
3990
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3991
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3992
|
+
--------------------------------------------------------------
|
3993
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3994
|
+
--------------------------------------------------------------
|
3995
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3996
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3997
|
+
-----------------------------------------------------------------------
|
3998
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3999
|
+
-----------------------------------------------------------------------
|
4000
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4001
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4002
|
+
----------------------------------------------------------------------------
|
4003
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
4004
|
+
----------------------------------------------------------------------------
|
4005
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4006
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4007
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4008
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4009
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4010
|
+
[1m[35m (12.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
4011
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4012
|
+
[1m[35m (15.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
4013
|
+
[1m[35m (11.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
4014
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
4015
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4016
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:46:41.366488"], ["updated_at", "2018-09-18 14:46:41.366488"]]
|
4017
|
+
[1m[35m (10.6ms)[0m [1m[36mcommit transaction[0m
|
4018
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
4019
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4020
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
4021
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4022
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4023
|
+
------------------------------------------------------
|
4024
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
4025
|
+
------------------------------------------------------
|
4026
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4027
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4028
|
+
--------------------------------------------------------------
|
4029
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
4030
|
+
--------------------------------------------------------------
|
4031
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4032
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4033
|
+
----------------------------------------------------------------------------
|
4034
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
4035
|
+
----------------------------------------------------------------------------
|
4036
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4037
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4038
|
+
-------------------------------------------------------------
|
4039
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
4040
|
+
-------------------------------------------------------------
|
4041
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4042
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4043
|
+
--------------------------------------------------------
|
4044
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
4045
|
+
--------------------------------------------------------
|
4046
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4047
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4048
|
+
-------------------------------------------------------------
|
4049
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
4050
|
+
-------------------------------------------------------------
|
4051
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4052
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4053
|
+
-----------------------------------------------------------------------------
|
4054
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
4055
|
+
-----------------------------------------------------------------------------
|
4056
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4057
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4058
|
+
-----------------------------------------------------------------------
|
4059
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
4060
|
+
-----------------------------------------------------------------------
|
4061
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4062
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4063
|
+
--------------------------------------------------------------
|
4064
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
4065
|
+
--------------------------------------------------------------
|
4066
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4067
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4068
|
+
----------------------------------------------------------------
|
4069
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
4070
|
+
----------------------------------------------------------------
|
4071
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4072
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4081
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4090
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4099
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4100
|
+
---------------------------------------------------------------------------
|
4101
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
4102
|
+
---------------------------------------------------------------------------
|
4103
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4104
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4105
|
+
--------------------------------------------------------------------------------
|
4106
|
+
ApplicationControllerTest: test_current_location_should_return_a_location_object
|
4107
|
+
--------------------------------------------------------------------------------
|
4108
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4109
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4110
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4111
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4112
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4113
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
4114
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4115
|
+
[1m[35m (15.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
4116
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
4117
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
4118
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4119
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-09-18 14:48:14.084530"], ["updated_at", "2018-09-18 14:48:14.084530"]]
|
4120
|
+
[1m[35m (10.4ms)[0m [1m[36mcommit transaction[0m
|
4121
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
4122
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4123
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
4124
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4125
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4126
|
+
--------------------------------------------------------------------------------
|
4127
|
+
ApplicationControllerTest: test_current_location_should_return_a_location_object
|
4128
|
+
--------------------------------------------------------------------------------
|
4129
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4130
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4131
|
+
---------------------------------------------------------------------------
|
4132
|
+
ApplicationControllerTest: test_current_location_should_return_the_location
|
4133
|
+
---------------------------------------------------------------------------
|
4134
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4135
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4144
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4153
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4162
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4163
|
+
------------------------------------------------------
|
4164
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
4165
|
+
------------------------------------------------------
|
4166
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4167
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4168
|
+
-----------------------------------------------------------------------------
|
4169
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
4170
|
+
-----------------------------------------------------------------------------
|
4171
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4172
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4173
|
+
--------------------------------------------------------
|
4174
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
4175
|
+
--------------------------------------------------------
|
4176
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4177
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4178
|
+
-----------------------------------------------------------------------
|
4179
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
4180
|
+
-----------------------------------------------------------------------
|
4181
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4182
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4183
|
+
-------------------------------------------------------------
|
4184
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
4185
|
+
-------------------------------------------------------------
|
4186
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4187
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4188
|
+
----------------------------------------------------------------------------
|
4189
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
4190
|
+
----------------------------------------------------------------------------
|
4191
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4192
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4193
|
+
-------------------------------------------------------------
|
4194
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
4195
|
+
-------------------------------------------------------------
|
4196
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4197
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4198
|
+
----------------------------------------------------------------
|
4199
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
4200
|
+
----------------------------------------------------------------
|
4201
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4202
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4203
|
+
--------------------------------------------------------------
|
4204
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
4205
|
+
--------------------------------------------------------------
|
4206
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4207
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4208
|
+
--------------------------------------------------------------
|
4209
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
4210
|
+
--------------------------------------------------------------
|
4211
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
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.
|
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-
|
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
|