economy 4.0.0.0 → 4.0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -9
- data/lib/economy/cache.rb +5 -8
- data/lib/economy/configuration.rb +2 -2
- data/lib/economy/version.rb +1 -1
- data/lib/generators/economy/install/templates/initializer.rb +1 -1
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/config/environments/test.rb +0 -3
- data/test/dummy/config/initializers/economy.rb +3 -2
- data/test/dummy/db/schema.rb +45 -0
- data/test/dummy/log/development.log +56 -0
- data/test/dummy/log/test.log +1865 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 524bedb98a4e39e7b468b4af41a3b84a5d9b8c29
|
4
|
+
data.tar.gz: 01ccba308a34e2b344c27bb09e6a641d90f56662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27ecd251df2e6449dabdb93271351f6d51cb89617cc935d17dfa650cd2d9272f2e86ccde29872a740255ec9786855fd130e08bd904fff5632ce3b1515a578971
|
7
|
+
data.tar.gz: 17b9e7f53bc1bffc3186e69e0c0311beac872c80efc480a6f872c11d1d46cae40b1adaa98b65902cabd49a714c075e5bf0ad1878a2e7dad8a1cf18eb9fd8566c
|
data/README.md
CHANGED
@@ -45,16 +45,17 @@ Set the global settings:
|
|
45
45
|
```ruby
|
46
46
|
Economy.configure do |config|
|
47
47
|
|
48
|
+
config.redis = Redis.new(url: 'redis://localhost:6379/0')
|
48
49
|
config.rates = :yahoo
|
49
50
|
config.default_currency = 'USD'
|
50
51
|
|
51
|
-
config.
|
52
|
+
config.add_currency(
|
52
53
|
iso_code: 'USD',
|
53
54
|
iso_number: 840,
|
54
55
|
symbol: 'U$S',
|
55
56
|
decimals: 2
|
56
57
|
)
|
57
|
-
config.
|
58
|
+
config.add_currency(
|
58
59
|
iso_code: 'UYU',
|
59
60
|
iso_number: 858,
|
60
61
|
symbol: '$U',
|
@@ -64,13 +65,6 @@ Economy.configure do |config|
|
|
64
65
|
end
|
65
66
|
```
|
66
67
|
|
67
|
-
Add a redis_url to your environment configuration:
|
68
|
-
```ruby
|
69
|
-
Rails.application.configure do
|
70
|
-
config.redis_url = 'redis://localhost:6379/0'
|
71
|
-
end
|
72
|
-
```
|
73
|
-
|
74
68
|
## Usage
|
75
69
|
|
76
70
|
### Definitions
|
data/lib/economy/cache.rb
CHANGED
@@ -2,24 +2,21 @@ module Economy
|
|
2
2
|
class Cache
|
3
3
|
|
4
4
|
def get(from, to)
|
5
|
-
|
5
|
+
redis.get "exchanges/#{from.iso_code.downcase}/#{to.iso_code.downcase}"
|
6
6
|
end
|
7
7
|
|
8
8
|
def set(exchange)
|
9
|
-
|
9
|
+
redis.set "exchanges/#{exchange.from.downcase}/#{exchange.to.downcase}", exchange.rate.to_s
|
10
10
|
end
|
11
11
|
|
12
12
|
def clear
|
13
|
-
|
13
|
+
redis.del 'exchanges/*'
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
17
17
|
|
18
|
-
def
|
19
|
-
|
20
|
-
require 'redis'
|
21
|
-
Redis.new url: Rails.configuration.redis_url
|
22
|
-
end
|
18
|
+
def redis
|
19
|
+
Economy.configuration.redis
|
23
20
|
end
|
24
21
|
|
25
22
|
end
|
data/lib/economy/version.rb
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
Economy.configure do |config|
|
2
2
|
|
3
|
+
config.redis = Redis.new(url: 'redis://localhost:6379/0')
|
3
4
|
config.rates = :yahoo
|
4
5
|
config.default_currency = 'USD'
|
5
6
|
|
6
|
-
config.
|
7
|
+
config.add_currency(
|
7
8
|
iso_code: 'USD',
|
8
9
|
iso_number: 840,
|
9
10
|
symbol: 'U$S',
|
10
11
|
decimals: 2
|
11
12
|
)
|
12
|
-
config.
|
13
|
+
config.add_currency(
|
13
14
|
iso_code: 'UYU',
|
14
15
|
iso_number: 858,
|
15
16
|
symbol: '$U',
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20161115150024) do
|
15
|
+
|
16
|
+
# These are extensions that must be enabled in order to support this database
|
17
|
+
enable_extension "plpgsql"
|
18
|
+
|
19
|
+
create_table "exchanges", force: :cascade do |t|
|
20
|
+
t.string "service", limit: 30
|
21
|
+
t.string "from", limit: 3
|
22
|
+
t.string "to", limit: 3
|
23
|
+
t.decimal "rate", precision: 24, scale: 12
|
24
|
+
t.datetime "created_at", null: false
|
25
|
+
t.datetime "updated_at", null: false
|
26
|
+
end
|
27
|
+
|
28
|
+
add_index "exchanges", ["from", "to"], name: "index_exchanges_on_from_and_to", using: :btree
|
29
|
+
|
30
|
+
create_table "plans", force: :cascade do |t|
|
31
|
+
t.decimal "monthly_price", precision: 24, scale: 6
|
32
|
+
t.decimal "annually_price", precision: 24, scale: 6
|
33
|
+
t.string "currency", limit: 3
|
34
|
+
t.datetime "created_at", null: false
|
35
|
+
t.datetime "updated_at", null: false
|
36
|
+
end
|
37
|
+
|
38
|
+
create_table "products", force: :cascade do |t|
|
39
|
+
t.decimal "price", precision: 24, scale: 6
|
40
|
+
t.string "price_currency", limit: 3
|
41
|
+
t.datetime "created_at", null: false
|
42
|
+
t.datetime "updated_at", null: false
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
[1m[36m (19.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateExchanges (20161115135521)
|
5
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6
|
+
[1m[36m (14.1ms)[0m [1mCREATE TABLE "exchanges" ("id" serial primary key, "service" character varying(30), "from" character varying(3), "to" character varying(3), "rate" decimal(24,12), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
7
|
+
[1m[35m (6.7ms)[0m CREATE INDEX "index_exchanges_on_from_and_to" ON "exchanges" ("from", "to")
|
8
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115135521"]]
|
9
|
+
[1m[35m (11.5ms)[0m COMMIT
|
10
|
+
Migrating to CreateProducts (20161115145905)
|
11
|
+
[1m[36m (6.0ms)[0m [1mBEGIN[0m
|
12
|
+
[1m[35m (8.1ms)[0m CREATE TABLE "products" ("id" serial primary key, "price" decimal(24,6), "price_currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
13
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115145905"]]
|
14
|
+
[1m[35m (11.1ms)[0m COMMIT
|
15
|
+
Migrating to CreatePlans (20161115150024)
|
16
|
+
[1m[36m (6.1ms)[0m [1mBEGIN[0m
|
17
|
+
[1m[35m (7.1ms)[0m CREATE TABLE "plans" ("id" serial primary key, "monthly_price" decimal(24,6), "annually_price" decimal(24,6), "currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
18
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115150024"]]
|
19
|
+
[1m[35m (11.3ms)[0m COMMIT
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[35m (1.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
22
|
+
FROM pg_constraint c
|
23
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
24
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
25
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
26
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
27
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
28
|
+
WHERE c.contype = 'f'
|
29
|
+
AND t1.relname = 'exchanges'
|
30
|
+
AND t3.nspname = ANY (current_schemas(false))
|
31
|
+
ORDER BY c.conname
|
32
|
+
|
33
|
+
[1m[36m (1.5ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
34
|
+
FROM pg_constraint c
|
35
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
36
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
37
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
38
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
39
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
40
|
+
WHERE c.contype = 'f'
|
41
|
+
AND t1.relname = 'plans'
|
42
|
+
AND t3.nspname = ANY (current_schemas(false))
|
43
|
+
ORDER BY c.conname
|
44
|
+
[0m
|
45
|
+
[1m[35m (1.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
46
|
+
FROM pg_constraint c
|
47
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
48
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
49
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
50
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
51
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
52
|
+
WHERE c.contype = 'f'
|
53
|
+
AND t1.relname = 'products'
|
54
|
+
AND t3.nspname = ANY (current_schemas(false))
|
55
|
+
ORDER BY c.conname
|
56
|
+
|
@@ -0,0 +1,1865 @@
|
|
1
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateExchanges (20161115135521)
|
5
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "exchanges" ("id" serial primary key, "service" character varying(30), "from" character varying(3), "to" character varying(3), "rate" decimal(24,12), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
7
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_exchanges_on_from_and_to" ON "exchanges" ("from", "to")
|
8
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115135521"]]
|
9
|
+
[1m[35m (0.5ms)[0m COMMIT
|
10
|
+
Migrating to CreateProducts (20161115145905)
|
11
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
12
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "products" ("id" serial primary key, "price" decimal(24,6), "price_currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
13
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115145905"]]
|
14
|
+
[1m[35m (0.4ms)[0m COMMIT
|
15
|
+
Migrating to CreatePlans (20161115150024)
|
16
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "plans" ("id" serial primary key, "monthly_price" decimal(24,6), "annually_price" decimal(24,6), "currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
18
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115150024"]]
|
19
|
+
[1m[35m (0.5ms)[0m COMMIT
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[35m (2.1ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
22
|
+
FROM pg_constraint c
|
23
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
24
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
25
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
26
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
27
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
28
|
+
WHERE c.contype = 'f'
|
29
|
+
AND t1.relname = 'exchanges'
|
30
|
+
AND t3.nspname = ANY (current_schemas(false))
|
31
|
+
ORDER BY c.conname
|
32
|
+
|
33
|
+
[1m[36m (2.1ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
34
|
+
FROM pg_constraint c
|
35
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
36
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
37
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
38
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
39
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
40
|
+
WHERE c.contype = 'f'
|
41
|
+
AND t1.relname = 'plans'
|
42
|
+
AND t3.nspname = ANY (current_schemas(false))
|
43
|
+
ORDER BY c.conname
|
44
|
+
[0m
|
45
|
+
[1m[35m (1.6ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
46
|
+
FROM pg_constraint c
|
47
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
48
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
49
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
50
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
51
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
52
|
+
WHERE c.contype = 'f'
|
53
|
+
AND t1.relname = 'products'
|
54
|
+
AND t3.nspname = ANY (current_schemas(false))
|
55
|
+
ORDER BY c.conname
|
56
|
+
|
57
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
58
|
+
[1m[35m (0.2ms)[0m BEGIN
|
59
|
+
---------------------------------
|
60
|
+
MoneyTest: test_abs_and_magnitude
|
61
|
+
---------------------------------
|
62
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
63
|
+
[1m[35mSQL (9.4ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:00.975695"], ["updated_at", "2016-12-07 19:53:00.975695"]]
|
64
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
66
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:00.996924"], ["updated_at", "2016-12-07 19:53:00.996924"]]
|
67
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
68
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
69
|
+
[1m[35m (0.2ms)[0m BEGIN
|
70
|
+
-------------------
|
71
|
+
MoneyTest: test_<=>
|
72
|
+
-------------------
|
73
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
74
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.000777"], ["updated_at", "2016-12-07 19:53:01.000777"]]
|
75
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
76
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
77
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.002558"], ["updated_at", "2016-12-07 19:53:01.002558"]]
|
78
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
79
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
80
|
+
[1m[35m (0.1ms)[0m BEGIN
|
81
|
+
----------------------
|
82
|
+
MoneyTest: test_divmod
|
83
|
+
----------------------
|
84
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
85
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.005272"], ["updated_at", "2016-12-07 19:53:01.005272"]]
|
86
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
88
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.006735"], ["updated_at", "2016-12-07 19:53:01.006735"]]
|
89
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
90
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
91
|
+
[1m[35m (0.1ms)[0m BEGIN
|
92
|
+
-------------------------
|
93
|
+
MoneyTest: test_/_and_div
|
94
|
+
-------------------------
|
95
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
96
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.009367"], ["updated_at", "2016-12-07 19:53:01.009367"]]
|
97
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
98
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
99
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.010760"], ["updated_at", "2016-12-07 19:53:01.010760"]]
|
100
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
101
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
102
|
+
[1m[35m (0.1ms)[0m BEGIN
|
103
|
+
-------------------------
|
104
|
+
MoneyTest: test_positive?
|
105
|
+
-------------------------
|
106
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
107
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.013194"], ["updated_at", "2016-12-07 19:53:01.013194"]]
|
108
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
109
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
110
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.014690"], ["updated_at", "2016-12-07 19:53:01.014690"]]
|
111
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
112
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
113
|
+
[1m[35m (0.1ms)[0m BEGIN
|
114
|
+
---------------------------
|
115
|
+
MoneyTest: test_exchange_to
|
116
|
+
---------------------------
|
117
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
118
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.017069"], ["updated_at", "2016-12-07 19:53:01.017069"]]
|
119
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
120
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
121
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.018433"], ["updated_at", "2016-12-07 19:53:01.018433"]]
|
122
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
123
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
124
|
+
[1m[35m (0.1ms)[0m BEGIN
|
125
|
+
----------------------
|
126
|
+
MoneyTest: test_coerce
|
127
|
+
----------------------
|
128
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
129
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.020649"], ["updated_at", "2016-12-07 19:53:01.020649"]]
|
130
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
131
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
132
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.022006"], ["updated_at", "2016-12-07 19:53:01.022006"]]
|
133
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
134
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
135
|
+
[1m[35m (0.1ms)[0m BEGIN
|
136
|
+
-------------------------
|
137
|
+
MoneyTest: test_negative?
|
138
|
+
-------------------------
|
139
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.025236"], ["updated_at", "2016-12-07 19:53:01.025236"]]
|
141
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
143
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.027432"], ["updated_at", "2016-12-07 19:53:01.027432"]]
|
144
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
145
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
146
|
+
[1m[35m (0.1ms)[0m BEGIN
|
147
|
+
--------------------
|
148
|
+
MoneyTest: test_to_s
|
149
|
+
--------------------
|
150
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
151
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.030172"], ["updated_at", "2016-12-07 19:53:01.030172"]]
|
152
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
153
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
154
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.031648"], ["updated_at", "2016-12-07 19:53:01.031648"]]
|
155
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
156
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
157
|
+
[1m[35m (0.1ms)[0m BEGIN
|
158
|
+
-----------------------------------
|
159
|
+
MoneyTest: test_to_json_and_as_json
|
160
|
+
-----------------------------------
|
161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
162
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.042811"], ["updated_at", "2016-12-07 19:53:01.042811"]]
|
163
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
165
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.044453"], ["updated_at", "2016-12-07 19:53:01.044453"]]
|
166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
167
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
168
|
+
[1m[35m (0.1ms)[0m BEGIN
|
169
|
+
---------------------
|
170
|
+
MoneyTest: test_zero?
|
171
|
+
---------------------
|
172
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
173
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.046779"], ["updated_at", "2016-12-07 19:53:01.046779"]]
|
174
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
175
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
176
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.048124"], ["updated_at", "2016-12-07 19:53:01.048124"]]
|
177
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
178
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
179
|
+
[1m[35m (0.1ms)[0m BEGIN
|
180
|
+
-----------------
|
181
|
+
MoneyTest: test_+
|
182
|
+
-----------------
|
183
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
184
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.050574"], ["updated_at", "2016-12-07 19:53:01.050574"]]
|
185
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
186
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
187
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.052078"], ["updated_at", "2016-12-07 19:53:01.052078"]]
|
188
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
189
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
190
|
+
[1m[35m (0.2ms)[0m BEGIN
|
191
|
+
-----------------
|
192
|
+
MoneyTest: test_<
|
193
|
+
-----------------
|
194
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
195
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.054765"], ["updated_at", "2016-12-07 19:53:01.054765"]]
|
196
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
197
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
198
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.056207"], ["updated_at", "2016-12-07 19:53:01.056207"]]
|
199
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
200
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
201
|
+
[1m[35m (0.1ms)[0m BEGIN
|
202
|
+
-------------------------
|
203
|
+
MoneyTest: test_remainder
|
204
|
+
-------------------------
|
205
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
206
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.071530"], ["updated_at", "2016-12-07 19:53:01.071530"]]
|
207
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.073323"], ["updated_at", "2016-12-07 19:53:01.073323"]]
|
210
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
211
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
212
|
+
[1m[35m (0.1ms)[0m BEGIN
|
213
|
+
-------------------
|
214
|
+
MoneyTest: test_===
|
215
|
+
-------------------
|
216
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
217
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.076120"], ["updated_at", "2016-12-07 19:53:01.076120"]]
|
218
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
219
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
220
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.077778"], ["updated_at", "2016-12-07 19:53:01.077778"]]
|
221
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
222
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
223
|
+
[1m[35m (0.2ms)[0m BEGIN
|
224
|
+
------------------
|
225
|
+
MoneyTest: test_-@
|
226
|
+
------------------
|
227
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
228
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.080439"], ["updated_at", "2016-12-07 19:53:01.080439"]]
|
229
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.081815"], ["updated_at", "2016-12-07 19:53:01.081815"]]
|
232
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
233
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
234
|
+
[1m[35m (0.1ms)[0m BEGIN
|
235
|
+
-----------------
|
236
|
+
MoneyTest: test_-
|
237
|
+
-----------------
|
238
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.088567"], ["updated_at", "2016-12-07 19:53:01.088567"]]
|
240
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
242
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.090021"], ["updated_at", "2016-12-07 19:53:01.090021"]]
|
243
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
244
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
245
|
+
[1m[35m (0.1ms)[0m BEGIN
|
246
|
+
----------------------------
|
247
|
+
MoneyTest: test_%_and_modulo
|
248
|
+
----------------------------
|
249
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.092618"], ["updated_at", "2016-12-07 19:53:01.092618"]]
|
251
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.094075"], ["updated_at", "2016-12-07 19:53:01.094075"]]
|
254
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
255
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
256
|
+
[1m[35m (0.1ms)[0m BEGIN
|
257
|
+
------------------------
|
258
|
+
MoneyTest: test_nonzero?
|
259
|
+
------------------------
|
260
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
261
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.096628"], ["updated_at", "2016-12-07 19:53:01.096628"]]
|
262
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
263
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
264
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.098013"], ["updated_at", "2016-12-07 19:53:01.098013"]]
|
265
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
266
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
267
|
+
[1m[35m (0.1ms)[0m BEGIN
|
268
|
+
-----------------
|
269
|
+
MoneyTest: test_*
|
270
|
+
-----------------
|
271
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
272
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.100105"], ["updated_at", "2016-12-07 19:53:01.100105"]]
|
273
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
274
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
275
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.101674"], ["updated_at", "2016-12-07 19:53:01.101674"]]
|
276
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
277
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
278
|
+
[1m[35m (0.1ms)[0m BEGIN
|
279
|
+
---------------------------
|
280
|
+
TaskTest: test_update_rates
|
281
|
+
---------------------------
|
282
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
283
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-07 19:53:01.124023"], ["updated_at", "2016-12-07 19:53:01.124023"]]
|
284
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
285
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
286
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-07 19:53:01.125776"], ["updated_at", "2016-12-07 19:53:01.125776"]]
|
287
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
288
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
289
|
+
[1m[35mEconomy::Exchange Exists (5.5ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
290
|
+
[1m[36mEconomy::Exchange Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
291
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
292
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
293
|
+
---------------------------
|
294
|
+
GeneratorTest: test_install
|
295
|
+
---------------------------
|
296
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
297
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
298
|
+
---------------------------------
|
299
|
+
RecordTest: test_default_currency
|
300
|
+
---------------------------------
|
301
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
302
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.169707"], ["updated_at", "2016-12-07 19:53:01.169707"]]
|
303
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
304
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
305
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.177901"], ["updated_at", "2016-12-07 19:53:01.177901"]]
|
306
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
307
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
308
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
309
|
+
---------------------------
|
310
|
+
RecordTest: test_persistent
|
311
|
+
---------------------------
|
312
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
313
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.185986"], ["updated_at", "2016-12-07 19:53:01.185986"]]
|
314
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
315
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
316
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.187676"], ["updated_at", "2016-12-07 19:53:01.187676"]]
|
317
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
318
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
319
|
+
[1m[36mSQL (6.5ms)[0m [1mINSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-07 19:53:01.193824"], ["updated_at", "2016-12-07 19:53:01.193824"]]
|
320
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
321
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
322
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3 [["monthly_price", "100.0"], ["updated_at", "2016-12-07 19:53:01.202291"], ["id", 1]]
|
323
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
325
|
+
[1m[36mSQL (6.8ms)[0m [1mINSERT INTO "products" ("price", "price_currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["price", "15.0"], ["price_currency", "UYU"], ["created_at", "2016-12-07 19:53:01.204659"], ["updated_at", "2016-12-07 19:53:01.204659"]]
|
326
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
327
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
328
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "products" SET "price" = $1, "price_currency" = $2, "updated_at" = $3 WHERE "products"."id" = $4 [["price", "5.0"], ["price_currency", "USD"], ["updated_at", "2016-12-07 19:53:01.213020"], ["id", 1]]
|
329
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
330
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
331
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
332
|
+
---------------------------
|
333
|
+
RecordTest: test_validators
|
334
|
+
---------------------------
|
335
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
336
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.215791"], ["updated_at", "2016-12-07 19:53:01.215791"]]
|
337
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
338
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
339
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.217396"], ["updated_at", "2016-12-07 19:53:01.217396"]]
|
340
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
341
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
342
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
343
|
+
------------------------
|
344
|
+
RecordTest: test_helpers
|
345
|
+
------------------------
|
346
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
347
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 19:53:01.221201"], ["updated_at", "2016-12-07 19:53:01.221201"]]
|
348
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
349
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
350
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 19:53:01.222680"], ["updated_at", "2016-12-07 19:53:01.222680"]]
|
351
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
352
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
353
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
354
|
+
----------------------
|
355
|
+
RateTest: test_retries
|
356
|
+
----------------------
|
357
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
358
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
359
|
+
--------------------
|
360
|
+
RateTest: test_yahoo
|
361
|
+
--------------------
|
362
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
363
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
364
|
+
[1m[35m (0.2ms)[0m BEGIN
|
365
|
+
---------------------------
|
366
|
+
TaskTest: test_update_rates
|
367
|
+
---------------------------
|
368
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
369
|
+
[1m[35m (0.2ms)[0m BEGIN
|
370
|
+
---------------------------
|
371
|
+
GeneratorTest: test_install
|
372
|
+
---------------------------
|
373
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
374
|
+
[1m[35m (0.2ms)[0m BEGIN
|
375
|
+
---------------------------
|
376
|
+
TaskTest: test_update_rates
|
377
|
+
---------------------------
|
378
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
379
|
+
[1m[35m (0.2ms)[0m BEGIN
|
380
|
+
-------------------------
|
381
|
+
MoneyTest: test_/_and_div
|
382
|
+
-------------------------
|
383
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
384
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:52.973017"], ["updated_at", "2016-12-07 20:04:52.973017"]]
|
385
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
387
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:52.977670"], ["updated_at", "2016-12-07 20:04:52.977670"]]
|
388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
389
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
390
|
+
[1m[35m (0.2ms)[0m BEGIN
|
391
|
+
---------------------------------
|
392
|
+
MoneyTest: test_abs_and_magnitude
|
393
|
+
---------------------------------
|
394
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
395
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:52.980376"], ["updated_at", "2016-12-07 20:04:52.980376"]]
|
396
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
397
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
398
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:52.982695"], ["updated_at", "2016-12-07 20:04:52.982695"]]
|
399
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
400
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
401
|
+
[1m[35m (0.1ms)[0m BEGIN
|
402
|
+
-----------------
|
403
|
+
MoneyTest: test_+
|
404
|
+
-----------------
|
405
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
406
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:52.985586"], ["updated_at", "2016-12-07 20:04:52.985586"]]
|
407
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
408
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
409
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:52.987101"], ["updated_at", "2016-12-07 20:04:52.987101"]]
|
410
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
411
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
412
|
+
[1m[35m (0.1ms)[0m BEGIN
|
413
|
+
----------------------
|
414
|
+
MoneyTest: test_divmod
|
415
|
+
----------------------
|
416
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
417
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:52.989663"], ["updated_at", "2016-12-07 20:04:52.989663"]]
|
418
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
419
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
420
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:52.991935"], ["updated_at", "2016-12-07 20:04:52.991935"]]
|
421
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
422
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
423
|
+
[1m[35m (0.1ms)[0m BEGIN
|
424
|
+
-------------------------
|
425
|
+
MoneyTest: test_negative?
|
426
|
+
-------------------------
|
427
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
428
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:52.994892"], ["updated_at", "2016-12-07 20:04:52.994892"]]
|
429
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
430
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
431
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:52.996439"], ["updated_at", "2016-12-07 20:04:52.996439"]]
|
432
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
433
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
434
|
+
[1m[35m (0.2ms)[0m BEGIN
|
435
|
+
-------------------------
|
436
|
+
MoneyTest: test_remainder
|
437
|
+
-------------------------
|
438
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
439
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.000930"], ["updated_at", "2016-12-07 20:04:53.000930"]]
|
440
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
441
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
442
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.002539"], ["updated_at", "2016-12-07 20:04:53.002539"]]
|
443
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
444
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
445
|
+
[1m[35m (0.2ms)[0m BEGIN
|
446
|
+
------------------------
|
447
|
+
MoneyTest: test_nonzero?
|
448
|
+
------------------------
|
449
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
450
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.005278"], ["updated_at", "2016-12-07 20:04:53.005278"]]
|
451
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
452
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
453
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.006785"], ["updated_at", "2016-12-07 20:04:53.006785"]]
|
454
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
455
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
456
|
+
[1m[35m (0.1ms)[0m BEGIN
|
457
|
+
----------------------
|
458
|
+
MoneyTest: test_coerce
|
459
|
+
----------------------
|
460
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
461
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.008966"], ["updated_at", "2016-12-07 20:04:53.008966"]]
|
462
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
463
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
464
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.010249"], ["updated_at", "2016-12-07 20:04:53.010249"]]
|
465
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
466
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
467
|
+
[1m[35m (0.1ms)[0m BEGIN
|
468
|
+
-----------------------------------
|
469
|
+
MoneyTest: test_to_json_and_as_json
|
470
|
+
-----------------------------------
|
471
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
472
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.012339"], ["updated_at", "2016-12-07 20:04:53.012339"]]
|
473
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
474
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
475
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.013707"], ["updated_at", "2016-12-07 20:04:53.013707"]]
|
476
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
477
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
478
|
+
[1m[35m (0.1ms)[0m BEGIN
|
479
|
+
---------------------------
|
480
|
+
MoneyTest: test_exchange_to
|
481
|
+
---------------------------
|
482
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
483
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.016145"], ["updated_at", "2016-12-07 20:04:53.016145"]]
|
484
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
485
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
486
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.017680"], ["updated_at", "2016-12-07 20:04:53.017680"]]
|
487
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
488
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
489
|
+
[1m[35m (0.1ms)[0m BEGIN
|
490
|
+
--------------------
|
491
|
+
MoneyTest: test_to_s
|
492
|
+
--------------------
|
493
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
494
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.019874"], ["updated_at", "2016-12-07 20:04:53.019874"]]
|
495
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
496
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
497
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.021266"], ["updated_at", "2016-12-07 20:04:53.021266"]]
|
498
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
499
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
500
|
+
[1m[35m (0.1ms)[0m BEGIN
|
501
|
+
----------------------------
|
502
|
+
MoneyTest: test_%_and_modulo
|
503
|
+
----------------------------
|
504
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
505
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.023360"], ["updated_at", "2016-12-07 20:04:53.023360"]]
|
506
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
507
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
508
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.024647"], ["updated_at", "2016-12-07 20:04:53.024647"]]
|
509
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
510
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
511
|
+
[1m[35m (0.1ms)[0m BEGIN
|
512
|
+
-----------------
|
513
|
+
MoneyTest: test_-
|
514
|
+
-----------------
|
515
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
516
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.026820"], ["updated_at", "2016-12-07 20:04:53.026820"]]
|
517
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
518
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
519
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.028174"], ["updated_at", "2016-12-07 20:04:53.028174"]]
|
520
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
521
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
522
|
+
[1m[35m (0.1ms)[0m BEGIN
|
523
|
+
---------------------
|
524
|
+
MoneyTest: test_zero?
|
525
|
+
---------------------
|
526
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
527
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.030201"], ["updated_at", "2016-12-07 20:04:53.030201"]]
|
528
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
529
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
530
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.031336"], ["updated_at", "2016-12-07 20:04:53.031336"]]
|
531
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
532
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
533
|
+
[1m[35m (0.1ms)[0m BEGIN
|
534
|
+
-------------------
|
535
|
+
MoneyTest: test_===
|
536
|
+
-------------------
|
537
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
538
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.034086"], ["updated_at", "2016-12-07 20:04:53.034086"]]
|
539
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
540
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
541
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.036505"], ["updated_at", "2016-12-07 20:04:53.036505"]]
|
542
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
543
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
544
|
+
[1m[35m (0.2ms)[0m BEGIN
|
545
|
+
-------------------
|
546
|
+
MoneyTest: test_<=>
|
547
|
+
-------------------
|
548
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
549
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.040531"], ["updated_at", "2016-12-07 20:04:53.040531"]]
|
550
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
551
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
552
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.042430"], ["updated_at", "2016-12-07 20:04:53.042430"]]
|
553
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
554
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
555
|
+
[1m[35m (0.1ms)[0m BEGIN
|
556
|
+
------------------
|
557
|
+
MoneyTest: test_-@
|
558
|
+
------------------
|
559
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
560
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.044874"], ["updated_at", "2016-12-07 20:04:53.044874"]]
|
561
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
562
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
563
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.046297"], ["updated_at", "2016-12-07 20:04:53.046297"]]
|
564
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
565
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
566
|
+
[1m[35m (0.1ms)[0m BEGIN
|
567
|
+
-------------------------
|
568
|
+
MoneyTest: test_positive?
|
569
|
+
-------------------------
|
570
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
571
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.048769"], ["updated_at", "2016-12-07 20:04:53.048769"]]
|
572
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
573
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
574
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.050526"], ["updated_at", "2016-12-07 20:04:53.050526"]]
|
575
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
576
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
577
|
+
[1m[35m (0.1ms)[0m BEGIN
|
578
|
+
-----------------
|
579
|
+
MoneyTest: test_<
|
580
|
+
-----------------
|
581
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
582
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.052663"], ["updated_at", "2016-12-07 20:04:53.052663"]]
|
583
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
584
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
585
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.053968"], ["updated_at", "2016-12-07 20:04:53.053968"]]
|
586
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
587
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
588
|
+
[1m[35m (0.1ms)[0m BEGIN
|
589
|
+
-----------------
|
590
|
+
MoneyTest: test_*
|
591
|
+
-----------------
|
592
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
593
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.060035"], ["updated_at", "2016-12-07 20:04:53.060035"]]
|
594
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
595
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
596
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.061956"], ["updated_at", "2016-12-07 20:04:53.061956"]]
|
597
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
598
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
599
|
+
[1m[35m (0.1ms)[0m BEGIN
|
600
|
+
---------------------------
|
601
|
+
GeneratorTest: test_install
|
602
|
+
---------------------------
|
603
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
604
|
+
[1m[35m (0.1ms)[0m BEGIN
|
605
|
+
---------------------------
|
606
|
+
RecordTest: test_validators
|
607
|
+
---------------------------
|
608
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
609
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.073959"], ["updated_at", "2016-12-07 20:04:53.073959"]]
|
610
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
612
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.075854"], ["updated_at", "2016-12-07 20:04:53.075854"]]
|
613
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
614
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
615
|
+
[1m[35m (0.1ms)[0m BEGIN
|
616
|
+
---------------------------------
|
617
|
+
RecordTest: test_default_currency
|
618
|
+
---------------------------------
|
619
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
620
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.089122"], ["updated_at", "2016-12-07 20:04:53.089122"]]
|
621
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
622
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
623
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.090832"], ["updated_at", "2016-12-07 20:04:53.090832"]]
|
624
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
625
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
626
|
+
[1m[35m (0.1ms)[0m BEGIN
|
627
|
+
------------------------
|
628
|
+
RecordTest: test_helpers
|
629
|
+
------------------------
|
630
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.093403"], ["updated_at", "2016-12-07 20:04:53.093403"]]
|
632
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
633
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
634
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.095606"], ["updated_at", "2016-12-07 20:04:53.095606"]]
|
635
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
636
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
637
|
+
[1m[35m (0.2ms)[0m BEGIN
|
638
|
+
---------------------------
|
639
|
+
RecordTest: test_persistent
|
640
|
+
---------------------------
|
641
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
642
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:04:53.098801"], ["updated_at", "2016-12-07 20:04:53.098801"]]
|
643
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
644
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
645
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:04:53.100422"], ["updated_at", "2016-12-07 20:04:53.100422"]]
|
646
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
647
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
648
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-07 20:04:53.107529"], ["updated_at", "2016-12-07 20:04:53.107529"]]
|
649
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
650
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
651
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
652
|
+
----------------------
|
653
|
+
RateTest: test_retries
|
654
|
+
----------------------
|
655
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
656
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
657
|
+
--------------------
|
658
|
+
RateTest: test_yahoo
|
659
|
+
--------------------
|
660
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
661
|
+
[1m[35m (0.2ms)[0m BEGIN
|
662
|
+
-----------------------------------
|
663
|
+
MoneyTest: test_to_json_and_as_json
|
664
|
+
-----------------------------------
|
665
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
666
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.572089"], ["updated_at", "2016-12-07 20:08:19.572089"]]
|
667
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
668
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
669
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.576832"], ["updated_at", "2016-12-07 20:08:19.576832"]]
|
670
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
671
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
672
|
+
[1m[35m (0.1ms)[0m BEGIN
|
673
|
+
---------------------------
|
674
|
+
MoneyTest: test_exchange_to
|
675
|
+
---------------------------
|
676
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
677
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.579493"], ["updated_at", "2016-12-07 20:08:19.579493"]]
|
678
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
679
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
680
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.580983"], ["updated_at", "2016-12-07 20:08:19.580983"]]
|
681
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
682
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
683
|
+
[1m[35m (0.2ms)[0m BEGIN
|
684
|
+
----------------------------
|
685
|
+
MoneyTest: test_%_and_modulo
|
686
|
+
----------------------------
|
687
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
688
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.584810"], ["updated_at", "2016-12-07 20:08:19.584810"]]
|
689
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
690
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
691
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.586349"], ["updated_at", "2016-12-07 20:08:19.586349"]]
|
692
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
693
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
694
|
+
[1m[35m (0.1ms)[0m BEGIN
|
695
|
+
-------------------
|
696
|
+
MoneyTest: test_<=>
|
697
|
+
-------------------
|
698
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
699
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.588665"], ["updated_at", "2016-12-07 20:08:19.588665"]]
|
700
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
701
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
702
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.589993"], ["updated_at", "2016-12-07 20:08:19.589993"]]
|
703
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
704
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
705
|
+
[1m[35m (0.1ms)[0m BEGIN
|
706
|
+
--------------------
|
707
|
+
MoneyTest: test_to_s
|
708
|
+
--------------------
|
709
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
710
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.592243"], ["updated_at", "2016-12-07 20:08:19.592243"]]
|
711
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
712
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
713
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.594706"], ["updated_at", "2016-12-07 20:08:19.594706"]]
|
714
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
715
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
716
|
+
[1m[35m (0.1ms)[0m BEGIN
|
717
|
+
----------------------
|
718
|
+
MoneyTest: test_coerce
|
719
|
+
----------------------
|
720
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
721
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.597586"], ["updated_at", "2016-12-07 20:08:19.597586"]]
|
722
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
723
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
724
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.599201"], ["updated_at", "2016-12-07 20:08:19.599201"]]
|
725
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
726
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
727
|
+
[1m[35m (0.1ms)[0m BEGIN
|
728
|
+
-------------------
|
729
|
+
MoneyTest: test_===
|
730
|
+
-------------------
|
731
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
732
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.603175"], ["updated_at", "2016-12-07 20:08:19.603175"]]
|
733
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
734
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
735
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.604659"], ["updated_at", "2016-12-07 20:08:19.604659"]]
|
736
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
737
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
738
|
+
[1m[35m (0.1ms)[0m BEGIN
|
739
|
+
-------------------------
|
740
|
+
MoneyTest: test_remainder
|
741
|
+
-------------------------
|
742
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
743
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.606878"], ["updated_at", "2016-12-07 20:08:19.606878"]]
|
744
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
745
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
746
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.608251"], ["updated_at", "2016-12-07 20:08:19.608251"]]
|
747
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
748
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
749
|
+
[1m[35m (0.1ms)[0m BEGIN
|
750
|
+
------------------
|
751
|
+
MoneyTest: test_-@
|
752
|
+
------------------
|
753
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
754
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.610627"], ["updated_at", "2016-12-07 20:08:19.610627"]]
|
755
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
756
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
757
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.611958"], ["updated_at", "2016-12-07 20:08:19.611958"]]
|
758
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
759
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
760
|
+
[1m[35m (0.1ms)[0m BEGIN
|
761
|
+
-----------------
|
762
|
+
MoneyTest: test_+
|
763
|
+
-----------------
|
764
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
765
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.614055"], ["updated_at", "2016-12-07 20:08:19.614055"]]
|
766
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
767
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
768
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.615502"], ["updated_at", "2016-12-07 20:08:19.615502"]]
|
769
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
770
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
771
|
+
[1m[35m (0.1ms)[0m BEGIN
|
772
|
+
-----------------
|
773
|
+
MoneyTest: test_-
|
774
|
+
-----------------
|
775
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
776
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.617883"], ["updated_at", "2016-12-07 20:08:19.617883"]]
|
777
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
778
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
779
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.619398"], ["updated_at", "2016-12-07 20:08:19.619398"]]
|
780
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
781
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
782
|
+
[1m[35m (0.1ms)[0m BEGIN
|
783
|
+
------------------------
|
784
|
+
MoneyTest: test_nonzero?
|
785
|
+
------------------------
|
786
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
787
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.621876"], ["updated_at", "2016-12-07 20:08:19.621876"]]
|
788
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
789
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
790
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.623464"], ["updated_at", "2016-12-07 20:08:19.623464"]]
|
791
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
792
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
793
|
+
[1m[35m (0.1ms)[0m BEGIN
|
794
|
+
-----------------
|
795
|
+
MoneyTest: test_*
|
796
|
+
-----------------
|
797
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
798
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.625642"], ["updated_at", "2016-12-07 20:08:19.625642"]]
|
799
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
800
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
801
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.627011"], ["updated_at", "2016-12-07 20:08:19.627011"]]
|
802
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
803
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
804
|
+
[1m[35m (0.1ms)[0m BEGIN
|
805
|
+
---------------------
|
806
|
+
MoneyTest: test_zero?
|
807
|
+
---------------------
|
808
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
809
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.629109"], ["updated_at", "2016-12-07 20:08:19.629109"]]
|
810
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
811
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
812
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.630403"], ["updated_at", "2016-12-07 20:08:19.630403"]]
|
813
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
814
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
815
|
+
[1m[35m (0.1ms)[0m BEGIN
|
816
|
+
-------------------------
|
817
|
+
MoneyTest: test_negative?
|
818
|
+
-------------------------
|
819
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
820
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.632594"], ["updated_at", "2016-12-07 20:08:19.632594"]]
|
821
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
822
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
823
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.633992"], ["updated_at", "2016-12-07 20:08:19.633992"]]
|
824
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
825
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
826
|
+
[1m[35m (0.1ms)[0m BEGIN
|
827
|
+
-------------------------
|
828
|
+
MoneyTest: test_/_and_div
|
829
|
+
-------------------------
|
830
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
831
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.636412"], ["updated_at", "2016-12-07 20:08:19.636412"]]
|
832
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
833
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
834
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.638050"], ["updated_at", "2016-12-07 20:08:19.638050"]]
|
835
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
836
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
837
|
+
[1m[35m (0.1ms)[0m BEGIN
|
838
|
+
-----------------
|
839
|
+
MoneyTest: test_<
|
840
|
+
-----------------
|
841
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
842
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.640189"], ["updated_at", "2016-12-07 20:08:19.640189"]]
|
843
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
844
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
845
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.641468"], ["updated_at", "2016-12-07 20:08:19.641468"]]
|
846
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
847
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
848
|
+
[1m[35m (0.1ms)[0m BEGIN
|
849
|
+
-------------------------
|
850
|
+
MoneyTest: test_positive?
|
851
|
+
-------------------------
|
852
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
853
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.643619"], ["updated_at", "2016-12-07 20:08:19.643619"]]
|
854
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
855
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
856
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.644861"], ["updated_at", "2016-12-07 20:08:19.644861"]]
|
857
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
858
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
859
|
+
[1m[35m (0.1ms)[0m BEGIN
|
860
|
+
----------------------
|
861
|
+
MoneyTest: test_divmod
|
862
|
+
----------------------
|
863
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
864
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.647129"], ["updated_at", "2016-12-07 20:08:19.647129"]]
|
865
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
867
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.648603"], ["updated_at", "2016-12-07 20:08:19.648603"]]
|
868
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
869
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
870
|
+
[1m[35m (0.1ms)[0m BEGIN
|
871
|
+
---------------------------------
|
872
|
+
MoneyTest: test_abs_and_magnitude
|
873
|
+
---------------------------------
|
874
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
875
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.655083"], ["updated_at", "2016-12-07 20:08:19.655083"]]
|
876
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
877
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
878
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.656689"], ["updated_at", "2016-12-07 20:08:19.656689"]]
|
879
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
880
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
881
|
+
[1m[35m (0.1ms)[0m BEGIN
|
882
|
+
---------------------------------
|
883
|
+
RecordTest: test_default_currency
|
884
|
+
---------------------------------
|
885
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
886
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.659447"], ["updated_at", "2016-12-07 20:08:19.659447"]]
|
887
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
888
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
889
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.660857"], ["updated_at", "2016-12-07 20:08:19.660857"]]
|
890
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
891
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
892
|
+
[1m[35m (0.1ms)[0m BEGIN
|
893
|
+
---------------------------
|
894
|
+
RecordTest: test_validators
|
895
|
+
---------------------------
|
896
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
897
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.667615"], ["updated_at", "2016-12-07 20:08:19.667615"]]
|
898
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
899
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
900
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.669208"], ["updated_at", "2016-12-07 20:08:19.669208"]]
|
901
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
902
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
903
|
+
[1m[35m (0.1ms)[0m BEGIN
|
904
|
+
------------------------
|
905
|
+
RecordTest: test_helpers
|
906
|
+
------------------------
|
907
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
908
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.677143"], ["updated_at", "2016-12-07 20:08:19.677143"]]
|
909
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
910
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
911
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.678785"], ["updated_at", "2016-12-07 20:08:19.678785"]]
|
912
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
913
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
914
|
+
[1m[35m (0.1ms)[0m BEGIN
|
915
|
+
---------------------------
|
916
|
+
RecordTest: test_persistent
|
917
|
+
---------------------------
|
918
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
919
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:19.681221"], ["updated_at", "2016-12-07 20:08:19.681221"]]
|
920
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
921
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
922
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:19.682606"], ["updated_at", "2016-12-07 20:08:19.682606"]]
|
923
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
924
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
925
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-07 20:08:19.689038"], ["updated_at", "2016-12-07 20:08:19.689038"]]
|
926
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
927
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
928
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
929
|
+
---------------------------
|
930
|
+
TaskTest: test_update_rates
|
931
|
+
---------------------------
|
932
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
933
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-07 20:08:19.718666"], ["updated_at", "2016-12-07 20:08:19.718666"]]
|
934
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
935
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
936
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-07 20:08:19.720446"], ["updated_at", "2016-12-07 20:08:19.720446"]]
|
937
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
938
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "exchanges"
|
939
|
+
[1m[36mEconomy::Exchange Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
940
|
+
[1m[35mEconomy::Exchange Exists (0.2ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
941
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
942
|
+
[1m[35m (0.1ms)[0m BEGIN
|
943
|
+
--------------------
|
944
|
+
RateTest: test_yahoo
|
945
|
+
--------------------
|
946
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
947
|
+
[1m[35m (0.1ms)[0m BEGIN
|
948
|
+
----------------------
|
949
|
+
RateTest: test_retries
|
950
|
+
----------------------
|
951
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
952
|
+
[1m[35m (0.1ms)[0m BEGIN
|
953
|
+
---------------------------
|
954
|
+
GeneratorTest: test_install
|
955
|
+
---------------------------
|
956
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
957
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
958
|
+
[1m[35m (0.2ms)[0m BEGIN
|
959
|
+
------------------------
|
960
|
+
RecordTest: test_helpers
|
961
|
+
------------------------
|
962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
963
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.433786"], ["updated_at", "2016-12-07 20:08:44.433786"]]
|
964
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
965
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
966
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.438642"], ["updated_at", "2016-12-07 20:08:44.438642"]]
|
967
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
968
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
969
|
+
[1m[35m (0.1ms)[0m BEGIN
|
970
|
+
---------------------------------
|
971
|
+
RecordTest: test_default_currency
|
972
|
+
---------------------------------
|
973
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
974
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.446057"], ["updated_at", "2016-12-07 20:08:44.446057"]]
|
975
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
976
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
977
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.447721"], ["updated_at", "2016-12-07 20:08:44.447721"]]
|
978
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
979
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
980
|
+
[1m[35m (0.1ms)[0m BEGIN
|
981
|
+
---------------------------
|
982
|
+
RecordTest: test_persistent
|
983
|
+
---------------------------
|
984
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
985
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.450312"], ["updated_at", "2016-12-07 20:08:44.450312"]]
|
986
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
987
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
988
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.451891"], ["updated_at", "2016-12-07 20:08:44.451891"]]
|
989
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
990
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
991
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-07 20:08:44.459991"], ["updated_at", "2016-12-07 20:08:44.459991"]]
|
992
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
993
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
994
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3[0m [["monthly_price", "100.0"], ["updated_at", "2016-12-07 20:08:44.462821"], ["id", 4]]
|
995
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
996
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
997
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("price", "price_currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["price", "15.0"], ["price_currency", "UYU"], ["created_at", "2016-12-07 20:08:44.469426"], ["updated_at", "2016-12-07 20:08:44.469426"]]
|
998
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
999
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1000
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "products" SET "price" = $1, "price_currency" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["price", "5.0"], ["price_currency", "USD"], ["updated_at", "2016-12-07 20:08:44.471197"], ["id", 2]]
|
1001
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1002
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1003
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1004
|
+
---------------------------
|
1005
|
+
RecordTest: test_validators
|
1006
|
+
---------------------------
|
1007
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1008
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.474370"], ["updated_at", "2016-12-07 20:08:44.474370"]]
|
1009
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1010
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1011
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.476380"], ["updated_at", "2016-12-07 20:08:44.476380"]]
|
1012
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1013
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1014
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1015
|
+
--------------------
|
1016
|
+
RateTest: test_yahoo
|
1017
|
+
--------------------
|
1018
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1019
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1020
|
+
----------------------
|
1021
|
+
RateTest: test_retries
|
1022
|
+
----------------------
|
1023
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1024
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1025
|
+
---------------------------
|
1026
|
+
TaskTest: test_update_rates
|
1027
|
+
---------------------------
|
1028
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1029
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-07 20:08:44.519281"], ["updated_at", "2016-12-07 20:08:44.519281"]]
|
1030
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1031
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1032
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-07 20:08:44.521243"], ["updated_at", "2016-12-07 20:08:44.521243"]]
|
1033
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1034
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
1035
|
+
[1m[35mEconomy::Exchange Exists (0.4ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
1036
|
+
[1m[36mEconomy::Exchange Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
1037
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1038
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1039
|
+
------------------------
|
1040
|
+
MoneyTest: test_nonzero?
|
1041
|
+
------------------------
|
1042
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1043
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.534228"], ["updated_at", "2016-12-07 20:08:44.534228"]]
|
1044
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1045
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1046
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.536083"], ["updated_at", "2016-12-07 20:08:44.536083"]]
|
1047
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1048
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1049
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1050
|
+
-----------------
|
1051
|
+
MoneyTest: test_-
|
1052
|
+
-----------------
|
1053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1054
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.538888"], ["updated_at", "2016-12-07 20:08:44.538888"]]
|
1055
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1056
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1057
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.540698"], ["updated_at", "2016-12-07 20:08:44.540698"]]
|
1058
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1059
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1060
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1061
|
+
------------------
|
1062
|
+
MoneyTest: test_-@
|
1063
|
+
------------------
|
1064
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1065
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.543783"], ["updated_at", "2016-12-07 20:08:44.543783"]]
|
1066
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1067
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1068
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.545465"], ["updated_at", "2016-12-07 20:08:44.545465"]]
|
1069
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1070
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1071
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1072
|
+
-------------------
|
1073
|
+
MoneyTest: test_===
|
1074
|
+
-------------------
|
1075
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1076
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.547947"], ["updated_at", "2016-12-07 20:08:44.547947"]]
|
1077
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1078
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1079
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.549403"], ["updated_at", "2016-12-07 20:08:44.549403"]]
|
1080
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1081
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1082
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1083
|
+
-----------------
|
1084
|
+
MoneyTest: test_+
|
1085
|
+
-----------------
|
1086
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1087
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.551751"], ["updated_at", "2016-12-07 20:08:44.551751"]]
|
1088
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1089
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1090
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.553101"], ["updated_at", "2016-12-07 20:08:44.553101"]]
|
1091
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1092
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1093
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1094
|
+
-------------------------
|
1095
|
+
MoneyTest: test_remainder
|
1096
|
+
-------------------------
|
1097
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1098
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.555490"], ["updated_at", "2016-12-07 20:08:44.555490"]]
|
1099
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1100
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1101
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.557303"], ["updated_at", "2016-12-07 20:08:44.557303"]]
|
1102
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1103
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1104
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1105
|
+
-----------------
|
1106
|
+
MoneyTest: test_*
|
1107
|
+
-----------------
|
1108
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1109
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.560008"], ["updated_at", "2016-12-07 20:08:44.560008"]]
|
1110
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1111
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1112
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.561435"], ["updated_at", "2016-12-07 20:08:44.561435"]]
|
1113
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1114
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1115
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1116
|
+
----------------------
|
1117
|
+
MoneyTest: test_coerce
|
1118
|
+
----------------------
|
1119
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1120
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.563673"], ["updated_at", "2016-12-07 20:08:44.563673"]]
|
1121
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1122
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1123
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.565065"], ["updated_at", "2016-12-07 20:08:44.565065"]]
|
1124
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1125
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1126
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1127
|
+
-----------------
|
1128
|
+
MoneyTest: test_<
|
1129
|
+
-----------------
|
1130
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1131
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.567641"], ["updated_at", "2016-12-07 20:08:44.567641"]]
|
1132
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1133
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1134
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.569441"], ["updated_at", "2016-12-07 20:08:44.569441"]]
|
1135
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1136
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1137
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1138
|
+
---------------------------------
|
1139
|
+
MoneyTest: test_abs_and_magnitude
|
1140
|
+
---------------------------------
|
1141
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1142
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.572033"], ["updated_at", "2016-12-07 20:08:44.572033"]]
|
1143
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1144
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1145
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.573506"], ["updated_at", "2016-12-07 20:08:44.573506"]]
|
1146
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1147
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1148
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1149
|
+
-------------------------
|
1150
|
+
MoneyTest: test_/_and_div
|
1151
|
+
-------------------------
|
1152
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1153
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.575887"], ["updated_at", "2016-12-07 20:08:44.575887"]]
|
1154
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1156
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.577280"], ["updated_at", "2016-12-07 20:08:44.577280"]]
|
1157
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1158
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1159
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1160
|
+
--------------------
|
1161
|
+
MoneyTest: test_to_s
|
1162
|
+
--------------------
|
1163
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1164
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.580328"], ["updated_at", "2016-12-07 20:08:44.580328"]]
|
1165
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1166
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1167
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.581958"], ["updated_at", "2016-12-07 20:08:44.581958"]]
|
1168
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1169
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1170
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1171
|
+
---------------------
|
1172
|
+
MoneyTest: test_zero?
|
1173
|
+
---------------------
|
1174
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1175
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.588589"], ["updated_at", "2016-12-07 20:08:44.588589"]]
|
1176
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1177
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1178
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.590395"], ["updated_at", "2016-12-07 20:08:44.590395"]]
|
1179
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1180
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1181
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1182
|
+
---------------------------
|
1183
|
+
MoneyTest: test_exchange_to
|
1184
|
+
---------------------------
|
1185
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1186
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.592867"], ["updated_at", "2016-12-07 20:08:44.592867"]]
|
1187
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1188
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1189
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.594203"], ["updated_at", "2016-12-07 20:08:44.594203"]]
|
1190
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1191
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1192
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1193
|
+
----------------------
|
1194
|
+
MoneyTest: test_divmod
|
1195
|
+
----------------------
|
1196
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1197
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.596588"], ["updated_at", "2016-12-07 20:08:44.596588"]]
|
1198
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1199
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1200
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.598037"], ["updated_at", "2016-12-07 20:08:44.598037"]]
|
1201
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1202
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1203
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1204
|
+
-------------------------
|
1205
|
+
MoneyTest: test_positive?
|
1206
|
+
-------------------------
|
1207
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1208
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.600684"], ["updated_at", "2016-12-07 20:08:44.600684"]]
|
1209
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1210
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1211
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.602598"], ["updated_at", "2016-12-07 20:08:44.602598"]]
|
1212
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1213
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1214
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1215
|
+
-----------------------------------
|
1216
|
+
MoneyTest: test_to_json_and_as_json
|
1217
|
+
-----------------------------------
|
1218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1219
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.605204"], ["updated_at", "2016-12-07 20:08:44.605204"]]
|
1220
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1221
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1222
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.606828"], ["updated_at", "2016-12-07 20:08:44.606828"]]
|
1223
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1224
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1225
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1226
|
+
-------------------------
|
1227
|
+
MoneyTest: test_negative?
|
1228
|
+
-------------------------
|
1229
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1230
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.609551"], ["updated_at", "2016-12-07 20:08:44.609551"]]
|
1231
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1232
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1233
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.611531"], ["updated_at", "2016-12-07 20:08:44.611531"]]
|
1234
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1235
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1236
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1237
|
+
-------------------
|
1238
|
+
MoneyTest: test_<=>
|
1239
|
+
-------------------
|
1240
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1241
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.615074"], ["updated_at", "2016-12-07 20:08:44.615074"]]
|
1242
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1243
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1244
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.616730"], ["updated_at", "2016-12-07 20:08:44.616730"]]
|
1245
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1246
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1247
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1248
|
+
----------------------------
|
1249
|
+
MoneyTest: test_%_and_modulo
|
1250
|
+
----------------------------
|
1251
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1252
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:08:44.619217"], ["updated_at", "2016-12-07 20:08:44.619217"]]
|
1253
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1255
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:08:44.620566"], ["updated_at", "2016-12-07 20:08:44.620566"]]
|
1256
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1257
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1258
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1259
|
+
---------------------------
|
1260
|
+
GeneratorTest: test_install
|
1261
|
+
---------------------------
|
1262
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1263
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1264
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1265
|
+
------------------------
|
1266
|
+
RecordTest: test_helpers
|
1267
|
+
------------------------
|
1268
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1269
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.661086"], ["updated_at", "2016-12-07 20:26:48.661086"]]
|
1270
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1271
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1272
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.665995"], ["updated_at", "2016-12-07 20:26:48.665995"]]
|
1273
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1274
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1275
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1276
|
+
---------------------------
|
1277
|
+
RecordTest: test_persistent
|
1278
|
+
---------------------------
|
1279
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1280
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.672962"], ["updated_at", "2016-12-07 20:26:48.672962"]]
|
1281
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1282
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1283
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.674645"], ["updated_at", "2016-12-07 20:26:48.674645"]]
|
1284
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1285
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1286
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-07 20:26:48.681486"], ["updated_at", "2016-12-07 20:26:48.681486"]]
|
1287
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1288
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1289
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1290
|
+
---------------------------
|
1291
|
+
RecordTest: test_validators
|
1292
|
+
---------------------------
|
1293
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1294
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.685529"], ["updated_at", "2016-12-07 20:26:48.685529"]]
|
1295
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1296
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1297
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.687197"], ["updated_at", "2016-12-07 20:26:48.687197"]]
|
1298
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1299
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1300
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1301
|
+
---------------------------------
|
1302
|
+
RecordTest: test_default_currency
|
1303
|
+
---------------------------------
|
1304
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1305
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.696651"], ["updated_at", "2016-12-07 20:26:48.696651"]]
|
1306
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1307
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1308
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.698328"], ["updated_at", "2016-12-07 20:26:48.698328"]]
|
1309
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1310
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1311
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1312
|
+
-------------------------
|
1313
|
+
MoneyTest: test_remainder
|
1314
|
+
-------------------------
|
1315
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1316
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.701147"], ["updated_at", "2016-12-07 20:26:48.701147"]]
|
1317
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1318
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1319
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.702604"], ["updated_at", "2016-12-07 20:26:48.702604"]]
|
1320
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1321
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1322
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1323
|
+
-----------------
|
1324
|
+
MoneyTest: test_<
|
1325
|
+
-----------------
|
1326
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1327
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.704893"], ["updated_at", "2016-12-07 20:26:48.704893"]]
|
1328
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1329
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1330
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.706304"], ["updated_at", "2016-12-07 20:26:48.706304"]]
|
1331
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1332
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1333
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1334
|
+
------------------------
|
1335
|
+
MoneyTest: test_nonzero?
|
1336
|
+
------------------------
|
1337
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1338
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.708828"], ["updated_at", "2016-12-07 20:26:48.708828"]]
|
1339
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1340
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1341
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.710395"], ["updated_at", "2016-12-07 20:26:48.710395"]]
|
1342
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1343
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1344
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1345
|
+
------------------
|
1346
|
+
MoneyTest: test_-@
|
1347
|
+
------------------
|
1348
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1349
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.712575"], ["updated_at", "2016-12-07 20:26:48.712575"]]
|
1350
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1351
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1352
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.713981"], ["updated_at", "2016-12-07 20:26:48.713981"]]
|
1353
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1354
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1355
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1356
|
+
----------------------
|
1357
|
+
MoneyTest: test_divmod
|
1358
|
+
----------------------
|
1359
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1360
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.716108"], ["updated_at", "2016-12-07 20:26:48.716108"]]
|
1361
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1362
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1363
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.717449"], ["updated_at", "2016-12-07 20:26:48.717449"]]
|
1364
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1365
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1366
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1367
|
+
-------------------
|
1368
|
+
MoneyTest: test_<=>
|
1369
|
+
-------------------
|
1370
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1371
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.719563"], ["updated_at", "2016-12-07 20:26:48.719563"]]
|
1372
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1373
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1374
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.720901"], ["updated_at", "2016-12-07 20:26:48.720901"]]
|
1375
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1376
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1377
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1378
|
+
--------------------
|
1379
|
+
MoneyTest: test_to_s
|
1380
|
+
--------------------
|
1381
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1382
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.722952"], ["updated_at", "2016-12-07 20:26:48.722952"]]
|
1383
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1384
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1385
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.724291"], ["updated_at", "2016-12-07 20:26:48.724291"]]
|
1386
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1387
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1388
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1389
|
+
-----------------------------------
|
1390
|
+
MoneyTest: test_to_json_and_as_json
|
1391
|
+
-----------------------------------
|
1392
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1393
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.726571"], ["updated_at", "2016-12-07 20:26:48.726571"]]
|
1394
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1395
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1396
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.727954"], ["updated_at", "2016-12-07 20:26:48.727954"]]
|
1397
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1398
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1399
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1400
|
+
----------------------
|
1401
|
+
MoneyTest: test_coerce
|
1402
|
+
----------------------
|
1403
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1404
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.734877"], ["updated_at", "2016-12-07 20:26:48.734877"]]
|
1405
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1406
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1407
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.736435"], ["updated_at", "2016-12-07 20:26:48.736435"]]
|
1408
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1409
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1410
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1411
|
+
-------------------------
|
1412
|
+
MoneyTest: test_/_and_div
|
1413
|
+
-------------------------
|
1414
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1415
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.738649"], ["updated_at", "2016-12-07 20:26:48.738649"]]
|
1416
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1417
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1418
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.740157"], ["updated_at", "2016-12-07 20:26:48.740157"]]
|
1419
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1420
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1421
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1422
|
+
-------------------------
|
1423
|
+
MoneyTest: test_negative?
|
1424
|
+
-------------------------
|
1425
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1426
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.742653"], ["updated_at", "2016-12-07 20:26:48.742653"]]
|
1427
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1428
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1429
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.744128"], ["updated_at", "2016-12-07 20:26:48.744128"]]
|
1430
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1431
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1432
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1433
|
+
-----------------
|
1434
|
+
MoneyTest: test_+
|
1435
|
+
-----------------
|
1436
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1437
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.746400"], ["updated_at", "2016-12-07 20:26:48.746400"]]
|
1438
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1439
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1440
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.747762"], ["updated_at", "2016-12-07 20:26:48.747762"]]
|
1441
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1442
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1443
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1444
|
+
-------------------------
|
1445
|
+
MoneyTest: test_positive?
|
1446
|
+
-------------------------
|
1447
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1448
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.749943"], ["updated_at", "2016-12-07 20:26:48.749943"]]
|
1449
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1450
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1451
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.751189"], ["updated_at", "2016-12-07 20:26:48.751189"]]
|
1452
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1453
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1454
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1455
|
+
-----------------
|
1456
|
+
MoneyTest: test_*
|
1457
|
+
-----------------
|
1458
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1459
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.754691"], ["updated_at", "2016-12-07 20:26:48.754691"]]
|
1460
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1462
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.756299"], ["updated_at", "2016-12-07 20:26:48.756299"]]
|
1463
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1464
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1465
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1466
|
+
-------------------
|
1467
|
+
MoneyTest: test_===
|
1468
|
+
-------------------
|
1469
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1470
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.758761"], ["updated_at", "2016-12-07 20:26:48.758761"]]
|
1471
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1472
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1473
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.760266"], ["updated_at", "2016-12-07 20:26:48.760266"]]
|
1474
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1475
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1476
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1477
|
+
-----------------
|
1478
|
+
MoneyTest: test_-
|
1479
|
+
-----------------
|
1480
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1481
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.762509"], ["updated_at", "2016-12-07 20:26:48.762509"]]
|
1482
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1483
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1484
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.763859"], ["updated_at", "2016-12-07 20:26:48.763859"]]
|
1485
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1486
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1487
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1488
|
+
---------------------------------
|
1489
|
+
MoneyTest: test_abs_and_magnitude
|
1490
|
+
---------------------------------
|
1491
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1492
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.766033"], ["updated_at", "2016-12-07 20:26:48.766033"]]
|
1493
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1494
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1495
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.767477"], ["updated_at", "2016-12-07 20:26:48.767477"]]
|
1496
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1497
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1498
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1499
|
+
---------------------
|
1500
|
+
MoneyTest: test_zero?
|
1501
|
+
---------------------
|
1502
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1503
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.769852"], ["updated_at", "2016-12-07 20:26:48.769852"]]
|
1504
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1505
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1506
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.771346"], ["updated_at", "2016-12-07 20:26:48.771346"]]
|
1507
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1508
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1509
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1510
|
+
---------------------------
|
1511
|
+
MoneyTest: test_exchange_to
|
1512
|
+
---------------------------
|
1513
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1514
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.773414"], ["updated_at", "2016-12-07 20:26:48.773414"]]
|
1515
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1516
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1517
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.774779"], ["updated_at", "2016-12-07 20:26:48.774779"]]
|
1518
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1519
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1520
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1521
|
+
----------------------------
|
1522
|
+
MoneyTest: test_%_and_modulo
|
1523
|
+
----------------------------
|
1524
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1525
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:26:48.777367"], ["updated_at", "2016-12-07 20:26:48.777367"]]
|
1526
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1527
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1528
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:26:48.778672"], ["updated_at", "2016-12-07 20:26:48.778672"]]
|
1529
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1530
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1531
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1532
|
+
---------------------------
|
1533
|
+
TaskTest: test_update_rates
|
1534
|
+
---------------------------
|
1535
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1536
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-07 20:26:48.806257"], ["updated_at", "2016-12-07 20:26:48.806257"]]
|
1537
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1538
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1539
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-07 20:26:48.808103"], ["updated_at", "2016-12-07 20:26:48.808103"]]
|
1540
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1541
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "exchanges"
|
1542
|
+
[1m[36mEconomy::Exchange Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
1543
|
+
[1m[35mEconomy::Exchange Exists (0.2ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
1544
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1545
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1546
|
+
----------------------
|
1547
|
+
RateTest: test_retries
|
1548
|
+
----------------------
|
1549
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1550
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1551
|
+
--------------------
|
1552
|
+
RateTest: test_yahoo
|
1553
|
+
--------------------
|
1554
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1555
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1556
|
+
---------------------------
|
1557
|
+
GeneratorTest: test_install
|
1558
|
+
---------------------------
|
1559
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1560
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1561
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1562
|
+
---------------------------
|
1563
|
+
TaskTest: test_update_rates
|
1564
|
+
---------------------------
|
1565
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1566
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-07 20:27:32.956981"], ["updated_at", "2016-12-07 20:27:32.956981"]]
|
1567
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1568
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1569
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-07 20:27:32.961506"], ["updated_at", "2016-12-07 20:27:32.961506"]]
|
1570
|
+
[1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1571
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
1572
|
+
[1m[35mEconomy::Exchange Exists (0.3ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
1573
|
+
[1m[36mEconomy::Exchange Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
1574
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1575
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1576
|
+
----------------------
|
1577
|
+
RateTest: test_retries
|
1578
|
+
----------------------
|
1579
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1580
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1581
|
+
--------------------
|
1582
|
+
RateTest: test_yahoo
|
1583
|
+
--------------------
|
1584
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1585
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1586
|
+
------------------------
|
1587
|
+
RecordTest: test_helpers
|
1588
|
+
------------------------
|
1589
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1590
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:32.988423"], ["updated_at", "2016-12-07 20:27:32.988423"]]
|
1591
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1593
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:32.990181"], ["updated_at", "2016-12-07 20:27:32.990181"]]
|
1594
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1595
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1596
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1597
|
+
---------------------------
|
1598
|
+
RecordTest: test_validators
|
1599
|
+
---------------------------
|
1600
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1601
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:32.997007"], ["updated_at", "2016-12-07 20:27:32.997007"]]
|
1602
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1603
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1604
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:32.998694"], ["updated_at", "2016-12-07 20:27:32.998694"]]
|
1605
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1606
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1607
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1608
|
+
---------------------------------
|
1609
|
+
RecordTest: test_default_currency
|
1610
|
+
---------------------------------
|
1611
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1612
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.006751"], ["updated_at", "2016-12-07 20:27:33.006751"]]
|
1613
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1614
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1615
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.008413"], ["updated_at", "2016-12-07 20:27:33.008413"]]
|
1616
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1617
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1618
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1619
|
+
---------------------------
|
1620
|
+
RecordTest: test_persistent
|
1621
|
+
---------------------------
|
1622
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1623
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.011216"], ["updated_at", "2016-12-07 20:27:33.011216"]]
|
1624
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1625
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1626
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.013046"], ["updated_at", "2016-12-07 20:27:33.013046"]]
|
1627
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1628
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1629
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-07 20:27:33.019073"], ["updated_at", "2016-12-07 20:27:33.019073"]]
|
1630
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1631
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1632
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3 [["monthly_price", "100.0"], ["updated_at", "2016-12-07 20:27:33.021334"], ["id", 6]]
|
1633
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1634
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1635
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("price", "price_currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["price", "15.0"], ["price_currency", "UYU"], ["created_at", "2016-12-07 20:27:33.023668"], ["updated_at", "2016-12-07 20:27:33.023668"]]
|
1636
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1637
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1638
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "products" SET "price" = $1, "price_currency" = $2, "updated_at" = $3 WHERE "products"."id" = $4 [["price", "5.0"], ["price_currency", "USD"], ["updated_at", "2016-12-07 20:27:33.025388"], ["id", 3]]
|
1639
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1640
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1641
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1642
|
+
-----------------
|
1643
|
+
MoneyTest: test_-
|
1644
|
+
-----------------
|
1645
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1646
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.028603"], ["updated_at", "2016-12-07 20:27:33.028603"]]
|
1647
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1648
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1649
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.030244"], ["updated_at", "2016-12-07 20:27:33.030244"]]
|
1650
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1651
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1652
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1653
|
+
--------------------
|
1654
|
+
MoneyTest: test_to_s
|
1655
|
+
--------------------
|
1656
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1657
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.033090"], ["updated_at", "2016-12-07 20:27:33.033090"]]
|
1658
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1659
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1660
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.034517"], ["updated_at", "2016-12-07 20:27:33.034517"]]
|
1661
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1662
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1663
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1664
|
+
------------------------
|
1665
|
+
MoneyTest: test_nonzero?
|
1666
|
+
------------------------
|
1667
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1668
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.040630"], ["updated_at", "2016-12-07 20:27:33.040630"]]
|
1669
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1670
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1671
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.042059"], ["updated_at", "2016-12-07 20:27:33.042059"]]
|
1672
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1673
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1674
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1675
|
+
-------------------
|
1676
|
+
MoneyTest: test_===
|
1677
|
+
-------------------
|
1678
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1679
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.044446"], ["updated_at", "2016-12-07 20:27:33.044446"]]
|
1680
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1681
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1682
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.045897"], ["updated_at", "2016-12-07 20:27:33.045897"]]
|
1683
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1684
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1685
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1686
|
+
---------------------------------
|
1687
|
+
MoneyTest: test_abs_and_magnitude
|
1688
|
+
---------------------------------
|
1689
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1690
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.048431"], ["updated_at", "2016-12-07 20:27:33.048431"]]
|
1691
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1692
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1693
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.050357"], ["updated_at", "2016-12-07 20:27:33.050357"]]
|
1694
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1695
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1696
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1697
|
+
----------------------------
|
1698
|
+
MoneyTest: test_%_and_modulo
|
1699
|
+
----------------------------
|
1700
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1701
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.053087"], ["updated_at", "2016-12-07 20:27:33.053087"]]
|
1702
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1703
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1704
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.054745"], ["updated_at", "2016-12-07 20:27:33.054745"]]
|
1705
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1706
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1707
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1708
|
+
----------------------
|
1709
|
+
MoneyTest: test_coerce
|
1710
|
+
----------------------
|
1711
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1712
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.057816"], ["updated_at", "2016-12-07 20:27:33.057816"]]
|
1713
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1714
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1715
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.059183"], ["updated_at", "2016-12-07 20:27:33.059183"]]
|
1716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1717
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1718
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1719
|
+
-------------------------
|
1720
|
+
MoneyTest: test_negative?
|
1721
|
+
-------------------------
|
1722
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1723
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.061798"], ["updated_at", "2016-12-07 20:27:33.061798"]]
|
1724
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1725
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1726
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.063508"], ["updated_at", "2016-12-07 20:27:33.063508"]]
|
1727
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1728
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1729
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1730
|
+
----------------------
|
1731
|
+
MoneyTest: test_divmod
|
1732
|
+
----------------------
|
1733
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1734
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.065600"], ["updated_at", "2016-12-07 20:27:33.065600"]]
|
1735
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1736
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1737
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.066918"], ["updated_at", "2016-12-07 20:27:33.066918"]]
|
1738
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1739
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1740
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1741
|
+
-------------------
|
1742
|
+
MoneyTest: test_<=>
|
1743
|
+
-------------------
|
1744
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1745
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.069056"], ["updated_at", "2016-12-07 20:27:33.069056"]]
|
1746
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1747
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1748
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.070344"], ["updated_at", "2016-12-07 20:27:33.070344"]]
|
1749
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1750
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1751
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1752
|
+
-----------------
|
1753
|
+
MoneyTest: test_*
|
1754
|
+
-----------------
|
1755
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1756
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.072447"], ["updated_at", "2016-12-07 20:27:33.072447"]]
|
1757
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1758
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1759
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.073746"], ["updated_at", "2016-12-07 20:27:33.073746"]]
|
1760
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1761
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1762
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1763
|
+
------------------
|
1764
|
+
MoneyTest: test_-@
|
1765
|
+
------------------
|
1766
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1767
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.075885"], ["updated_at", "2016-12-07 20:27:33.075885"]]
|
1768
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1769
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1770
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.077215"], ["updated_at", "2016-12-07 20:27:33.077215"]]
|
1771
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1772
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1773
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1774
|
+
-------------------------
|
1775
|
+
MoneyTest: test_/_and_div
|
1776
|
+
-------------------------
|
1777
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1778
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.079496"], ["updated_at", "2016-12-07 20:27:33.079496"]]
|
1779
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1780
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1781
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.080796"], ["updated_at", "2016-12-07 20:27:33.080796"]]
|
1782
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1783
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1784
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1785
|
+
-------------------------
|
1786
|
+
MoneyTest: test_positive?
|
1787
|
+
-------------------------
|
1788
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1789
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.083082"], ["updated_at", "2016-12-07 20:27:33.083082"]]
|
1790
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1791
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1792
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.084335"], ["updated_at", "2016-12-07 20:27:33.084335"]]
|
1793
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1794
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1795
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1796
|
+
---------------------------
|
1797
|
+
MoneyTest: test_exchange_to
|
1798
|
+
---------------------------
|
1799
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1800
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.086362"], ["updated_at", "2016-12-07 20:27:33.086362"]]
|
1801
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1802
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1803
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.087724"], ["updated_at", "2016-12-07 20:27:33.087724"]]
|
1804
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1805
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1806
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1807
|
+
-----------------
|
1808
|
+
MoneyTest: test_+
|
1809
|
+
-----------------
|
1810
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1811
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.089819"], ["updated_at", "2016-12-07 20:27:33.089819"]]
|
1812
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1813
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1814
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.091041"], ["updated_at", "2016-12-07 20:27:33.091041"]]
|
1815
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1816
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1817
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1818
|
+
-----------------
|
1819
|
+
MoneyTest: test_<
|
1820
|
+
-----------------
|
1821
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1822
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.093081"], ["updated_at", "2016-12-07 20:27:33.093081"]]
|
1823
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1824
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1825
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.094329"], ["updated_at", "2016-12-07 20:27:33.094329"]]
|
1826
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1827
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1828
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1829
|
+
---------------------
|
1830
|
+
MoneyTest: test_zero?
|
1831
|
+
---------------------
|
1832
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1833
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.096773"], ["updated_at", "2016-12-07 20:27:33.096773"]]
|
1834
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1835
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1836
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.098101"], ["updated_at", "2016-12-07 20:27:33.098101"]]
|
1837
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1838
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1839
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1840
|
+
-------------------------
|
1841
|
+
MoneyTest: test_remainder
|
1842
|
+
-------------------------
|
1843
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1844
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.100488"], ["updated_at", "2016-12-07 20:27:33.100488"]]
|
1845
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1846
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1847
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.102015"], ["updated_at", "2016-12-07 20:27:33.102015"]]
|
1848
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1849
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1850
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1851
|
+
-----------------------------------
|
1852
|
+
MoneyTest: test_to_json_and_as_json
|
1853
|
+
-----------------------------------
|
1854
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1855
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-07 20:27:33.104476"], ["updated_at", "2016-12-07 20:27:33.104476"]]
|
1856
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1857
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1858
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-07 20:27:33.105764"], ["updated_at", "2016-12-07 20:27:33.105764"]]
|
1859
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1860
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1861
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1862
|
+
---------------------------
|
1863
|
+
GeneratorTest: test_install
|
1864
|
+
---------------------------
|
1865
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|