test/dummy/log/test.log in economy-4.0.2.1 vs test/dummy/log/test.log in economy-4.0.2.2

- old
+ new

@@ -4678,5 +4678,311 @@  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (4.8ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) BEGIN +--------------------------- +GeneratorTest: test_install +--------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------- +RateTest: test_retries +---------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------- +RateTest: test_yahoo +-------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------ +RecordTest: test_helpers +------------------------ +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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-14 06:35:25.733183"], ["updated_at", "2016-12-14 06:35:25.733183"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.739381"], ["updated_at", "2016-12-14 06:35:25.739381"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------- +RecordTest: test_validators +--------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.746903"], ["updated_at", "2016-12-14 06:35:25.746903"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.748775"], ["updated_at", "2016-12-14 06:35:25.748775"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------- +RecordTest: test_default_currency +--------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.756996"], ["updated_at", "2016-12-14 06:35:25.756996"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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-14 06:35:25.758677"], ["updated_at", "2016-12-14 06:35:25.758677"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------- +RecordTest: test_persistent +--------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.760958"], ["updated_at", "2016-12-14 06:35:25.760958"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.762752"], ["updated_at", "2016-12-14 06:35:25.762752"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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-14 06:35:25.770044"], ["updated_at", "2016-12-14 06:35:25.770044"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3 [["monthly_price", "100.0"], ["updated_at", "2016-12-14 06:35:25.772081"], ["id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-14 06:35:25.781623"], ["updated_at", "2016-12-14 06:35:25.781623"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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-14 06:35:25.783980"], ["id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------- +TaskTest: test_update_rates +--------------------------- +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.812599"], ["updated_at", "2016-12-14 06:35:25.812599"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.814061"], ["updated_at", "2016-12-14 06:35:25.814061"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "exchanges" + Economy::Exchange Exists (0.3ms) 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]] + Economy::Exchange Exists (0.2ms) 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]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------- +MoneyTest: test_remainder +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.827131"], ["updated_at", "2016-12-14 06:35:25.827131"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.828526"], ["updated_at", "2016-12-14 06:35:25.828526"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------- +MoneyTest: test_divmod +---------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.830899"], ["updated_at", "2016-12-14 06:35:25.830899"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.832328"], ["updated_at", "2016-12-14 06:35:25.832328"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------- +MoneyTest: test_* +----------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.834896"], ["updated_at", "2016-12-14 06:35:25.834896"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.836263"], ["updated_at", "2016-12-14 06:35:25.836263"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------- +MoneyTest: test_=== +------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.838518"], ["updated_at", "2016-12-14 06:35:25.838518"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.839829"], ["updated_at", "2016-12-14 06:35:25.839829"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------ +MoneyTest: test_nonzero? +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.841951"], ["updated_at", "2016-12-14 06:35:25.841951"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.843114"], ["updated_at", "2016-12-14 06:35:25.843114"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------- +MoneyTest: test_< +----------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.844960"], ["updated_at", "2016-12-14 06:35:25.844960"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.846042"], ["updated_at", "2016-12-14 06:35:25.846042"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------- +MoneyTest: test_- +----------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.849242"], ["updated_at", "2016-12-14 06:35:25.849242"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.850620"], ["updated_at", "2016-12-14 06:35:25.850620"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------- +MoneyTest: test_exchange_to +--------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.852680"], ["updated_at", "2016-12-14 06:35:25.852680"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.854105"], ["updated_at", "2016-12-14 06:35:25.854105"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------- +MoneyTest: test_%_and_modulo +---------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.856242"], ["updated_at", "2016-12-14 06:35:25.856242"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.857444"], ["updated_at", "2016-12-14 06:35:25.857444"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------- +MoneyTest: test_<=> +------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.859783"], ["updated_at", "2016-12-14 06:35:25.859783"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.861447"], ["updated_at", "2016-12-14 06:35:25.861447"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------- +MoneyTest: test_to_s +-------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.863851"], ["updated_at", "2016-12-14 06:35:25.863851"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.865139"], ["updated_at", "2016-12-14 06:35:25.865139"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------ +MoneyTest: test_-@ +------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.873808"], ["updated_at", "2016-12-14 06:35:25.873808"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.875386"], ["updated_at", "2016-12-14 06:35:25.875386"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------- +MoneyTest: test_positive? +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.877485"], ["updated_at", "2016-12-14 06:35:25.877485"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.878784"], ["updated_at", "2016-12-14 06:35:25.878784"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------- +MoneyTest: test_zero? +--------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.880632"], ["updated_at", "2016-12-14 06:35:25.880632"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.881942"], ["updated_at", "2016-12-14 06:35:25.881942"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------- +MoneyTest: test_abs_and_magnitude +--------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.883735"], ["updated_at", "2016-12-14 06:35:25.883735"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.885049"], ["updated_at", "2016-12-14 06:35:25.885049"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------- +MoneyTest: test_to_json_and_as_json +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.887180"], ["updated_at", "2016-12-14 06:35:25.887180"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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-14 06:35:25.889688"], ["updated_at", "2016-12-14 06:35:25.889688"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------- +MoneyTest: test_/_and_div +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.892992"], ["updated_at", "2016-12-14 06:35:25.892992"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.894454"], ["updated_at", "2016-12-14 06:35:25.894454"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------- +MoneyTest: test_coerce +---------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.896683"], ["updated_at", "2016-12-14 06:35:25.896683"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.898087"], ["updated_at", "2016-12-14 06:35:25.898087"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------- +MoneyTest: test_+ +----------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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-14 06:35:25.900530"], ["updated_at", "2016-12-14 06:35:25.900530"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.901956"], ["updated_at", "2016-12-14 06:35:25.901956"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------- +MoneyTest: test_negative? +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.904369"], ["updated_at", "2016-12-14 06:35:25.904369"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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-14 06:35:25.905753"], ["updated_at", "2016-12-14 06:35:25.905753"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK