spyme 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/controllers/spyme/locations_controller.rb +2 -2
- data/lib/spyme/model.rb +5 -5
- data/lib/spyme/version.rb +1 -1
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +15 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +40 -21
- data/test/dummy/log/test.log +2792 -431
- data/test/integration/spyme_test.rb +3 -3
- data/test/models/model_test.rb +20 -0
- metadata +37 -47
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d62bbbd73d3c056a462c280ce53b520edd3e4772e2694ef6e76795f1c2438fc9
|
4
|
+
data.tar.gz: 229b0a9259be177b264873c28aa4b0573bb9d6e3ee4c922d81f16fbe08f11e86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7241eb02b65df19c41bc74ba32b2be0886fd0660944a67a1395c62565495075f762b7ec5c2c4fb850b8cc09bc3804a7dc56a0ccb9ebc3189b04ffed4eb7530b9
|
7
|
+
data.tar.gz: 1831a383da43674bea6666e470eacb4237608d6e0be3fd07e9529b10b473587f879e3933a4a993b25d4b6b915a62216bd9adfc89baaf6fc7ac37c24e183813c6
|
data/lib/spyme/model.rb
CHANGED
@@ -5,8 +5,8 @@ module Spyme
|
|
5
5
|
|
6
6
|
attr_accessor :latitude, :longitude
|
7
7
|
|
8
|
-
validates :latitude, presence: true, numericality: {
|
9
|
-
validates :longitude, presence: true, numericality: {
|
8
|
+
validates :latitude, presence: true, numericality: { greater_than_or_equal_to: -90, less_than_or_equal_to: 90 }
|
9
|
+
validates :longitude, presence: true, numericality: { greater_than_or_equal_to: -180, less_than_or_equal_to: 180 }
|
10
10
|
|
11
11
|
def to_s
|
12
12
|
"#{latitude}, #{longitude}"
|
@@ -22,10 +22,10 @@ module Spyme
|
|
22
22
|
|
23
23
|
class << self
|
24
24
|
def from_session(session)
|
25
|
-
|
26
|
-
|
25
|
+
lat = session[:latitude]
|
26
|
+
lon = session[:longitude]
|
27
27
|
|
28
|
-
self.new(latitude:
|
28
|
+
self.new(latitude: lat.presence && lat.to_f, longitude: lon.presence && lon.to_f)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
data/lib/spyme/version.rb
CHANGED
@@ -18,6 +18,7 @@ module Dummy
|
|
18
18
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
19
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
20
|
# config.i18n.default_locale = :de
|
21
|
+
config.active_record.sqlite3.represent_boolean_as_integer = true
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 0) do
|
14
|
+
|
15
|
+
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,21 +1,40 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
1
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
2
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
3
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
4
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
5
|
+
by setting up a rake task which runs
|
6
|
+
|
7
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
8
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
9
|
+
|
10
|
+
for all models and all boolean columns, after which the flag must be set to
|
11
|
+
true by adding the following to your application.rb file:
|
12
|
+
|
13
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
14
|
+
(called from load at /home/pollo/.rbenv/versions/2.5.1/bin/rake:23)
|
15
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
16
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
17
|
+
[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
|
18
|
+
[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]]
|
19
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
20
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-09-17 19:18:05.401218"], ["updated_at", "2018-09-17 19:18:05.401218"]]
|
21
|
+
[1m[35m (10.7ms)[0m [1m[36mcommit transaction[0m
|
22
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
23
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
24
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
25
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
26
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
27
|
+
by setting up a rake task which runs
|
28
|
+
|
29
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
30
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
31
|
+
|
32
|
+
for all models and all boolean columns, after which the flag must be set to
|
33
|
+
true by adding the following to your application.rb file:
|
34
|
+
|
35
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
36
|
+
(called from load at /home/pollo/.rbenv/versions/2.5.1/bin/rake:23)
|
37
|
+
[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]]
|
38
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
39
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
40
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -1,731 +1,3092 @@
|
|
1
|
-
[1m[
|
1
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2
|
+
--------------------------------------------------------------
|
3
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
4
|
+
--------------------------------------------------------------
|
5
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7
|
+
-----------------------------------------------------------------------
|
8
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
9
|
+
-----------------------------------------------------------------------
|
10
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
11
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12
|
+
--------------------------------------------------------------
|
13
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
14
|
+
--------------------------------------------------------------
|
15
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
16
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
17
|
+
-------------------------------------------------------------
|
18
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
19
|
+
-------------------------------------------------------------
|
20
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
21
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
22
|
+
-----------------------------------------------------------------------------
|
23
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
24
|
+
-----------------------------------------------------------------------------
|
25
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
26
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
27
|
+
----------------------------------------------------------------
|
28
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
29
|
+
----------------------------------------------------------------
|
30
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
31
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
32
|
+
-------------------------------------------------------------
|
33
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
34
|
+
-------------------------------------------------------------
|
35
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
36
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
37
|
+
----------------------------------------------------------------------------
|
38
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
39
|
+
----------------------------------------------------------------------------
|
40
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
41
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
42
|
+
------------------------------------------------------
|
43
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
44
|
+
------------------------------------------------------
|
45
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
46
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
47
|
+
--------------------------------------------------------
|
48
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
49
|
+
--------------------------------------------------------
|
50
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
51
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52
|
+
---------------------------------------------------
|
53
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
54
|
+
---------------------------------------------------
|
55
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
56
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
57
|
+
-------------------------------------------------
|
58
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
59
|
+
-------------------------------------------------
|
60
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
61
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62
|
+
---------------------------------------------------------------------
|
63
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
64
|
+
---------------------------------------------------------------------
|
65
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:16:54 -0300
|
66
|
+
Processing by Spyme::LocationsController#create as HTML
|
67
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
68
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
69
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
70
|
+
---------------------------------------------------------------------
|
71
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
72
|
+
---------------------------------------------------------------------
|
73
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:17:25 -0300
|
74
|
+
Processing by Spyme::LocationsController#create as HTML
|
75
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
76
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
77
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
78
|
+
---------------------------------------------------
|
79
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
80
|
+
---------------------------------------------------
|
81
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
82
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
83
|
+
-------------------------------------------------
|
84
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
85
|
+
-------------------------------------------------
|
86
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
87
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
88
|
+
-----------------------------------------------------------------------
|
89
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
90
|
+
-----------------------------------------------------------------------
|
91
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
92
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
93
|
+
----------------------------------------------------------------------------
|
94
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
95
|
+
----------------------------------------------------------------------------
|
96
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
97
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
98
|
+
--------------------------------------------------------------
|
99
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
100
|
+
--------------------------------------------------------------
|
101
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
102
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
103
|
+
------------------------------------------------------
|
104
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
105
|
+
------------------------------------------------------
|
106
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
107
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
108
|
+
-------------------------------------------------------------
|
109
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
110
|
+
-------------------------------------------------------------
|
111
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
112
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
113
|
+
-------------------------------------------------------------
|
114
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
115
|
+
-------------------------------------------------------------
|
116
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
117
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
118
|
+
----------------------------------------------------------------
|
119
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
120
|
+
----------------------------------------------------------------
|
121
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
122
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
123
|
+
--------------------------------------------------------------
|
124
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
125
|
+
--------------------------------------------------------------
|
126
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
127
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
128
|
+
-----------------------------------------------------------------------------
|
129
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
130
|
+
-----------------------------------------------------------------------------
|
131
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
132
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
133
|
+
--------------------------------------------------------
|
134
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
135
|
+
--------------------------------------------------------
|
136
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
137
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
138
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
139
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
140
|
+
[1m[35m (11.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
141
|
+
[1m[35m (12.6ms)[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
|
142
|
+
[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]]
|
143
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
144
|
+
[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-17 19:18:19.999632"], ["updated_at", "2018-09-17 19:18:19.999632"]]
|
145
|
+
[1m[35m (9.5ms)[0m [1m[36mcommit transaction[0m
|
146
|
+
[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]]
|
147
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
148
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
149
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
150
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
151
|
+
---------------------------------------------------
|
152
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
153
|
+
---------------------------------------------------
|
154
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
155
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
156
|
+
-------------------------------------------------
|
157
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
158
|
+
-------------------------------------------------
|
159
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
160
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
161
|
+
---------------------------------------------------------------------
|
162
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
163
|
+
---------------------------------------------------------------------
|
164
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:18:20 -0300
|
165
|
+
Processing by Spyme::LocationsController#create as HTML
|
166
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
167
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
168
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
169
|
+
-----------------------------------------------------------------------
|
170
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
171
|
+
-----------------------------------------------------------------------
|
172
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
173
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
174
|
+
-------------------------------------------------------------
|
175
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
176
|
+
-------------------------------------------------------------
|
177
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
178
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
179
|
+
------------------------------------------------------
|
180
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
181
|
+
------------------------------------------------------
|
182
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
183
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
184
|
+
----------------------------------------------------------------
|
185
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
186
|
+
----------------------------------------------------------------
|
187
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
188
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
189
|
+
--------------------------------------------------------------
|
190
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
191
|
+
--------------------------------------------------------------
|
192
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
193
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
194
|
+
--------------------------------------------------------------
|
195
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
196
|
+
--------------------------------------------------------------
|
197
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
198
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
199
|
+
-----------------------------------------------------------------------------
|
200
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
201
|
+
-----------------------------------------------------------------------------
|
202
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
203
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
204
|
+
----------------------------------------------------------------------------
|
205
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
206
|
+
----------------------------------------------------------------------------
|
207
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
208
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
209
|
+
-------------------------------------------------------------
|
210
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
211
|
+
-------------------------------------------------------------
|
212
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
213
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
214
|
+
--------------------------------------------------------
|
215
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
216
|
+
--------------------------------------------------------
|
217
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
218
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
219
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
220
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
221
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
222
|
+
[1m[35m (12.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
223
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
224
|
+
[1m[35m (16.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
225
|
+
[1m[35m (11.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
|
226
|
+
[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]]
|
227
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
228
|
+
[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-17 19:20:45.228195"], ["updated_at", "2018-09-17 19:20:45.228195"]]
|
229
|
+
[1m[35m (11.1ms)[0m [1m[36mcommit transaction[0m
|
230
|
+
[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]]
|
231
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
232
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
233
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
234
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
235
|
+
-------------------------------------------------
|
236
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
237
|
+
-------------------------------------------------
|
238
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
239
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
240
|
+
---------------------------------------------------------------------
|
241
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
242
|
+
---------------------------------------------------------------------
|
243
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:20:45 -0300
|
244
|
+
Processing by Spyme::LocationsController#create as HTML
|
245
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
246
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
247
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
248
|
+
---------------------------------------------------
|
249
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
250
|
+
---------------------------------------------------
|
251
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
252
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
253
|
+
----------------------------------------------------------------------------
|
254
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
255
|
+
----------------------------------------------------------------------------
|
256
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
257
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
258
|
+
--------------------------------------------------------------
|
259
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
260
|
+
--------------------------------------------------------------
|
261
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
262
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
263
|
+
-------------------------------------------------------------
|
264
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
265
|
+
-------------------------------------------------------------
|
266
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
267
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
268
|
+
-------------------------------------------------------------
|
269
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
270
|
+
-------------------------------------------------------------
|
271
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
272
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
273
|
+
-----------------------------------------------------------------------
|
274
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
275
|
+
-----------------------------------------------------------------------
|
276
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
277
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
278
|
+
-----------------------------------------------------------------------------
|
279
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
280
|
+
-----------------------------------------------------------------------------
|
281
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
282
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
283
|
+
--------------------------------------------------------------
|
284
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
285
|
+
--------------------------------------------------------------
|
286
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
287
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
288
|
+
--------------------------------------------------------
|
289
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
290
|
+
--------------------------------------------------------
|
291
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
292
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
293
|
+
----------------------------------------------------------------
|
294
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
295
|
+
----------------------------------------------------------------
|
296
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
297
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
298
|
+
------------------------------------------------------
|
299
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
300
|
+
------------------------------------------------------
|
301
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
302
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
303
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
304
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
305
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
306
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
307
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
308
|
+
[1m[35m (15.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
309
|
+
[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
|
310
|
+
[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]]
|
311
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
312
|
+
[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-17 19:23:11.572179"], ["updated_at", "2018-09-17 19:23:11.572179"]]
|
313
|
+
[1m[35m (9.8ms)[0m [1m[36mcommit transaction[0m
|
314
|
+
[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]]
|
315
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
316
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
317
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
318
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
319
|
+
---------------------------------------------------------------------
|
320
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
321
|
+
---------------------------------------------------------------------
|
322
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:23:11 -0300
|
323
|
+
Processing by Spyme::LocationsController#create as HTML
|
324
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
325
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
326
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
327
|
+
---------------------------------------------------
|
328
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
329
|
+
---------------------------------------------------
|
330
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
331
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
332
|
+
-------------------------------------------------
|
333
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
334
|
+
-------------------------------------------------
|
335
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
336
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
337
|
+
----------------------------------------------------------------------------
|
338
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
339
|
+
----------------------------------------------------------------------------
|
340
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
341
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
342
|
+
--------------------------------------------------------
|
343
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
344
|
+
--------------------------------------------------------
|
345
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
346
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
347
|
+
--------------------------------------------------------------
|
348
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
349
|
+
--------------------------------------------------------------
|
350
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
351
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
352
|
+
-------------------------------------------------------------
|
353
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
354
|
+
-------------------------------------------------------------
|
355
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
356
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
357
|
+
-------------------------------------------------------------
|
358
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
359
|
+
-------------------------------------------------------------
|
360
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
361
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
362
|
+
--------------------------------------------------------------
|
363
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
364
|
+
--------------------------------------------------------------
|
365
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
366
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
367
|
+
-----------------------------------------------------------------------
|
368
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
369
|
+
-----------------------------------------------------------------------
|
370
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
371
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
372
|
+
-----------------------------------------------------------------------------
|
373
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
374
|
+
-----------------------------------------------------------------------------
|
375
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
376
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
377
|
+
------------------------------------------------------
|
378
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
379
|
+
------------------------------------------------------
|
380
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
381
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
382
|
+
----------------------------------------------------------------
|
383
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
384
|
+
----------------------------------------------------------------
|
385
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
386
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
387
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
388
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
389
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
390
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
391
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
392
|
+
[1m[35m (14.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
393
|
+
[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
|
394
|
+
[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]]
|
395
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
396
|
+
[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-17 19:24:35.756223"], ["updated_at", "2018-09-17 19:24:35.756223"]]
|
397
|
+
[1m[35m (10.5ms)[0m [1m[36mcommit transaction[0m
|
398
|
+
[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]]
|
399
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
400
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
401
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
402
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
403
|
+
----------------------------------------------------------------
|
404
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
405
|
+
----------------------------------------------------------------
|
406
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
407
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
408
|
+
--------------------------------------------------------
|
409
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
410
|
+
--------------------------------------------------------
|
411
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
412
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
413
|
+
--------------------------------------------------------------
|
414
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
415
|
+
--------------------------------------------------------------
|
416
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
417
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
418
|
+
--------------------------------------------------------------
|
419
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
420
|
+
--------------------------------------------------------------
|
421
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
422
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
423
|
+
-------------------------------------------------------------
|
424
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
425
|
+
-------------------------------------------------------------
|
426
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
427
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
428
|
+
------------------------------------------------------
|
429
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
430
|
+
------------------------------------------------------
|
431
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
432
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
433
|
+
-----------------------------------------------------------------------
|
434
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
435
|
+
-----------------------------------------------------------------------
|
436
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
437
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
438
|
+
-----------------------------------------------------------------------------
|
439
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
440
|
+
-----------------------------------------------------------------------------
|
441
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
442
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
443
|
+
----------------------------------------------------------------------------
|
444
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
445
|
+
----------------------------------------------------------------------------
|
446
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
447
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
448
|
+
-------------------------------------------------------------
|
449
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
450
|
+
-------------------------------------------------------------
|
451
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
452
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
453
|
+
---------------------------------------------------------------------
|
454
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
455
|
+
---------------------------------------------------------------------
|
456
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:24:35 -0300
|
457
|
+
Processing by Spyme::LocationsController#create as HTML
|
458
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
459
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
460
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
461
|
+
-------------------------------------------------
|
462
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
463
|
+
-------------------------------------------------
|
464
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
465
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
466
|
+
---------------------------------------------------
|
467
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
468
|
+
---------------------------------------------------
|
469
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
470
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
471
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
472
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
473
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
474
|
+
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
475
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
476
|
+
[1m[35m (15.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
477
|
+
[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
|
478
|
+
[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]]
|
479
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
480
|
+
[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-17 19:24:48.051889"], ["updated_at", "2018-09-17 19:24:48.051889"]]
|
481
|
+
[1m[35m (10.3ms)[0m [1m[36mcommit transaction[0m
|
482
|
+
[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]]
|
483
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
484
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
485
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
486
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
487
|
+
--------------------------------------------------------------
|
488
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
489
|
+
--------------------------------------------------------------
|
490
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
491
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
492
|
+
-------------------------------------------------------------
|
493
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
494
|
+
-------------------------------------------------------------
|
495
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
496
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
497
|
+
--------------------------------------------------------------
|
498
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
499
|
+
--------------------------------------------------------------
|
500
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
501
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
502
|
+
------------------------------------------------------
|
503
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
504
|
+
------------------------------------------------------
|
505
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
506
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
507
|
+
----------------------------------------------------------------
|
508
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
509
|
+
----------------------------------------------------------------
|
510
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
511
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
512
|
+
-----------------------------------------------------------------------------
|
513
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
514
|
+
-----------------------------------------------------------------------------
|
515
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
516
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
517
|
+
----------------------------------------------------------------------------
|
518
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
519
|
+
----------------------------------------------------------------------------
|
520
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
521
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
522
|
+
-----------------------------------------------------------------------
|
523
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
524
|
+
-----------------------------------------------------------------------
|
525
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
526
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
527
|
+
-------------------------------------------------------------
|
528
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
529
|
+
-------------------------------------------------------------
|
530
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
531
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
532
|
+
--------------------------------------------------------
|
533
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
534
|
+
--------------------------------------------------------
|
535
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
536
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
537
|
+
---------------------------------------------------------------------
|
538
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
539
|
+
---------------------------------------------------------------------
|
540
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:24:48 -0300
|
541
|
+
Processing by Spyme::LocationsController#create as HTML
|
542
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
543
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
544
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
545
|
+
---------------------------------------------------
|
546
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
547
|
+
---------------------------------------------------
|
548
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
549
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
550
|
+
-------------------------------------------------
|
551
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
552
|
+
-------------------------------------------------
|
553
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
554
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
555
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
556
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
557
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
558
|
+
[1m[35m (11.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
559
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
560
|
+
[1m[35m (15.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
561
|
+
[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
|
562
|
+
[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]]
|
563
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
564
|
+
[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-17 19:25:42.683839"], ["updated_at", "2018-09-17 19:25:42.683839"]]
|
565
|
+
[1m[35m (11.1ms)[0m [1m[36mcommit transaction[0m
|
566
|
+
[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]]
|
567
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
568
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
569
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
570
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
571
|
+
---------------------------------------------------------------------
|
572
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
573
|
+
---------------------------------------------------------------------
|
574
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:25:42 -0300
|
575
|
+
Processing by Spyme::LocationsController#create as HTML
|
576
|
+
Completed 400 Bad Request in 6ms (ActiveRecord: 0.0ms)
|
577
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
578
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
579
|
+
---------------------------------------------------
|
580
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
581
|
+
---------------------------------------------------
|
582
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
583
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
584
|
+
-------------------------------------------------
|
585
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
586
|
+
-------------------------------------------------
|
587
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
588
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
589
|
+
--------------------------------------------------------------
|
590
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
591
|
+
--------------------------------------------------------------
|
592
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
593
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
594
|
+
-----------------------------------------------------------------------
|
595
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
596
|
+
-----------------------------------------------------------------------
|
597
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
598
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
599
|
+
--------------------------------------------------------
|
600
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
601
|
+
--------------------------------------------------------
|
602
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
603
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
604
|
+
----------------------------------------------------------------------------
|
605
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
606
|
+
----------------------------------------------------------------------------
|
607
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
608
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
609
|
+
-------------------------------------------------------------
|
610
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
611
|
+
-------------------------------------------------------------
|
612
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
613
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
614
|
+
------------------------------------------------------
|
615
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
616
|
+
------------------------------------------------------
|
617
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
618
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
619
|
+
----------------------------------------------------------------
|
620
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
621
|
+
----------------------------------------------------------------
|
622
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
623
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
624
|
+
-------------------------------------------------------------
|
625
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
626
|
+
-------------------------------------------------------------
|
627
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
628
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
629
|
+
--------------------------------------------------------------
|
630
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
631
|
+
--------------------------------------------------------------
|
632
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
633
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
634
|
+
-----------------------------------------------------------------------------
|
635
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
636
|
+
-----------------------------------------------------------------------------
|
637
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
638
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
639
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
640
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
641
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
642
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
643
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
644
|
+
[1m[35m (15.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
645
|
+
[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
|
646
|
+
[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]]
|
647
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
648
|
+
[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-17 19:25:53.481586"], ["updated_at", "2018-09-17 19:25:53.481586"]]
|
649
|
+
[1m[35m (9.8ms)[0m [1m[36mcommit transaction[0m
|
650
|
+
[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]]
|
651
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
652
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
653
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
654
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
655
|
+
------------------------------------------------------
|
656
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
657
|
+
------------------------------------------------------
|
658
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
659
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
660
|
+
--------------------------------------------------------
|
661
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
662
|
+
--------------------------------------------------------
|
663
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
664
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
665
|
+
-------------------------------------------------------------
|
666
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
667
|
+
-------------------------------------------------------------
|
668
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
669
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
670
|
+
----------------------------------------------------------------------------
|
671
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
672
|
+
----------------------------------------------------------------------------
|
673
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
674
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
675
|
+
-------------------------------------------------------------
|
676
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
677
|
+
-------------------------------------------------------------
|
678
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
679
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
680
|
+
-----------------------------------------------------------------------------
|
681
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
682
|
+
-----------------------------------------------------------------------------
|
683
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
684
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
685
|
+
-----------------------------------------------------------------------
|
686
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
687
|
+
-----------------------------------------------------------------------
|
688
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
689
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
690
|
+
----------------------------------------------------------------
|
691
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
692
|
+
----------------------------------------------------------------
|
693
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
694
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
695
|
+
--------------------------------------------------------------
|
696
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
697
|
+
--------------------------------------------------------------
|
698
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
699
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
700
|
+
--------------------------------------------------------------
|
701
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
702
|
+
--------------------------------------------------------------
|
703
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
704
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
705
|
+
-------------------------------------------------
|
706
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
707
|
+
-------------------------------------------------
|
708
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
709
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
710
|
+
---------------------------------------------------------------------
|
711
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
712
|
+
---------------------------------------------------------------------
|
713
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:25:53 -0300
|
714
|
+
Processing by Spyme::LocationsController#create as HTML
|
715
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
716
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
717
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
718
|
+
---------------------------------------------------
|
719
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
720
|
+
---------------------------------------------------
|
721
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
722
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
723
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
724
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
725
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
726
|
+
[1m[35m (11.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
727
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
728
|
+
[1m[35m (16.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
729
|
+
[1m[35m (11.2ms)[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
|
730
|
+
[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]]
|
731
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
732
|
+
[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-17 19:26:02.599338"], ["updated_at", "2018-09-17 19:26:02.599338"]]
|
733
|
+
[1m[35m (10.2ms)[0m [1m[36mcommit transaction[0m
|
734
|
+
[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]]
|
735
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
736
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
737
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
738
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
739
|
+
-------------------------------------------------------------
|
740
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
741
|
+
-------------------------------------------------------------
|
742
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
743
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
744
|
+
------------------------------------------------------
|
745
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
746
|
+
------------------------------------------------------
|
747
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
748
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
749
|
+
--------------------------------------------------------------
|
750
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
751
|
+
--------------------------------------------------------------
|
752
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
753
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
754
|
+
----------------------------------------------------------------
|
755
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
756
|
+
----------------------------------------------------------------
|
757
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
758
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
759
|
+
--------------------------------------------------------
|
760
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
761
|
+
--------------------------------------------------------
|
762
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
763
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
764
|
+
-----------------------------------------------------------------------------
|
765
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
766
|
+
-----------------------------------------------------------------------------
|
767
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
768
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
769
|
+
----------------------------------------------------------------------------
|
770
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
771
|
+
----------------------------------------------------------------------------
|
772
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
773
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
774
|
+
--------------------------------------------------------------
|
775
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
776
|
+
--------------------------------------------------------------
|
777
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
778
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
779
|
+
-----------------------------------------------------------------------
|
780
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
781
|
+
-----------------------------------------------------------------------
|
782
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
783
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
784
|
+
-------------------------------------------------------------
|
785
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
786
|
+
-------------------------------------------------------------
|
787
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
788
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
789
|
+
---------------------------------------------------
|
790
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
791
|
+
---------------------------------------------------
|
792
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:26:11 -0300
|
793
|
+
Processing by Spyme::LocationsController#create as HTML
|
794
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
795
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
796
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
797
|
+
---------------------------------------------------------------------
|
798
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
799
|
+
---------------------------------------------------------------------
|
800
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:26:31 -0300
|
801
|
+
Processing by Spyme::LocationsController#create as HTML
|
802
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
803
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
804
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
805
|
+
-------------------------------------------------
|
806
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
807
|
+
-------------------------------------------------
|
808
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
809
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
810
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
811
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
812
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
813
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
814
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
815
|
+
[1m[35m (16.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
816
|
+
[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
|
817
|
+
[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]]
|
818
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
819
|
+
[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-17 19:26:42.362148"], ["updated_at", "2018-09-17 19:26:42.362148"]]
|
820
|
+
[1m[35m (10.0ms)[0m [1m[36mcommit transaction[0m
|
821
|
+
[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]]
|
822
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
823
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
824
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
825
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
826
|
+
-----------------------------------------------------------------------------
|
827
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
828
|
+
-----------------------------------------------------------------------------
|
829
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
830
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
831
|
+
-----------------------------------------------------------------------
|
832
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
833
|
+
-----------------------------------------------------------------------
|
834
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
835
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
836
|
+
----------------------------------------------------------------
|
837
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
838
|
+
----------------------------------------------------------------
|
839
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
840
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
841
|
+
--------------------------------------------------------------
|
842
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
843
|
+
--------------------------------------------------------------
|
844
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
845
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
846
|
+
--------------------------------------------------------
|
847
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
848
|
+
--------------------------------------------------------
|
849
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
850
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
851
|
+
------------------------------------------------------
|
852
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
853
|
+
------------------------------------------------------
|
854
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
855
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
856
|
+
-------------------------------------------------------------
|
857
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
858
|
+
-------------------------------------------------------------
|
859
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
860
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
861
|
+
----------------------------------------------------------------------------
|
862
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
863
|
+
----------------------------------------------------------------------------
|
864
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
865
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
866
|
+
--------------------------------------------------------------
|
867
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
868
|
+
--------------------------------------------------------------
|
869
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
870
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
871
|
+
-------------------------------------------------------------
|
872
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
873
|
+
-------------------------------------------------------------
|
874
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
875
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
876
|
+
---------------------------------------------------------------------
|
877
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
878
|
+
---------------------------------------------------------------------
|
879
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:26:42 -0300
|
880
|
+
Processing by Spyme::LocationsController#create as HTML
|
881
|
+
Completed 400 Bad Request in 18945ms (ActiveRecord: 0.0ms)
|
882
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
883
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
884
|
+
-------------------------------------------------
|
885
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
886
|
+
-------------------------------------------------
|
887
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
888
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
889
|
+
---------------------------------------------------
|
890
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
891
|
+
---------------------------------------------------
|
892
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
893
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
894
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
895
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
896
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
897
|
+
[1m[35m (11.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
898
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
899
|
+
[1m[35m (16.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
900
|
+
[1m[35m (10.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
|
901
|
+
[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]]
|
902
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
903
|
+
[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-17 19:27:21.091999"], ["updated_at", "2018-09-17 19:27:21.091999"]]
|
904
|
+
[1m[35m (10.4ms)[0m [1m[36mcommit transaction[0m
|
905
|
+
[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]]
|
906
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
907
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
908
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
909
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
910
|
+
---------------------------------------------------
|
911
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
912
|
+
---------------------------------------------------
|
913
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
914
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
915
|
+
-------------------------------------------------
|
916
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
917
|
+
-------------------------------------------------
|
918
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
919
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
920
|
+
--------------------------------------------------------------
|
921
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
922
|
+
--------------------------------------------------------------
|
923
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
924
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
925
|
+
-------------------------------------------------------------
|
926
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
927
|
+
-------------------------------------------------------------
|
928
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
929
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
930
|
+
----------------------------------------------------------------
|
931
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
932
|
+
----------------------------------------------------------------
|
933
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
934
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
935
|
+
-------------------------------------------------------------
|
936
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
937
|
+
-------------------------------------------------------------
|
938
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
939
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
940
|
+
-----------------------------------------------------------------------
|
941
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
942
|
+
-----------------------------------------------------------------------
|
943
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
944
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
945
|
+
----------------------------------------------------------------------------
|
946
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
947
|
+
----------------------------------------------------------------------------
|
948
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
949
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
950
|
+
--------------------------------------------------------
|
951
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
952
|
+
--------------------------------------------------------
|
953
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
954
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
955
|
+
--------------------------------------------------------------
|
956
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
957
|
+
--------------------------------------------------------------
|
958
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
959
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
960
|
+
------------------------------------------------------
|
961
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
962
|
+
------------------------------------------------------
|
963
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
964
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
965
|
+
-----------------------------------------------------------------------------
|
966
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
967
|
+
-----------------------------------------------------------------------------
|
968
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
969
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
970
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
971
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
972
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
973
|
+
[1m[35m (11.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
974
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
975
|
+
[1m[35m (16.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
976
|
+
[1m[35m (11.6ms)[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
|
977
|
+
[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]]
|
978
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
979
|
+
[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-17 19:27:57.894995"], ["updated_at", "2018-09-17 19:27:57.894995"]]
|
980
|
+
[1m[35m (10.2ms)[0m [1m[36mcommit transaction[0m
|
981
|
+
[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]]
|
982
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
983
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
984
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
985
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
986
|
+
------------------------------------------------------
|
987
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
988
|
+
------------------------------------------------------
|
989
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
990
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
991
|
+
--------------------------------------------------------------
|
992
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
993
|
+
--------------------------------------------------------------
|
994
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
995
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
996
|
+
----------------------------------------------------------------
|
997
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
998
|
+
----------------------------------------------------------------
|
999
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1000
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1001
|
+
----------------------------------------------------------------------------
|
1002
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
1003
|
+
----------------------------------------------------------------------------
|
1004
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1005
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1006
|
+
--------------------------------------------------------------
|
1007
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1008
|
+
--------------------------------------------------------------
|
1009
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1010
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1011
|
+
-------------------------------------------------------------
|
1012
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1013
|
+
-------------------------------------------------------------
|
1014
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1015
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1016
|
+
-----------------------------------------------------------------------------
|
1017
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1018
|
+
-----------------------------------------------------------------------------
|
1019
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1020
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1021
|
+
--------------------------------------------------------
|
1022
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1023
|
+
--------------------------------------------------------
|
1024
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1025
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1026
|
+
-------------------------------------------------------------
|
1027
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1028
|
+
-------------------------------------------------------------
|
1029
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1030
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1031
|
+
-----------------------------------------------------------------------
|
1032
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1033
|
+
-----------------------------------------------------------------------
|
1034
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1035
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1036
|
+
---------------------------------------------------------------------
|
1037
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1038
|
+
---------------------------------------------------------------------
|
1039
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:27:58 -0300
|
1040
|
+
Processing by Spyme::LocationsController#create as HTML
|
1041
|
+
Completed 400 Bad Request in 2824ms (ActiveRecord: 0.0ms)
|
1042
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1043
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1044
|
+
---------------------------------------------------
|
1045
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
1046
|
+
---------------------------------------------------
|
1047
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:00 -0300
|
1048
|
+
Processing by Spyme::LocationsController#create as HTML
|
1049
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1050
|
+
Completed 500 Internal Server Error in 1149ms (ActiveRecord: 0.0ms)
|
1051
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1052
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1053
|
+
-------------------------------------------------
|
1054
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
1055
|
+
-------------------------------------------------
|
1056
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:02 -0300
|
1057
|
+
Processing by Spyme::LocationsController#create as HTML
|
1058
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1059
|
+
Completed 500 Internal Server Error in 1126ms (ActiveRecord: 0.0ms)
|
1060
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1061
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1062
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1063
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1064
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1065
|
+
[1m[35m (11.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1066
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1067
|
+
[1m[35m (15.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1068
|
+
[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
|
1069
|
+
[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]]
|
1070
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1071
|
+
[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-17 19:28:36.178038"], ["updated_at", "2018-09-17 19:28:36.178038"]]
|
1072
|
+
[1m[35m (10.1ms)[0m [1m[36mcommit transaction[0m
|
1073
|
+
[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]]
|
1074
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1075
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
1076
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1077
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1078
|
+
---------------------------------------------------
|
1079
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
1080
|
+
---------------------------------------------------
|
1081
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:36 -0300
|
1082
|
+
Processing by Spyme::LocationsController#create as HTML
|
1083
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1084
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
1085
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1086
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1087
|
+
---------------------------------------------------------------------
|
1088
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1089
|
+
---------------------------------------------------------------------
|
1090
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:36 -0300
|
1091
|
+
Processing by Spyme::LocationsController#create as HTML
|
1092
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
1093
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1094
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1095
|
+
-------------------------------------------------
|
1096
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
1097
|
+
-------------------------------------------------
|
1098
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:36 -0300
|
1099
|
+
Processing by Spyme::LocationsController#create as HTML
|
1100
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1101
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
1102
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1103
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1104
|
+
-----------------------------------------------------------------------
|
1105
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1106
|
+
-----------------------------------------------------------------------
|
1107
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1108
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1109
|
+
-------------------------------------------------------------
|
1110
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1111
|
+
-------------------------------------------------------------
|
1112
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1113
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1114
|
+
-------------------------------------------------------------
|
1115
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1116
|
+
-------------------------------------------------------------
|
1117
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1118
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1119
|
+
-----------------------------------------------------------------------------
|
1120
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1121
|
+
-----------------------------------------------------------------------------
|
1122
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1123
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1124
|
+
------------------------------------------------------
|
1125
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1126
|
+
------------------------------------------------------
|
1127
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1128
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1129
|
+
--------------------------------------------------------------
|
1130
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1131
|
+
--------------------------------------------------------------
|
1132
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1133
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1134
|
+
--------------------------------------------------------
|
1135
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1136
|
+
--------------------------------------------------------
|
1137
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1138
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1139
|
+
----------------------------------------------------------------
|
1140
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1141
|
+
----------------------------------------------------------------
|
1142
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1143
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1144
|
+
----------------------------------------------------------------------------
|
1145
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
1146
|
+
----------------------------------------------------------------------------
|
1147
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1148
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1149
|
+
--------------------------------------------------------------
|
1150
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1151
|
+
--------------------------------------------------------------
|
1152
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1153
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1154
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1155
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1156
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1157
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1158
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1159
|
+
[1m[35m (15.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1160
|
+
[1m[35m (11.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
|
1161
|
+
[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]]
|
1162
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1163
|
+
[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-17 19:28:52.057480"], ["updated_at", "2018-09-17 19:28:52.057480"]]
|
1164
|
+
[1m[35m (10.4ms)[0m [1m[36mcommit transaction[0m
|
1165
|
+
[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]]
|
1166
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
1167
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
1168
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1169
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1170
|
+
----------------------------------------------------------------------------
|
1171
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
1172
|
+
----------------------------------------------------------------------------
|
1173
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1174
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1175
|
+
----------------------------------------------------------------
|
1176
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1177
|
+
----------------------------------------------------------------
|
1178
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1179
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1180
|
+
------------------------------------------------------
|
1181
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1182
|
+
------------------------------------------------------
|
1183
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1184
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1185
|
+
--------------------------------------------------------------
|
1186
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1187
|
+
--------------------------------------------------------------
|
1188
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1189
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1190
|
+
-------------------------------------------------------------
|
1191
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1192
|
+
-------------------------------------------------------------
|
1193
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1194
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1195
|
+
-----------------------------------------------------------------------
|
1196
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1197
|
+
-----------------------------------------------------------------------
|
1198
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1199
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1200
|
+
--------------------------------------------------------------
|
1201
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1202
|
+
--------------------------------------------------------------
|
1203
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1204
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1205
|
+
--------------------------------------------------------
|
1206
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1207
|
+
--------------------------------------------------------
|
1208
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1209
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1210
|
+
-----------------------------------------------------------------------------
|
1211
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1212
|
+
-----------------------------------------------------------------------------
|
1213
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1214
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1215
|
+
-------------------------------------------------------------
|
1216
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1217
|
+
-------------------------------------------------------------
|
1218
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1219
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1220
|
+
---------------------------------------------------------------------
|
1221
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1222
|
+
---------------------------------------------------------------------
|
1223
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:52 -0300
|
1224
|
+
Processing by Spyme::LocationsController#create as HTML
|
1225
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
1226
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1227
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1228
|
+
-------------------------------------------------
|
1229
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
1230
|
+
-------------------------------------------------
|
1231
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:52 -0300
|
1232
|
+
Processing by Spyme::LocationsController#create as HTML
|
1233
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1234
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
1235
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1236
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1237
|
+
---------------------------------------------------
|
1238
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
1239
|
+
---------------------------------------------------
|
1240
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:28:52 -0300
|
1241
|
+
Processing by Spyme::LocationsController#create as HTML
|
1242
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1243
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
1244
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1245
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1246
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1247
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1248
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1249
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1250
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1251
|
+
[1m[35m (13.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1252
|
+
[1m[35m (11.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
|
1253
|
+
[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]]
|
1254
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1255
|
+
[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-17 19:29:08.620060"], ["updated_at", "2018-09-17 19:29:08.620060"]]
|
1256
|
+
[1m[35m (10.3ms)[0m [1m[36mcommit transaction[0m
|
1257
|
+
[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]]
|
1258
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1259
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
1260
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1261
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1262
|
+
-------------------------------------------------
|
1263
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
1264
|
+
-------------------------------------------------
|
1265
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:08 -0300
|
1266
|
+
Processing by Spyme::LocationsController#create as HTML
|
1267
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1268
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
1269
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1270
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1271
|
+
---------------------------------------------------------------------
|
1272
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1273
|
+
---------------------------------------------------------------------
|
1274
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:08 -0300
|
1275
|
+
Processing by Spyme::LocationsController#create as HTML
|
1276
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
1277
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1278
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1279
|
+
---------------------------------------------------
|
1280
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
1281
|
+
---------------------------------------------------
|
1282
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:08 -0300
|
1283
|
+
Processing by Spyme::LocationsController#create as HTML
|
1284
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1285
|
+
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
1286
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1287
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1288
|
+
--------------------------------------------------------------
|
1289
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1290
|
+
--------------------------------------------------------------
|
1291
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1292
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1293
|
+
-------------------------------------------------------------
|
1294
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1295
|
+
-------------------------------------------------------------
|
1296
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1297
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1298
|
+
--------------------------------------------------------------
|
1299
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1300
|
+
--------------------------------------------------------------
|
1301
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1302
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1303
|
+
-----------------------------------------------------------------------------
|
1304
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1305
|
+
-----------------------------------------------------------------------------
|
1306
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1307
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1308
|
+
-------------------------------------------------------------
|
1309
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1310
|
+
-------------------------------------------------------------
|
1311
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1312
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1313
|
+
------------------------------------------------------
|
1314
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1315
|
+
------------------------------------------------------
|
1316
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1317
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1318
|
+
----------------------------------------------------------------
|
1319
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1320
|
+
----------------------------------------------------------------
|
1321
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1322
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1323
|
+
--------------------------------------------------------
|
1324
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1325
|
+
--------------------------------------------------------
|
1326
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1327
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1328
|
+
-----------------------------------------------------------------------
|
1329
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1330
|
+
-----------------------------------------------------------------------
|
1331
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1332
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1333
|
+
----------------------------------------------------------------------------
|
1334
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
1335
|
+
----------------------------------------------------------------------------
|
1336
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1337
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1338
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1339
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1340
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1341
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1342
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1343
|
+
[1m[35m (16.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1344
|
+
[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
|
1345
|
+
[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]]
|
1346
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1347
|
+
[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-17 19:29:50.261812"], ["updated_at", "2018-09-17 19:29:50.261812"]]
|
1348
|
+
[1m[35m (10.6ms)[0m [1m[36mcommit transaction[0m
|
1349
|
+
[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]]
|
1350
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1351
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
1352
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1353
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1354
|
+
-------------------------------------------------------------
|
1355
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1356
|
+
-------------------------------------------------------------
|
1357
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1358
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1359
|
+
------------------------------------------------------
|
1360
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1361
|
+
------------------------------------------------------
|
1362
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1363
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1364
|
+
-------------------------------------------------------------
|
1365
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1366
|
+
-------------------------------------------------------------
|
1367
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1368
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1369
|
+
--------------------------------------------------------------
|
1370
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1371
|
+
--------------------------------------------------------------
|
1372
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1373
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1374
|
+
-----------------------------------------------------------------------
|
1375
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1376
|
+
-----------------------------------------------------------------------
|
1377
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1378
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1379
|
+
----------------------------------------------------------------
|
1380
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1381
|
+
----------------------------------------------------------------
|
1382
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1383
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1384
|
+
--------------------------------------------------------
|
1385
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1386
|
+
--------------------------------------------------------
|
1387
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1388
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1389
|
+
----------------------------------------------------------------------------
|
1390
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
1391
|
+
----------------------------------------------------------------------------
|
1392
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1393
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1394
|
+
--------------------------------------------------------------
|
1395
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1396
|
+
--------------------------------------------------------------
|
1397
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1398
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1399
|
+
-----------------------------------------------------------------------------
|
1400
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1401
|
+
-----------------------------------------------------------------------------
|
1402
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1403
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2
1404
|
---------------------------------------------------------------------
|
3
1405
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
4
1406
|
---------------------------------------------------------------------
|
5
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
6
|
-
|
7
|
-
|
1407
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:50 -0300
|
1408
|
+
Processing by Spyme::LocationsController#create as HTML
|
1409
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
1410
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1411
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8
1412
|
---------------------------------------------------
|
9
1413
|
SpymeTest: test_post_to_spyme_should_return_success
|
10
1414
|
---------------------------------------------------
|
11
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
12
|
-
|
13
|
-
|
1415
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:50 -0300
|
1416
|
+
Processing by Spyme::LocationsController#create as HTML
|
1417
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1418
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
1419
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1420
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14
1421
|
-------------------------------------------------
|
15
1422
|
SpymeTest: test_post_to_spyme_should_store_coords
|
16
1423
|
-------------------------------------------------
|
17
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
[1m[35m (0.
|
24
|
-
[1m[
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
[1m[35m (
|
29
|
-
[1m[
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
[1m[35m (
|
34
|
-
[1m[
|
1424
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:29:50 -0300
|
1425
|
+
Processing by Spyme::LocationsController#create as HTML
|
1426
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1427
|
+
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
1428
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1429
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1430
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1431
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1432
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1433
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1434
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1435
|
+
[1m[35m (15.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1436
|
+
[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
|
1437
|
+
[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]]
|
1438
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1439
|
+
[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-17 19:30:06.012103"], ["updated_at", "2018-09-17 19:30:06.012103"]]
|
1440
|
+
[1m[35m (10.9ms)[0m [1m[36mcommit transaction[0m
|
1441
|
+
[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]]
|
1442
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1443
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
1444
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1445
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1446
|
+
-------------------------------------------------------------
|
1447
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1448
|
+
-------------------------------------------------------------
|
1449
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1450
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1451
|
+
----------------------------------------------------------------
|
1452
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1453
|
+
----------------------------------------------------------------
|
1454
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1455
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1456
|
+
-------------------------------------------------------------
|
1457
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1458
|
+
-------------------------------------------------------------
|
1459
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1460
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1461
|
+
------------------------------------------------------
|
1462
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1463
|
+
------------------------------------------------------
|
1464
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1465
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1466
|
+
-----------------------------------------------------------------------
|
1467
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1468
|
+
-----------------------------------------------------------------------
|
1469
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1470
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1471
|
+
--------------------------------------------------------------
|
1472
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1473
|
+
--------------------------------------------------------------
|
1474
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1475
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
35
1476
|
--------------------------------------------------------
|
36
1477
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
37
1478
|
--------------------------------------------------------
|
38
|
-
[1m[35m (0.0ms)[0m
|
39
|
-
[1m[
|
40
|
-
|
41
|
-
ModelTest:
|
42
|
-
|
43
|
-
[1m[35m (0.
|
44
|
-
[1m[
|
1479
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1480
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1481
|
+
--------------------------------------------------------------
|
1482
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1483
|
+
--------------------------------------------------------------
|
1484
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1485
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45
1486
|
-----------------------------------------------------------------------------
|
46
1487
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
47
1488
|
-----------------------------------------------------------------------------
|
48
|
-
[1m[35m (0.
|
49
|
-
[1m[
|
1489
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1490
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
50
1491
|
----------------------------------------------------------------------------
|
51
1492
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
52
1493
|
----------------------------------------------------------------------------
|
53
|
-
[1m[35m (0.
|
54
|
-
[1m[
|
55
|
-
--------------------------------------------------------
|
56
|
-
ModelTest: test_to_hash_should_give_the_right_hash_value
|
57
|
-
--------------------------------------------------------
|
58
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
59
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
60
|
-
---------------------------------------------------------------------
|
61
|
-
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
62
|
-
---------------------------------------------------------------------
|
63
|
-
Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 12:06:20 -0300
|
64
|
-
Processing by Spyme::LocationsController#create as HTML
|
65
|
-
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
66
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
67
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1494
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1495
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
68
1496
|
---------------------------------------------------
|
69
1497
|
SpymeTest: test_post_to_spyme_should_return_success
|
70
1498
|
---------------------------------------------------
|
71
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1499
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:30:06 -0300
|
72
1500
|
Processing by Spyme::LocationsController#create as HTML
|
73
1501
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
74
|
-
Completed 201 Created in
|
75
|
-
[1m[35m (0.1ms)[0m
|
76
|
-
[1m[
|
1502
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
1503
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1504
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
77
1505
|
-------------------------------------------------
|
78
1506
|
SpymeTest: test_post_to_spyme_should_store_coords
|
79
1507
|
-------------------------------------------------
|
80
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1508
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:30:06 -0300
|
81
1509
|
Processing by Spyme::LocationsController#create as HTML
|
82
1510
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
83
|
-
Completed 201 Created in
|
84
|
-
[1m[35m (0.1ms)[0m
|
85
|
-
[1m[
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
1511
|
+
Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
|
1512
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1513
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1514
|
+
---------------------------------------------------------------------
|
1515
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1516
|
+
---------------------------------------------------------------------
|
1517
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:30:06 -0300
|
1518
|
+
Processing by Spyme::LocationsController#create as HTML
|
1519
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
1520
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1521
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1522
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1523
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1524
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1525
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1526
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1527
|
+
[1m[35m (13.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1528
|
+
[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
|
1529
|
+
[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]]
|
1530
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1531
|
+
[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-17 19:31:20.788597"], ["updated_at", "2018-09-17 19:31:20.788597"]]
|
1532
|
+
[1m[35m (10.7ms)[0m [1m[36mcommit transaction[0m
|
1533
|
+
[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]]
|
1534
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1535
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
1536
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1537
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1538
|
+
----------------------------------------------------------------
|
1539
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1540
|
+
----------------------------------------------------------------
|
1541
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1542
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1543
|
+
--------------------------------------------------------------
|
1544
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1545
|
+
--------------------------------------------------------------
|
1546
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1547
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1548
|
+
-------------------------------------------------------------
|
1549
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1550
|
+
-------------------------------------------------------------
|
1551
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1552
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1553
|
+
-------------------------------------------------------------
|
1554
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1555
|
+
-------------------------------------------------------------
|
1556
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1557
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1558
|
+
------------------------------------------------------
|
1559
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1560
|
+
------------------------------------------------------
|
1561
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1562
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
91
1563
|
-----------------------------------------------------------------------------
|
92
1564
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
93
1565
|
-----------------------------------------------------------------------------
|
94
|
-
[1m[35m (0.
|
95
|
-
[1m[
|
1566
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1567
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1568
|
+
--------------------------------------------------------------
|
1569
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1570
|
+
--------------------------------------------------------------
|
1571
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1572
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
96
1573
|
----------------------------------------------------------------------------
|
97
1574
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
98
1575
|
----------------------------------------------------------------------------
|
99
|
-
[1m[35m (0.
|
100
|
-
[1m[
|
1576
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1577
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1578
|
+
-----------------------------------------------------------------------
|
1579
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1580
|
+
-----------------------------------------------------------------------
|
1581
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1582
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
101
1583
|
--------------------------------------------------------
|
102
1584
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
103
1585
|
--------------------------------------------------------
|
104
|
-
[1m[35m (0.0ms)[0m
|
105
|
-
[1m[
|
1586
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1587
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
106
1588
|
---------------------------------------------------------------------
|
107
1589
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
108
1590
|
---------------------------------------------------------------------
|
109
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1591
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:31:20 -0300
|
110
1592
|
Processing by Spyme::LocationsController#create as HTML
|
111
1593
|
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
112
|
-
[1m[35m (0.1ms)[0m
|
113
|
-
[1m[
|
1594
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1595
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
114
1596
|
---------------------------------------------------
|
115
1597
|
SpymeTest: test_post_to_spyme_should_return_success
|
116
1598
|
---------------------------------------------------
|
117
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1599
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:31:20 -0300
|
118
1600
|
Processing by Spyme::LocationsController#create as HTML
|
119
1601
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
120
|
-
|
121
|
-
|
122
|
-
[1m[
|
1602
|
+
Unpermitted parameter: :location
|
1603
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
1604
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1605
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
123
1606
|
-------------------------------------------------
|
124
1607
|
SpymeTest: test_post_to_spyme_should_store_coords
|
125
1608
|
-------------------------------------------------
|
126
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1609
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:31:20 -0300
|
127
1610
|
Processing by Spyme::LocationsController#create as HTML
|
128
1611
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
129
|
-
|
130
|
-
|
131
|
-
[1m[
|
1612
|
+
Unpermitted parameter: :location
|
1613
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
1614
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1615
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1616
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1617
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1618
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1619
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1620
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1621
|
+
[1m[35m (15.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1622
|
+
[1m[35m (12.6ms)[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
|
1623
|
+
[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]]
|
1624
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1625
|
+
[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-17 19:32:01.191702"], ["updated_at", "2018-09-17 19:32:01.191702"]]
|
1626
|
+
[1m[35m (10.8ms)[0m [1m[36mcommit transaction[0m
|
1627
|
+
[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]]
|
1628
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1629
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
1630
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1631
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
132
1632
|
---------------------------------------------------------------------
|
133
1633
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
134
1634
|
---------------------------------------------------------------------
|
135
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1635
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:01 -0300
|
1636
|
+
Processing by Spyme::LocationsController#create as HTML
|
1637
|
+
Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
|
1638
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1639
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1640
|
+
-------------------------------------------------
|
1641
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
1642
|
+
-------------------------------------------------
|
1643
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:01 -0300
|
136
1644
|
Processing by Spyme::LocationsController#create as HTML
|
137
|
-
|
138
|
-
|
139
|
-
|
1645
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1646
|
+
Unpermitted parameter: :location
|
1647
|
+
Completed 400 Bad Request in 2ms (ActiveRecord: 0.0ms)
|
1648
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1649
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1650
|
+
---------------------------------------------------
|
1651
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
1652
|
+
---------------------------------------------------
|
1653
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:01 -0300
|
1654
|
+
Processing by Spyme::LocationsController#create as HTML
|
1655
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1656
|
+
Unpermitted parameter: :location
|
1657
|
+
Completed 400 Bad Request in 6ms (ActiveRecord: 0.0ms)
|
1658
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1659
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1660
|
+
-------------------------------------------------------------
|
1661
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1662
|
+
-------------------------------------------------------------
|
1663
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1664
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1665
|
+
-------------------------------------------------------------
|
1666
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1667
|
+
-------------------------------------------------------------
|
1668
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1669
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1670
|
+
-----------------------------------------------------------------------
|
1671
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1672
|
+
-----------------------------------------------------------------------
|
1673
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1674
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1675
|
+
----------------------------------------------------------------
|
1676
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1677
|
+
----------------------------------------------------------------
|
1678
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1679
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1680
|
+
------------------------------------------------------
|
1681
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1682
|
+
------------------------------------------------------
|
1683
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1684
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1685
|
+
----------------------------------------------------------------------------
|
1686
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
1687
|
+
----------------------------------------------------------------------------
|
1688
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1689
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1690
|
+
--------------------------------------------------------
|
1691
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1692
|
+
--------------------------------------------------------
|
1693
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1694
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1695
|
+
--------------------------------------------------------------
|
1696
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1697
|
+
--------------------------------------------------------------
|
1698
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1699
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1700
|
+
--------------------------------------------------------------
|
1701
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1702
|
+
--------------------------------------------------------------
|
1703
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1704
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1705
|
+
-----------------------------------------------------------------------------
|
1706
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1707
|
+
-----------------------------------------------------------------------------
|
1708
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1709
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1710
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1711
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1712
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1713
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1714
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1715
|
+
[1m[35m (16.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1716
|
+
[1m[35m (10.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
|
1717
|
+
[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]]
|
1718
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1719
|
+
[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-17 19:32:17.862550"], ["updated_at", "2018-09-17 19:32:17.862550"]]
|
1720
|
+
[1m[35m (10.7ms)[0m [1m[36mcommit transaction[0m
|
1721
|
+
[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]]
|
1722
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1723
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
1724
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1725
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
140
1726
|
---------------------------------------------------
|
141
1727
|
SpymeTest: test_post_to_spyme_should_return_success
|
142
1728
|
---------------------------------------------------
|
143
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1729
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:17 -0300
|
144
1730
|
Processing by Spyme::LocationsController#create as HTML
|
145
1731
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
146
|
-
|
147
|
-
|
148
|
-
|
1732
|
+
Unpermitted parameter: :location
|
1733
|
+
Unpermitted parameter: :location
|
1734
|
+
Unpermitted parameter: :location
|
1735
|
+
Completed 400 Bad Request in 10282ms (ActiveRecord: 0.0ms)
|
1736
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1737
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1738
|
+
---------------------------------------------------------------------
|
1739
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1740
|
+
---------------------------------------------------------------------
|
1741
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:28 -0300
|
1742
|
+
Processing by Spyme::LocationsController#create as HTML
|
1743
|
+
Completed 400 Bad Request in 11934ms (ActiveRecord: 0.0ms)
|
1744
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1745
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
149
1746
|
-------------------------------------------------
|
150
1747
|
SpymeTest: test_post_to_spyme_should_store_coords
|
151
1748
|
-------------------------------------------------
|
152
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
1749
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:32:40 -0300
|
153
1750
|
Processing by Spyme::LocationsController#create as HTML
|
154
1751
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
167
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1752
|
+
Unpermitted parameter: :location
|
1753
|
+
Unpermitted parameter: :location
|
1754
|
+
Unpermitted parameter: :location
|
1755
|
+
Completed 400 Bad Request in 34622ms (ActiveRecord: 0.0ms)
|
1756
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1757
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1758
|
+
-----------------------------------------------------------------------
|
1759
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1760
|
+
-----------------------------------------------------------------------
|
1761
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1762
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
168
1763
|
----------------------------------------------------------------------------
|
169
1764
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
170
1765
|
----------------------------------------------------------------------------
|
171
|
-
[1m[35m (0.
|
172
|
-
[1m[
|
1766
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1767
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1768
|
+
--------------------------------------------------------------
|
1769
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1770
|
+
--------------------------------------------------------------
|
1771
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1772
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1773
|
+
-------------------------------------------------------------
|
1774
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1775
|
+
-------------------------------------------------------------
|
1776
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1777
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1778
|
+
------------------------------------------------------
|
1779
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1780
|
+
------------------------------------------------------
|
1781
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1782
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
173
1783
|
--------------------------------------------------------
|
174
1784
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
175
1785
|
--------------------------------------------------------
|
176
|
-
[1m[35m (0.
|
177
|
-
[1m[
|
1786
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1787
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1788
|
+
-----------------------------------------------------------------------------
|
1789
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1790
|
+
-----------------------------------------------------------------------------
|
1791
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1792
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1793
|
+
----------------------------------------------------------------
|
1794
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1795
|
+
----------------------------------------------------------------
|
1796
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1797
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1798
|
+
-------------------------------------------------------------
|
1799
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1800
|
+
-------------------------------------------------------------
|
1801
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1802
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1803
|
+
--------------------------------------------------------------
|
1804
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1805
|
+
--------------------------------------------------------------
|
1806
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1807
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1808
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1809
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1810
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1811
|
+
[1m[35m (10.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1812
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1813
|
+
[1m[35m (16.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1814
|
+
[1m[35m (11.6ms)[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
|
1815
|
+
[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]]
|
1816
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1817
|
+
[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-17 19:33:33.874537"], ["updated_at", "2018-09-17 19:33:33.874537"]]
|
1818
|
+
[1m[35m (10.1ms)[0m [1m[36mcommit transaction[0m
|
1819
|
+
[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]]
|
1820
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1821
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
1822
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1823
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1824
|
+
---------------------------------------------------------------------
|
1825
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1826
|
+
---------------------------------------------------------------------
|
1827
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:33 -0300
|
1828
|
+
Processing by Spyme::LocationsController#create as HTML
|
1829
|
+
Completed 400 Bad Request in 3422ms (ActiveRecord: 0.0ms)
|
1830
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1831
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1832
|
+
-------------------------------------------------
|
1833
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
1834
|
+
-------------------------------------------------
|
1835
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:37 -0300
|
1836
|
+
Processing by Spyme::LocationsController#create as HTML
|
1837
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1838
|
+
Completed 500 Internal Server Error in 1130ms (ActiveRecord: 0.0ms)
|
1839
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1840
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1841
|
+
---------------------------------------------------
|
1842
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
1843
|
+
---------------------------------------------------
|
1844
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:38 -0300
|
1845
|
+
Processing by Spyme::LocationsController#create as HTML
|
1846
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1847
|
+
Completed 500 Internal Server Error in 1094ms (ActiveRecord: 0.0ms)
|
1848
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1849
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
178
1850
|
------------------------------------------------------
|
179
1851
|
ModelTest: test_coords_should_give_the_values_in_array
|
180
1852
|
------------------------------------------------------
|
181
|
-
[1m[35m (0.
|
182
|
-
[1m[
|
183
|
-
|
184
|
-
ModelTest:
|
185
|
-
|
186
|
-
[1m[35m (0.0ms)[0m
|
187
|
-
[1m[
|
1853
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1854
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1855
|
+
----------------------------------------------------------------
|
1856
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1857
|
+
----------------------------------------------------------------
|
1858
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1859
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1860
|
+
-----------------------------------------------------------------------
|
1861
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1862
|
+
-----------------------------------------------------------------------
|
1863
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1864
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1865
|
+
----------------------------------------------------------------------------
|
1866
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
1867
|
+
----------------------------------------------------------------------------
|
1868
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1869
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1870
|
+
--------------------------------------------------------------
|
1871
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1872
|
+
--------------------------------------------------------------
|
1873
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1874
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1875
|
+
-------------------------------------------------------------
|
1876
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1877
|
+
-------------------------------------------------------------
|
1878
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1879
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
188
1880
|
-----------------------------------------------------------------------------
|
189
1881
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
190
1882
|
-----------------------------------------------------------------------------
|
191
|
-
[1m[35m (0.
|
192
|
-
[1m[
|
1883
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1884
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1885
|
+
--------------------------------------------------------------
|
1886
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1887
|
+
--------------------------------------------------------------
|
1888
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1889
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1890
|
+
--------------------------------------------------------
|
1891
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1892
|
+
--------------------------------------------------------
|
1893
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1894
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1895
|
+
-------------------------------------------------------------
|
1896
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1897
|
+
-------------------------------------------------------------
|
1898
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1899
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1900
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1901
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1902
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1903
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1904
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1905
|
+
[1m[35m (15.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1906
|
+
[1m[35m (11.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
|
1907
|
+
[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]]
|
1908
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1909
|
+
[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-17 19:33:54.055743"], ["updated_at", "2018-09-17 19:33:54.055743"]]
|
1910
|
+
[1m[35m (11.1ms)[0m [1m[36mcommit transaction[0m
|
1911
|
+
[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]]
|
1912
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1913
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
1914
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1915
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1916
|
+
--------------------------------------------------------------
|
1917
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
1918
|
+
--------------------------------------------------------------
|
1919
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1920
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1921
|
+
--------------------------------------------------------
|
1922
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
1923
|
+
--------------------------------------------------------
|
1924
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1925
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
193
1926
|
----------------------------------------------------------------------------
|
194
1927
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
195
1928
|
----------------------------------------------------------------------------
|
196
|
-
[1m[35m (0.
|
197
|
-
[1m[
|
1929
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1930
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1931
|
+
-------------------------------------------------------------
|
1932
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
1933
|
+
-------------------------------------------------------------
|
1934
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1935
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1936
|
+
--------------------------------------------------------------
|
1937
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
1938
|
+
--------------------------------------------------------------
|
1939
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1940
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1941
|
+
------------------------------------------------------
|
1942
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
1943
|
+
------------------------------------------------------
|
1944
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1945
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1946
|
+
----------------------------------------------------------------
|
1947
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
1948
|
+
----------------------------------------------------------------
|
1949
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1950
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1951
|
+
-------------------------------------------------------------
|
1952
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
1953
|
+
-------------------------------------------------------------
|
1954
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1955
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1956
|
+
-----------------------------------------------------------------------------
|
1957
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
1958
|
+
-----------------------------------------------------------------------------
|
1959
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1960
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1961
|
+
-----------------------------------------------------------------------
|
1962
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
1963
|
+
-----------------------------------------------------------------------
|
1964
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1965
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1966
|
+
-------------------------------------------------
|
1967
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
1968
|
+
-------------------------------------------------
|
1969
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:54 -0300
|
1970
|
+
Processing by Spyme::LocationsController#create as HTML
|
1971
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1972
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
1973
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1974
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1975
|
+
---------------------------------------------------------------------
|
1976
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
1977
|
+
---------------------------------------------------------------------
|
1978
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:54 -0300
|
1979
|
+
Processing by Spyme::LocationsController#create as HTML
|
1980
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
1981
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1982
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1983
|
+
---------------------------------------------------
|
1984
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
1985
|
+
---------------------------------------------------
|
1986
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:33:54 -0300
|
1987
|
+
Processing by Spyme::LocationsController#create as HTML
|
1988
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
1989
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
1990
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1991
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1992
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1993
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1994
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1995
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
1996
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1997
|
+
[1m[35m (15.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
1998
|
+
[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
|
1999
|
+
[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]]
|
2000
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2001
|
+
[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-17 19:34:32.763017"], ["updated_at", "2018-09-17 19:34:32.763017"]]
|
2002
|
+
[1m[35m (10.3ms)[0m [1m[36mcommit transaction[0m
|
2003
|
+
[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]]
|
2004
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2005
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
2006
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2007
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
198
2008
|
--------------------------------------------------------
|
199
2009
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
200
2010
|
--------------------------------------------------------
|
201
|
-
[1m[35m (0.0ms)[0m
|
202
|
-
[1m[
|
2011
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2012
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2013
|
+
-----------------------------------------------------------------------------
|
2014
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
2015
|
+
-----------------------------------------------------------------------------
|
2016
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2017
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2018
|
+
-----------------------------------------------------------------------
|
2019
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2020
|
+
-----------------------------------------------------------------------
|
2021
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2022
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2023
|
+
----------------------------------------------------------------
|
2024
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
2025
|
+
----------------------------------------------------------------
|
2026
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2027
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2028
|
+
----------------------------------------------------------------------------
|
2029
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
2030
|
+
----------------------------------------------------------------------------
|
2031
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2032
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2033
|
+
------------------------------------------------------
|
2034
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
2035
|
+
------------------------------------------------------
|
2036
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2037
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2038
|
+
-------------------------------------------------------------
|
2039
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2040
|
+
-------------------------------------------------------------
|
2041
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2042
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2043
|
+
-------------------------------------------------------------
|
2044
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2045
|
+
-------------------------------------------------------------
|
2046
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2047
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2048
|
+
--------------------------------------------------------------
|
2049
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2050
|
+
--------------------------------------------------------------
|
2051
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2052
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2053
|
+
--------------------------------------------------------------
|
2054
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2055
|
+
--------------------------------------------------------------
|
2056
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2057
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
203
2058
|
---------------------------------------------------------------------
|
204
2059
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
205
2060
|
---------------------------------------------------------------------
|
206
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2061
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:34:32 -0300
|
207
2062
|
Processing by Spyme::LocationsController#create as HTML
|
208
2063
|
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
209
|
-
[1m[35m (0.1ms)[0m
|
210
|
-
[1m[
|
2064
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2065
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
211
2066
|
---------------------------------------------------
|
212
2067
|
SpymeTest: test_post_to_spyme_should_return_success
|
213
2068
|
---------------------------------------------------
|
214
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2069
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:34:32 -0300
|
215
2070
|
Processing by Spyme::LocationsController#create as HTML
|
216
2071
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
217
|
-
Completed 201 Created in
|
218
|
-
[1m[35m (0.
|
219
|
-
[1m[
|
2072
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
2073
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2074
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
220
2075
|
-------------------------------------------------
|
221
2076
|
SpymeTest: test_post_to_spyme_should_store_coords
|
222
2077
|
-------------------------------------------------
|
223
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2078
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:34:32 -0300
|
224
2079
|
Processing by Spyme::LocationsController#create as HTML
|
225
2080
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
226
|
-
Completed 201 Created in
|
227
|
-
[1m[35m (0.
|
228
|
-
[1m[
|
2081
|
+
Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
|
2082
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2083
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2084
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2085
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2086
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2087
|
+
[1m[35m (11.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2088
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2089
|
+
[1m[35m (15.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2090
|
+
[1m[35m (10.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
|
2091
|
+
[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]]
|
2092
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2093
|
+
[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-17 19:36:22.010384"], ["updated_at", "2018-09-17 19:36:22.010384"]]
|
2094
|
+
[1m[35m (11.6ms)[0m [1m[36mcommit transaction[0m
|
2095
|
+
[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]]
|
2096
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2097
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
2098
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2099
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2100
|
+
---------------------------------------------------------------------
|
2101
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
2102
|
+
---------------------------------------------------------------------
|
2103
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:36:22 -0300
|
2104
|
+
Processing by Spyme::LocationsController#create as HTML
|
2105
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
2106
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2107
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
2108
|
+
---------------------------------------------------
|
2109
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
2110
|
+
---------------------------------------------------
|
2111
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:36:22 -0300
|
2112
|
+
Processing by Spyme::LocationsController#create as HTML
|
2113
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
2114
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
2115
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2116
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2117
|
+
-------------------------------------------------
|
2118
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
2119
|
+
-------------------------------------------------
|
2120
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:36:22 -0300
|
2121
|
+
Processing by Spyme::LocationsController#create as HTML
|
2122
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
2123
|
+
Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
|
2124
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2125
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2126
|
+
----------------------------------------------------------------------------
|
2127
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
2128
|
+
----------------------------------------------------------------------------
|
2129
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2130
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2131
|
+
-----------------------------------------------------------------------
|
2132
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2133
|
+
-----------------------------------------------------------------------
|
2134
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2135
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2136
|
+
--------------------------------------------------------
|
2137
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
2138
|
+
--------------------------------------------------------
|
2139
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2140
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2141
|
+
-----------------------------------------------------------------------------
|
2142
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
2143
|
+
-----------------------------------------------------------------------------
|
2144
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2145
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2146
|
+
----------------------------------------------------------------
|
2147
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
2148
|
+
----------------------------------------------------------------
|
2149
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2150
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2151
|
+
--------------------------------------------------------------
|
2152
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2153
|
+
--------------------------------------------------------------
|
2154
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2155
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2156
|
+
-------------------------------------------------------------
|
2157
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2158
|
+
-------------------------------------------------------------
|
2159
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2160
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2161
|
+
-------------------------------------------------------------
|
2162
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2163
|
+
-------------------------------------------------------------
|
2164
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2165
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2166
|
+
--------------------------------------------------------------
|
2167
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2168
|
+
--------------------------------------------------------------
|
2169
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2170
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
229
2171
|
------------------------------------------------------
|
230
2172
|
ModelTest: test_coords_should_give_the_values_in_array
|
231
2173
|
------------------------------------------------------
|
232
|
-
[1m[35m (0.
|
233
|
-
[1m[
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
[1m[35m (
|
238
|
-
[1m[
|
2174
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2175
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2176
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2177
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2178
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2179
|
+
[1m[35m (12.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2180
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2181
|
+
[1m[35m (15.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2182
|
+
[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
|
2183
|
+
[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]]
|
2184
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2185
|
+
[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-17 19:37:03.425337"], ["updated_at", "2018-09-17 19:37:03.425337"]]
|
2186
|
+
[1m[35m (10.7ms)[0m [1m[36mcommit transaction[0m
|
2187
|
+
[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]]
|
2188
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2189
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
2190
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2191
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
239
2192
|
-----------------------------------------------------------------------------
|
240
2193
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
241
2194
|
-----------------------------------------------------------------------------
|
242
|
-
[1m[35m (0.0ms)[0m
|
243
|
-
[1m[
|
2195
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2196
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
244
2197
|
----------------------------------------------------------------------------
|
245
2198
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
246
2199
|
----------------------------------------------------------------------------
|
247
|
-
[1m[35m (0.
|
248
|
-
[1m[
|
2200
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2201
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2202
|
+
-------------------------------------------------------------
|
2203
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2204
|
+
-------------------------------------------------------------
|
2205
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2206
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2207
|
+
--------------------------------------------------------------
|
2208
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2209
|
+
--------------------------------------------------------------
|
2210
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2211
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2212
|
+
-----------------------------------------------------------------------
|
2213
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2214
|
+
-----------------------------------------------------------------------
|
2215
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2216
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2217
|
+
----------------------------------------------------------------
|
2218
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
2219
|
+
----------------------------------------------------------------
|
2220
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2221
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
249
2222
|
--------------------------------------------------------
|
250
2223
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
251
2224
|
--------------------------------------------------------
|
252
|
-
[1m[35m (0.0ms)[0m
|
253
|
-
[1m[
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
2225
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2226
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2227
|
+
------------------------------------------------------
|
2228
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
2229
|
+
------------------------------------------------------
|
2230
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2231
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2232
|
+
-------------------------------------------------------------
|
2233
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2234
|
+
-------------------------------------------------------------
|
2235
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2236
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2237
|
+
--------------------------------------------------------------
|
2238
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2239
|
+
--------------------------------------------------------------
|
2240
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2241
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
262
2242
|
---------------------------------------------------
|
263
2243
|
SpymeTest: test_post_to_spyme_should_return_success
|
264
2244
|
---------------------------------------------------
|
265
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2245
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:03 -0300
|
266
2246
|
Processing by Spyme::LocationsController#create as HTML
|
267
2247
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
268
|
-
Completed 201 Created in
|
269
|
-
[1m[35m (0.1ms)[0m
|
270
|
-
[1m[
|
2248
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
2249
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2250
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
271
2251
|
-------------------------------------------------
|
272
2252
|
SpymeTest: test_post_to_spyme_should_store_coords
|
273
2253
|
-------------------------------------------------
|
274
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2254
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:03 -0300
|
275
2255
|
Processing by Spyme::LocationsController#create as HTML
|
276
2256
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
277
2257
|
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
278
|
-
[1m[35m (0.
|
279
|
-
[1m[
|
2258
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2259
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
280
2260
|
---------------------------------------------------------------------
|
281
2261
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
282
2262
|
---------------------------------------------------------------------
|
283
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2263
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:03 -0300
|
284
2264
|
Processing by Spyme::LocationsController#create as HTML
|
285
|
-
Completed 400 Bad Request in
|
286
|
-
[1m[35m (0.
|
287
|
-
[1m[
|
2265
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
2266
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2267
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2268
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2269
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2270
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2271
|
+
[1m[35m (11.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2272
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2273
|
+
[1m[35m (17.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2274
|
+
[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
|
2275
|
+
[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]]
|
2276
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
2277
|
+
[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-17 19:37:21.630298"], ["updated_at", "2018-09-17 19:37:21.630298"]]
|
2278
|
+
[1m[35m (10.6ms)[0m [1m[36mcommit transaction[0m
|
2279
|
+
[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]]
|
2280
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2281
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
2282
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2283
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2284
|
+
---------------------------------------------------------------------
|
2285
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
2286
|
+
---------------------------------------------------------------------
|
2287
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:21 -0300
|
2288
|
+
Processing by Spyme::LocationsController#create as HTML
|
2289
|
+
Completed 400 Bad Request in 8496ms (ActiveRecord: 0.0ms)
|
2290
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
2291
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
288
2292
|
---------------------------------------------------
|
289
2293
|
SpymeTest: test_post_to_spyme_should_return_success
|
290
2294
|
---------------------------------------------------
|
291
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2295
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:30 -0300
|
292
2296
|
Processing by Spyme::LocationsController#create as HTML
|
293
2297
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
294
|
-
Completed 201 Created in
|
295
|
-
[1m[35m (0.1ms)[0m
|
296
|
-
[1m[
|
2298
|
+
Completed 201 Created in 2415ms (ActiveRecord: 0.0ms)
|
2299
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2300
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
297
2301
|
-------------------------------------------------
|
298
2302
|
SpymeTest: test_post_to_spyme_should_store_coords
|
299
2303
|
-------------------------------------------------
|
300
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2304
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:32 -0300
|
301
2305
|
Processing by Spyme::LocationsController#create as HTML
|
302
2306
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
303
|
-
Completed 201 Created in
|
304
|
-
[1m[35m (0.1ms)[0m
|
305
|
-
[1m[
|
2307
|
+
Completed 201 Created in 2253ms (ActiveRecord: 0.0ms)
|
2308
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2309
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2310
|
+
-------------------------------------------------------------
|
2311
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2312
|
+
-------------------------------------------------------------
|
2313
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2314
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
306
2315
|
------------------------------------------------------
|
307
2316
|
ModelTest: test_coords_should_give_the_values_in_array
|
308
2317
|
------------------------------------------------------
|
309
|
-
[1m[35m (0.0ms)[0m
|
310
|
-
[1m[
|
311
|
-
|
312
|
-
ModelTest:
|
313
|
-
|
314
|
-
[1m[35m (0.0ms)[0m
|
315
|
-
[1m[
|
316
|
-
|
317
|
-
ModelTest:
|
318
|
-
|
319
|
-
[1m[35m (0.0ms)[0m
|
320
|
-
[1m[
|
2318
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2319
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2320
|
+
----------------------------------------------------------------
|
2321
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
2322
|
+
----------------------------------------------------------------
|
2323
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2324
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2325
|
+
--------------------------------------------------------------
|
2326
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2327
|
+
--------------------------------------------------------------
|
2328
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2329
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2330
|
+
--------------------------------------------------------------
|
2331
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2332
|
+
--------------------------------------------------------------
|
2333
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2334
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
321
2335
|
----------------------------------------------------------------------------
|
322
2336
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
323
2337
|
----------------------------------------------------------------------------
|
324
|
-
[1m[35m (0.
|
325
|
-
[1m[
|
2338
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2339
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
326
2340
|
--------------------------------------------------------
|
327
2341
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
328
2342
|
--------------------------------------------------------
|
329
|
-
[1m[35m (0.0ms)[0m
|
330
|
-
[1m[
|
331
|
-
|
332
|
-
ModelTest:
|
333
|
-
|
334
|
-
[1m[35m (0.
|
335
|
-
[1m[
|
336
|
-
-------------------------------------------------------------------
|
337
|
-
ModelTest: test_google_map_coords_should_give_the_right_query_value
|
338
|
-
-------------------------------------------------------------------
|
339
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
340
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2343
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2344
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2345
|
+
-----------------------------------------------------------------------
|
2346
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2347
|
+
-----------------------------------------------------------------------
|
2348
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2349
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
341
2350
|
-----------------------------------------------------------------------------
|
342
2351
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
343
2352
|
-----------------------------------------------------------------------------
|
344
|
-
[1m[35m (0.
|
345
|
-
[1m[
|
346
|
-
|
347
|
-
ModelTest:
|
348
|
-
|
349
|
-
[1m[35m (0.
|
350
|
-
[1m[
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
[1m[35m (
|
355
|
-
[1m[
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
[1m[
|
363
|
-
[1m[
|
2353
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2354
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2355
|
+
-------------------------------------------------------------
|
2356
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2357
|
+
-------------------------------------------------------------
|
2358
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2359
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2360
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2361
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2362
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2363
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2364
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2365
|
+
[1m[35m (16.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2366
|
+
[1m[35m (11.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
|
2367
|
+
[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]]
|
2368
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2369
|
+
[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-17 19:37:38.092049"], ["updated_at", "2018-09-17 19:37:38.092049"]]
|
2370
|
+
[1m[35m (10.9ms)[0m [1m[36mcommit transaction[0m
|
2371
|
+
[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]]
|
2372
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2373
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
2374
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2375
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
364
2376
|
---------------------------------------------------
|
365
2377
|
SpymeTest: test_post_to_spyme_should_return_success
|
366
2378
|
---------------------------------------------------
|
367
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2379
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:38 -0300
|
368
2380
|
Processing by Spyme::LocationsController#create as HTML
|
369
2381
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
370
|
-
Completed 201 Created in
|
371
|
-
[1m[35m (0.1ms)[0m
|
372
|
-
[1m[
|
2382
|
+
Completed 201 Created in 3077ms (ActiveRecord: 0.0ms)
|
2383
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2384
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
373
2385
|
-------------------------------------------------
|
374
2386
|
SpymeTest: test_post_to_spyme_should_store_coords
|
375
2387
|
-------------------------------------------------
|
376
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2388
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:41 -0300
|
377
2389
|
Processing by Spyme::LocationsController#create as HTML
|
378
2390
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
379
|
-
Completed 201 Created in
|
380
|
-
[1m[35m (0.1ms)[0m
|
381
|
-
[1m[
|
2391
|
+
Completed 201 Created in 2168ms (ActiveRecord: 0.0ms)
|
2392
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2393
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
382
2394
|
---------------------------------------------------------------------
|
383
2395
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
384
2396
|
---------------------------------------------------------------------
|
385
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
386
|
-
Processing by Spyme::LocationsController#create as HTML
|
387
|
-
Completed 400 Bad Request in 7ms (ActiveRecord: 0.0ms)
|
388
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
389
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
390
|
-
---------------------------------------------------
|
391
|
-
SpymeTest: test_post_to_spyme_should_return_success
|
392
|
-
---------------------------------------------------
|
393
|
-
Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:41 -0300
|
394
|
-
Processing by Spyme::LocationsController#create as HTML
|
395
|
-
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
396
|
-
Completed 201 Created in 10ms (ActiveRecord: 0.0ms)
|
397
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
398
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
399
|
-
-------------------------------------------------
|
400
|
-
SpymeTest: test_post_to_spyme_should_store_coords
|
401
|
-
-------------------------------------------------
|
402
|
-
Started POST "/spyme/locations" for 127.0.0.1 at 2014-12-02 17:32:41 -0300
|
2397
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:37:43 -0300
|
403
2398
|
Processing by Spyme::LocationsController#create as HTML
|
404
|
-
|
405
|
-
|
406
|
-
[1m[35m (0.
|
407
|
-
|
2399
|
+
Completed 400 Bad Request in 30539ms (ActiveRecord: 0.0ms)
|
2400
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2401
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2402
|
+
----------------------------------------------------------------
|
2403
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
2404
|
+
----------------------------------------------------------------
|
2405
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2406
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
408
2407
|
-------------------------------------------------------------
|
409
|
-
ModelTest:
|
2408
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
410
2409
|
-------------------------------------------------------------
|
411
|
-
[1m[35m (0.0ms)[0m
|
412
|
-
[1m[
|
2410
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2411
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
413
2412
|
------------------------------------------------------
|
414
2413
|
ModelTest: test_coords_should_give_the_values_in_array
|
415
2414
|
------------------------------------------------------
|
416
|
-
[1m[35m (0.0ms)[0m
|
417
|
-
[1m[
|
2415
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2416
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
418
2417
|
-----------------------------------------------------------------------------
|
419
2418
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
420
2419
|
-----------------------------------------------------------------------------
|
421
|
-
[1m[35m (0.0ms)[0m
|
422
|
-
[1m[
|
2420
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2421
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
423
2422
|
----------------------------------------------------------------------------
|
424
2423
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
425
2424
|
----------------------------------------------------------------------------
|
426
|
-
[1m[35m (0.
|
427
|
-
[1m[
|
2425
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2426
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2427
|
+
--------------------------------------------------------
|
2428
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
2429
|
+
--------------------------------------------------------
|
2430
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2431
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2432
|
+
-------------------------------------------------------------
|
2433
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2434
|
+
-------------------------------------------------------------
|
2435
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2436
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2437
|
+
-----------------------------------------------------------------------
|
2438
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2439
|
+
-----------------------------------------------------------------------
|
2440
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2441
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2442
|
+
--------------------------------------------------------------
|
2443
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2444
|
+
--------------------------------------------------------------
|
2445
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2446
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2447
|
+
--------------------------------------------------------------
|
2448
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2449
|
+
--------------------------------------------------------------
|
2450
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2451
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2452
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2453
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2454
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2455
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2456
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2457
|
+
[1m[35m (15.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2458
|
+
[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
|
2459
|
+
[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]]
|
2460
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2461
|
+
[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-17 19:38:30.336013"], ["updated_at", "2018-09-17 19:38:30.336013"]]
|
2462
|
+
[1m[35m (10.7ms)[0m [1m[36mcommit transaction[0m
|
2463
|
+
[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]]
|
2464
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2465
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
2466
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2467
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2468
|
+
-----------------------------------------------------------------------
|
2469
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2470
|
+
-----------------------------------------------------------------------
|
2471
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2472
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2473
|
+
--------------------------------------------------------------
|
2474
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2475
|
+
--------------------------------------------------------------
|
2476
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2477
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2478
|
+
------------------------------------------------------
|
2479
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
2480
|
+
------------------------------------------------------
|
2481
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2482
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2483
|
+
--------------------------------------------------------------
|
2484
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2485
|
+
--------------------------------------------------------------
|
2486
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2487
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2488
|
+
-----------------------------------------------------------------------------
|
2489
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
2490
|
+
-----------------------------------------------------------------------------
|
2491
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2492
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
428
2493
|
--------------------------------------------------------
|
429
2494
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
430
2495
|
--------------------------------------------------------
|
431
|
-
[1m[35m (0.0ms)[0m
|
432
|
-
[1m[
|
2496
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2497
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2498
|
+
-------------------------------------------------------------
|
2499
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2500
|
+
-------------------------------------------------------------
|
2501
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2502
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2503
|
+
-------------------------------------------------------------
|
2504
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2505
|
+
-------------------------------------------------------------
|
2506
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2507
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2508
|
+
----------------------------------------------------------------------------
|
2509
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
2510
|
+
----------------------------------------------------------------------------
|
2511
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2512
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2513
|
+
----------------------------------------------------------------
|
2514
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
2515
|
+
----------------------------------------------------------------
|
2516
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2517
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
433
2518
|
---------------------------------------------------------------------
|
434
2519
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
435
2520
|
---------------------------------------------------------------------
|
436
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2521
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:38:30 -0300
|
437
2522
|
Processing by Spyme::LocationsController#create as HTML
|
438
|
-
|
439
|
-
|
440
|
-
[1m[
|
2523
|
+
Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
|
2524
|
+
Completed 400 Bad Request in 6445ms (ActiveRecord: 0.0ms)
|
2525
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2526
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
441
2527
|
---------------------------------------------------
|
442
2528
|
SpymeTest: test_post_to_spyme_should_return_success
|
443
2529
|
---------------------------------------------------
|
444
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2530
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:38:36 -0300
|
2531
|
+
Processing by Spyme::LocationsController#create as HTML
|
2532
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
2533
|
+
Completed 201 Created in 797ms (ActiveRecord: 0.0ms)
|
2534
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2535
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2536
|
+
-------------------------------------------------
|
2537
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
2538
|
+
-------------------------------------------------
|
2539
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:38:37 -0300
|
445
2540
|
Processing by Spyme::LocationsController#create as HTML
|
446
2541
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
447
|
-
Completed 201 Created in
|
448
|
-
[1m[35m (0.1ms)[0m
|
449
|
-
[1m[
|
2542
|
+
Completed 201 Created in 708ms (ActiveRecord: 0.0ms)
|
2543
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2544
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2545
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2546
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2547
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2548
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2549
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2550
|
+
[1m[35m (15.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2551
|
+
[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
|
2552
|
+
[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]]
|
2553
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2554
|
+
[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-17 19:39:27.132207"], ["updated_at", "2018-09-17 19:39:27.132207"]]
|
2555
|
+
[1m[35m (10.4ms)[0m [1m[36mcommit transaction[0m
|
2556
|
+
[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]]
|
2557
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2558
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
2559
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2560
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
450
2561
|
-------------------------------------------------
|
451
2562
|
SpymeTest: test_post_to_spyme_should_store_coords
|
452
2563
|
-------------------------------------------------
|
453
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2564
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:39:27 -0300
|
2565
|
+
Processing by Spyme::LocationsController#create as HTML
|
2566
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
2567
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
2568
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2569
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2570
|
+
---------------------------------------------------------------------
|
2571
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
2572
|
+
---------------------------------------------------------------------
|
2573
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:39:27 -0300
|
2574
|
+
Processing by Spyme::LocationsController#create as HTML
|
2575
|
+
Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
|
2576
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
2577
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2578
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2579
|
+
---------------------------------------------------
|
2580
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
2581
|
+
---------------------------------------------------
|
2582
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:39:27 -0300
|
454
2583
|
Processing by Spyme::LocationsController#create as HTML
|
455
2584
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
456
2585
|
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
457
|
-
[1m[35m (0.
|
458
|
-
[1m[
|
2586
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2587
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2588
|
+
-----------------------------------------------------------------------------
|
2589
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
2590
|
+
-----------------------------------------------------------------------------
|
2591
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2592
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2593
|
+
--------------------------------------------------------------
|
2594
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2595
|
+
--------------------------------------------------------------
|
2596
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2597
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2598
|
+
----------------------------------------------------------------------------
|
2599
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
2600
|
+
----------------------------------------------------------------------------
|
2601
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2602
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2603
|
+
--------------------------------------------------------------
|
2604
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2605
|
+
--------------------------------------------------------------
|
2606
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2607
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2608
|
+
-------------------------------------------------------------
|
2609
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2610
|
+
-------------------------------------------------------------
|
2611
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2612
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
459
2613
|
-------------------------------------------------------------
|
460
2614
|
ModelTest: test_as_a_string_should_give_the_right_query_value
|
461
2615
|
-------------------------------------------------------------
|
462
|
-
[1m[35m (0.
|
463
|
-
[1m[
|
2616
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2617
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2618
|
+
--------------------------------------------------------
|
2619
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
2620
|
+
--------------------------------------------------------
|
2621
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2622
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
464
2623
|
------------------------------------------------------
|
465
2624
|
ModelTest: test_coords_should_give_the_values_in_array
|
466
2625
|
------------------------------------------------------
|
467
|
-
[1m[35m (0.0ms)[0m
|
468
|
-
[1m[
|
469
|
-
|
470
|
-
ModelTest:
|
471
|
-
|
472
|
-
[1m[35m (0.0ms)[0m
|
473
|
-
[1m[
|
2626
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2627
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2628
|
+
-----------------------------------------------------------------------
|
2629
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2630
|
+
-----------------------------------------------------------------------
|
2631
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2632
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
474
2633
|
----------------------------------------------------------------
|
475
2634
|
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
476
2635
|
----------------------------------------------------------------
|
477
|
-
[1m[35m (0.
|
478
|
-
[1m[
|
2636
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2637
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2638
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2639
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2640
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2641
|
+
[1m[35m (16.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2642
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2643
|
+
[1m[35m (15.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2644
|
+
[1m[35m (10.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
|
2645
|
+
[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]]
|
2646
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2647
|
+
[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-17 19:40:10.876855"], ["updated_at", "2018-09-17 19:40:10.876855"]]
|
2648
|
+
[1m[35m (10.1ms)[0m [1m[36mcommit transaction[0m
|
2649
|
+
[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]]
|
2650
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2651
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
2652
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2653
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2654
|
+
--------------------------------------------------------------
|
2655
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2656
|
+
--------------------------------------------------------------
|
2657
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2658
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2659
|
+
------------------------------------------------------
|
2660
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
2661
|
+
------------------------------------------------------
|
2662
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2663
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2664
|
+
-----------------------------------------------------------------------
|
2665
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2666
|
+
-----------------------------------------------------------------------
|
2667
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2668
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2669
|
+
--------------------------------------------------------------
|
2670
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2671
|
+
--------------------------------------------------------------
|
2672
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2673
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
479
2674
|
----------------------------------------------------------------------------
|
480
2675
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
481
2676
|
----------------------------------------------------------------------------
|
482
|
-
[1m[35m (0.0ms)[0m
|
483
|
-
[1m[
|
2677
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2678
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
484
2679
|
--------------------------------------------------------
|
485
2680
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
486
2681
|
--------------------------------------------------------
|
487
|
-
[1m[35m (0.0ms)[0m
|
488
|
-
[1m[
|
2682
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2683
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2684
|
+
----------------------------------------------------------------
|
2685
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
2686
|
+
----------------------------------------------------------------
|
2687
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2688
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2689
|
+
-------------------------------------------------------------
|
2690
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2691
|
+
-------------------------------------------------------------
|
2692
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2693
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2694
|
+
-------------------------------------------------------------
|
2695
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2696
|
+
-------------------------------------------------------------
|
2697
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2698
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2699
|
+
-----------------------------------------------------------------------------
|
2700
|
+
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
2701
|
+
-----------------------------------------------------------------------------
|
2702
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2703
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
489
2704
|
---------------------------------------------------------------------
|
490
2705
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
491
2706
|
---------------------------------------------------------------------
|
492
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2707
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:40:10 -0300
|
493
2708
|
Processing by Spyme::LocationsController#create as HTML
|
494
|
-
|
495
|
-
|
496
|
-
[1m[
|
2709
|
+
Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
|
2710
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
2711
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2712
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
497
2713
|
---------------------------------------------------
|
498
2714
|
SpymeTest: test_post_to_spyme_should_return_success
|
499
2715
|
---------------------------------------------------
|
500
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2716
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:40:10 -0300
|
501
2717
|
Processing by Spyme::LocationsController#create as HTML
|
502
2718
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
503
|
-
Completed 201 Created in
|
504
|
-
[1m[35m (0.
|
505
|
-
[1m[
|
2719
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
2720
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2721
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
506
2722
|
-------------------------------------------------
|
507
2723
|
SpymeTest: test_post_to_spyme_should_store_coords
|
508
2724
|
-------------------------------------------------
|
509
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2725
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:40:10 -0300
|
510
2726
|
Processing by Spyme::LocationsController#create as HTML
|
511
2727
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
512
2728
|
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
513
|
-
[1m[35m (0.
|
514
|
-
[1m[
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
[1m[35m (
|
519
|
-
[1m[
|
2729
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2730
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2731
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2732
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2733
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2734
|
+
[1m[35m (10.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2735
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2736
|
+
[1m[35m (15.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2737
|
+
[1m[35m (11.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
|
2738
|
+
[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]]
|
2739
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2740
|
+
[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-17 19:53:38.894445"], ["updated_at", "2018-09-17 19:53:38.894445"]]
|
2741
|
+
[1m[35m (9.7ms)[0m [1m[36mcommit transaction[0m
|
2742
|
+
[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]]
|
2743
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2744
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
2745
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2746
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
520
2747
|
------------------------------------------------------
|
521
2748
|
ModelTest: test_coords_should_give_the_values_in_array
|
522
2749
|
------------------------------------------------------
|
523
|
-
[1m[35m (0.0ms)[0m
|
524
|
-
[1m[
|
2750
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2751
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2752
|
+
-------------------------------------------------------------
|
2753
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2754
|
+
-------------------------------------------------------------
|
2755
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2756
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2757
|
+
--------------------------------------------------------
|
2758
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
2759
|
+
--------------------------------------------------------
|
2760
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2761
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2762
|
+
--------------------------------------------------------------
|
2763
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2764
|
+
--------------------------------------------------------------
|
2765
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2766
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
525
2767
|
-----------------------------------------------------------------------------
|
526
2768
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
527
2769
|
-----------------------------------------------------------------------------
|
528
|
-
[1m[35m (0.0ms)[0m
|
529
|
-
[1m[
|
2770
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2771
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2772
|
+
-------------------------------------------------------------
|
2773
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2774
|
+
-------------------------------------------------------------
|
2775
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2776
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2777
|
+
-----------------------------------------------------------------------
|
2778
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2779
|
+
-----------------------------------------------------------------------
|
2780
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2781
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
530
2782
|
----------------------------------------------------------------
|
531
2783
|
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
532
2784
|
----------------------------------------------------------------
|
533
|
-
[1m[35m (0.
|
534
|
-
[1m[
|
2785
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2786
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
535
2787
|
----------------------------------------------------------------------------
|
536
2788
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
537
2789
|
----------------------------------------------------------------------------
|
538
|
-
[1m[35m (0.0ms)[0m
|
539
|
-
[1m[
|
540
|
-
|
541
|
-
ModelTest:
|
542
|
-
|
543
|
-
[1m[35m (0.0ms)[0m
|
544
|
-
[1m[
|
545
|
-
--------------------------------------------------------
|
546
|
-
ModelTest: test_to_hash_should_give_the_right_hash_value
|
547
|
-
--------------------------------------------------------
|
548
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
549
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2790
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2791
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2792
|
+
--------------------------------------------------------------
|
2793
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2794
|
+
--------------------------------------------------------------
|
2795
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2796
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
550
2797
|
---------------------------------------------------------------------
|
551
2798
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
552
2799
|
---------------------------------------------------------------------
|
553
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2800
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 16:53:39 -0300
|
554
2801
|
Processing by Spyme::LocationsController#create as HTML
|
555
|
-
Completed 400 Bad Request in
|
556
|
-
[1m[35m (0.1ms)[0m
|
557
|
-
[1m[
|
2802
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
2803
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2804
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2805
|
+
---------------------------------------------------
|
2806
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
2807
|
+
---------------------------------------------------
|
2808
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2809
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2810
|
+
-------------------------------------------------
|
2811
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
2812
|
+
-------------------------------------------------
|
2813
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2814
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2815
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2816
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2817
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2818
|
+
[1m[35m (12.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2819
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2820
|
+
[1m[35m (16.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2821
|
+
[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
|
2822
|
+
[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]]
|
2823
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2824
|
+
[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-17 20:01:14.181380"], ["updated_at", "2018-09-17 20:01:14.181380"]]
|
2825
|
+
[1m[35m (10.6ms)[0m [1m[36mcommit transaction[0m
|
2826
|
+
[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]]
|
2827
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2828
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
2829
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2830
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
558
2831
|
---------------------------------------------------
|
559
2832
|
SpymeTest: test_post_to_spyme_should_return_success
|
560
2833
|
---------------------------------------------------
|
561
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2834
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:14 -0300
|
562
2835
|
Processing by Spyme::LocationsController#create as HTML
|
563
2836
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
564
|
-
Completed 201 Created in
|
565
|
-
[1m[35m (0.1ms)[0m
|
566
|
-
[1m[
|
2837
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
2838
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2839
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2840
|
+
---------------------------------------------------------------------
|
2841
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
2842
|
+
---------------------------------------------------------------------
|
2843
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:14 -0300
|
2844
|
+
Processing by Spyme::LocationsController#create as HTML
|
2845
|
+
Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
|
2846
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
2847
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2848
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
567
2849
|
-------------------------------------------------
|
568
2850
|
SpymeTest: test_post_to_spyme_should_store_coords
|
569
2851
|
-------------------------------------------------
|
570
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
2852
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:14 -0300
|
571
2853
|
Processing by Spyme::LocationsController#create as HTML
|
572
2854
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
573
2855
|
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
574
|
-
[1m[35m (0.
|
575
|
-
[1m[
|
576
|
-
|
577
|
-
ModelTest:
|
578
|
-
|
579
|
-
[1m[35m (0.0ms)[0m
|
580
|
-
[1m[
|
581
|
-
|
582
|
-
ModelTest:
|
583
|
-
|
584
|
-
[1m[35m (0.0ms)[0m
|
585
|
-
[1m[
|
2856
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2857
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2858
|
+
-----------------------------------------------------------------------
|
2859
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2860
|
+
-----------------------------------------------------------------------
|
2861
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2862
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2863
|
+
--------------------------------------------------------
|
2864
|
+
ModelTest: test_to_hash_should_give_the_right_hash_value
|
2865
|
+
--------------------------------------------------------
|
2866
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2867
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
586
2868
|
-----------------------------------------------------------------------------
|
587
2869
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
588
2870
|
-----------------------------------------------------------------------------
|
589
|
-
[1m[35m (0.0ms)[0m
|
590
|
-
[1m[
|
2871
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2872
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2873
|
+
------------------------------------------------------
|
2874
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
2875
|
+
------------------------------------------------------
|
2876
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2877
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2878
|
+
--------------------------------------------------------------
|
2879
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2880
|
+
--------------------------------------------------------------
|
2881
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2882
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2883
|
+
--------------------------------------------------------------
|
2884
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2885
|
+
--------------------------------------------------------------
|
2886
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
2887
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2888
|
+
-------------------------------------------------------------
|
2889
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
2890
|
+
-------------------------------------------------------------
|
2891
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2892
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
591
2893
|
----------------------------------------------------------------
|
592
2894
|
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
593
2895
|
----------------------------------------------------------------
|
594
|
-
[1m[35m (0.
|
595
|
-
[1m[
|
596
|
-
----------------------------------------------------------------------------
|
597
|
-
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
598
|
-
----------------------------------------------------------------------------
|
599
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
600
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2896
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2897
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
601
2898
|
-------------------------------------------------------------
|
602
2899
|
ModelTest: test_location_should_be_invalid_when_empty_session
|
603
2900
|
-------------------------------------------------------------
|
604
|
-
[1m[35m (0.
|
605
|
-
[1m[
|
2901
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2902
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2903
|
+
----------------------------------------------------------------------------
|
2904
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
2905
|
+
----------------------------------------------------------------------------
|
2906
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2907
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2908
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2909
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2910
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2911
|
+
[1m[35m (12.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2912
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2913
|
+
[1m[35m (16.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
2914
|
+
[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
|
2915
|
+
[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]]
|
2916
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2917
|
+
[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-17 20:01:21.731543"], ["updated_at", "2018-09-17 20:01:21.731543"]]
|
2918
|
+
[1m[35m (11.2ms)[0m [1m[36mcommit transaction[0m
|
2919
|
+
[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]]
|
2920
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2921
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
2922
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2923
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2924
|
+
-------------------------------------------------
|
2925
|
+
SpymeTest: test_post_to_spyme_should_store_coords
|
2926
|
+
-------------------------------------------------
|
2927
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:21 -0300
|
2928
|
+
Processing by Spyme::LocationsController#create as HTML
|
2929
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
2930
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
2931
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2932
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2933
|
+
---------------------------------------------------------------------
|
2934
|
+
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
2935
|
+
---------------------------------------------------------------------
|
2936
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:21 -0300
|
2937
|
+
Processing by Spyme::LocationsController#create as HTML
|
2938
|
+
Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
|
2939
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
2940
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2941
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2942
|
+
---------------------------------------------------
|
2943
|
+
SpymeTest: test_post_to_spyme_should_return_success
|
2944
|
+
---------------------------------------------------
|
2945
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:01:21 -0300
|
2946
|
+
Processing by Spyme::LocationsController#create as HTML
|
2947
|
+
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
2948
|
+
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
2949
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2950
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
606
2951
|
--------------------------------------------------------
|
607
2952
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
608
2953
|
--------------------------------------------------------
|
609
|
-
[1m[35m (0.0ms)[0m
|
610
|
-
[1m[
|
611
|
-
-------------------------------------------------------------
|
612
|
-
ModelTest: test_as_a_string_should_give_the_right_query_value
|
613
|
-
-------------------------------------------------------------
|
614
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
615
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
616
|
-
------------------------------------------------------
|
617
|
-
ModelTest: test_coords_should_give_the_values_in_array
|
618
|
-
------------------------------------------------------
|
619
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
620
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2954
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2955
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
621
2956
|
-----------------------------------------------------------------------------
|
622
2957
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
623
2958
|
-----------------------------------------------------------------------------
|
624
|
-
[1m[35m (0.
|
625
|
-
[1m[
|
2959
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2960
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2961
|
+
------------------------------------------------------
|
2962
|
+
ModelTest: test_coords_should_give_the_values_in_array
|
2963
|
+
------------------------------------------------------
|
2964
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2965
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
626
2966
|
----------------------------------------------------------------
|
627
2967
|
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
628
2968
|
----------------------------------------------------------------
|
629
|
-
[1m[35m (0.
|
630
|
-
[1m[
|
2969
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2970
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2971
|
+
-------------------------------------------------------------
|
2972
|
+
ModelTest: test_location_should_be_invalid_when_empty_session
|
2973
|
+
-------------------------------------------------------------
|
2974
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2975
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2976
|
+
-----------------------------------------------------------------------
|
2977
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
2978
|
+
-----------------------------------------------------------------------
|
2979
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2980
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
631
2981
|
----------------------------------------------------------------------------
|
632
2982
|
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
633
2983
|
----------------------------------------------------------------------------
|
634
|
-
[1m[35m (0.
|
635
|
-
[1m[
|
2984
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2985
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
636
2986
|
-------------------------------------------------------------
|
637
|
-
ModelTest:
|
2987
|
+
ModelTest: test_as_a_string_should_give_the_right_query_value
|
638
2988
|
-------------------------------------------------------------
|
639
|
-
[1m[35m (0.
|
640
|
-
[1m[
|
641
|
-
|
642
|
-
ModelTest:
|
643
|
-
|
644
|
-
[1m[35m (0.0ms)[0m
|
645
|
-
[1m[
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
[1m[35m (0.1ms)[0m
|
653
|
-
[1m[
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
[1m[35m (
|
662
|
-
[1m[
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
Processing by Spyme::LocationsController#create as HTML
|
668
|
-
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
669
|
-
Completed 201 Created in 1ms (ActiveRecord: 0.0ms)
|
670
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
671
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2989
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2990
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2991
|
+
--------------------------------------------------------------
|
2992
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
2993
|
+
--------------------------------------------------------------
|
2994
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2995
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2996
|
+
--------------------------------------------------------------
|
2997
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
2998
|
+
--------------------------------------------------------------
|
2999
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3000
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3001
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3002
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3003
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3004
|
+
[1m[35m (12.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3005
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3006
|
+
[1m[35m (15.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
3007
|
+
[1m[35m (10.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
|
3008
|
+
[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]]
|
3009
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3010
|
+
[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-17 20:03:37.715342"], ["updated_at", "2018-09-17 20:03:37.715342"]]
|
3011
|
+
[1m[35m (11.9ms)[0m [1m[36mcommit transaction[0m
|
3012
|
+
[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]]
|
3013
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3014
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
3015
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3016
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
672
3017
|
---------------------------------------------------------------------
|
673
3018
|
SpymeTest: test_post_to_spyme_should_not_throw_bad_request_when_empty
|
674
3019
|
---------------------------------------------------------------------
|
675
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
3020
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:03:37 -0300
|
676
3021
|
Processing by Spyme::LocationsController#create as HTML
|
677
|
-
|
678
|
-
|
679
|
-
[1m[
|
3022
|
+
Parameters: {"location"=>{"latitude"=>nil, "longitude"=>nil}}
|
3023
|
+
Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms)
|
3024
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3025
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
680
3026
|
---------------------------------------------------
|
681
3027
|
SpymeTest: test_post_to_spyme_should_return_success
|
682
3028
|
---------------------------------------------------
|
683
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
3029
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:03:37 -0300
|
684
3030
|
Processing by Spyme::LocationsController#create as HTML
|
685
3031
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
686
|
-
Completed 201 Created in
|
687
|
-
[1m[35m (0.
|
688
|
-
[1m[
|
3032
|
+
Completed 201 Created in 3ms (ActiveRecord: 0.0ms)
|
3033
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3034
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
689
3035
|
-------------------------------------------------
|
690
3036
|
SpymeTest: test_post_to_spyme_should_store_coords
|
691
3037
|
-------------------------------------------------
|
692
|
-
Started POST "/spyme/locations" for 127.0.0.1 at
|
3038
|
+
Started POST "/spyme/locations" for 127.0.0.1 at 2018-09-17 17:03:37 -0300
|
693
3039
|
Processing by Spyme::LocationsController#create as HTML
|
694
3040
|
Parameters: {"location"=>{"latitude"=>"64.24145", "longitude"=>"75.35536"}}
|
695
|
-
Completed 201 Created in
|
696
|
-
[1m[35m (0.
|
697
|
-
[1m[
|
3041
|
+
Completed 201 Created in 0ms (ActiveRecord: 0.0ms)
|
3042
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3043
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
698
3044
|
-------------------------------------------------------------
|
699
3045
|
ModelTest: test_as_a_string_should_give_the_right_query_value
|
700
3046
|
-------------------------------------------------------------
|
701
|
-
[1m[35m (0.0ms)[0m
|
702
|
-
[1m[
|
3047
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3048
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3049
|
+
----------------------------------------------------------------------------
|
3050
|
+
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
3051
|
+
----------------------------------------------------------------------------
|
3052
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3053
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3054
|
+
----------------------------------------------------------------
|
3055
|
+
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
3056
|
+
----------------------------------------------------------------
|
3057
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3058
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3059
|
+
--------------------------------------------------------------
|
3060
|
+
ModelTest: test_location_should_be_valid_at_positive_boundries
|
3061
|
+
--------------------------------------------------------------
|
3062
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3063
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
703
3064
|
------------------------------------------------------
|
704
3065
|
ModelTest: test_coords_should_give_the_values_in_array
|
705
3066
|
------------------------------------------------------
|
706
|
-
[1m[35m (0.0ms)[0m
|
707
|
-
[1m[
|
3067
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3068
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3069
|
+
-----------------------------------------------------------------------
|
3070
|
+
ModelTest: test_location_should_be_invalid_exceeding_negative_boundries
|
3071
|
+
-----------------------------------------------------------------------
|
3072
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3073
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3074
|
+
--------------------------------------------------------------
|
3075
|
+
ModelTest: test_location_should_be_valid_at_negative_boundries
|
3076
|
+
--------------------------------------------------------------
|
3077
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3078
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
708
3079
|
-----------------------------------------------------------------------------
|
709
3080
|
ModelTest: test_initialize_from_session_should_give_correct_number_attributes
|
710
3081
|
-----------------------------------------------------------------------------
|
711
|
-
[1m[35m (0.0ms)[0m
|
712
|
-
[1m[
|
713
|
-
----------------------------------------------------------------
|
714
|
-
ModelTest: test_location_should_be_invalid_when_empty_attributes
|
715
|
-
----------------------------------------------------------------
|
716
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
717
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
718
|
-
----------------------------------------------------------------------------
|
719
|
-
ModelTest: test_location_should_be_invalid_when_empty_latitude_and_longitude
|
720
|
-
----------------------------------------------------------------------------
|
721
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
722
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3082
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3083
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
723
3084
|
-------------------------------------------------------------
|
724
3085
|
ModelTest: test_location_should_be_invalid_when_empty_session
|
725
3086
|
-------------------------------------------------------------
|
726
|
-
[1m[35m (0.
|
727
|
-
[1m[
|
3087
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3088
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
728
3089
|
--------------------------------------------------------
|
729
3090
|
ModelTest: test_to_hash_should_give_the_right_hash_value
|
730
3091
|
--------------------------------------------------------
|
731
|
-
[1m[35m (0.
|
3092
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|