economy 4.0.1.0 → 4.0.2.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 +2 -1
- data/lib/economy.rb +4 -0
- data/lib/economy/cache.rb +14 -7
- data/lib/economy/configuration.rb +1 -1
- data/lib/economy/currencies.rb +1 -5
- data/lib/economy/exchange.rb +1 -1
- data/lib/economy/money.rb +1 -1
- data/lib/economy/railtie.rb +7 -7
- data/lib/economy/version.rb +1 -1
- data/lib/generators/economy/install/install_generator.rb +4 -0
- data/lib/generators/economy/install/templates/configuration.yml +15 -0
- data/lib/generators/economy/install/templates/migration.rb +3 -3
- data/test/dummy/config/application.rb +0 -1
- data/test/dummy/config/database.yml +5 -2
- data/test/dummy/config/initializers/economy.rb +0 -1
- data/test/dummy/config/redis.yml +9 -0
- data/test/dummy/log/test.log +2149 -0
- data/test/generator_test.rb +1 -0
- data/test/rate_test.rb +1 -1
- data/test/support/{rates_helper.rb → rate_helper.rb} +1 -1
- data/test/task_test.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f15a5aaebbfe88bf00a6f4f2d0a8e456a58b3dc4
|
4
|
+
data.tar.gz: 0eb2d963328b5d7439e5f70505a770560a8abdaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8854f4113cd44b034adf14e868f8147d686b12f86eb8b4f0043e10786aeb386771cfb8f412e0603cce126d726f6e59ecf3081c72e9167f8357cd765d29b7ae47
|
7
|
+
data.tar.gz: e239bbce8737fbe3755dab992253005894fd373a16d96e872374a8efa1a19e395555f72a37a902ad9d66a5cce2b0b092c8e48d9043545ca7207ac22d93748c9f
|
data/README.md
CHANGED
@@ -45,7 +45,6 @@ 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')
|
49
48
|
config.rates = :yahoo
|
50
49
|
config.default_currency = 'USD'
|
51
50
|
|
@@ -65,6 +64,8 @@ Economy.configure do |config|
|
|
65
64
|
end
|
66
65
|
```
|
67
66
|
|
67
|
+
NOTE: You may want to personalize the generated config/redis.yml.
|
68
|
+
|
68
69
|
## Usage
|
69
70
|
|
70
71
|
### Definitions
|
data/lib/economy.rb
CHANGED
data/lib/economy/cache.rb
CHANGED
@@ -1,22 +1,29 @@
|
|
1
1
|
module Economy
|
2
2
|
class Cache
|
3
3
|
|
4
|
-
def
|
5
|
-
|
4
|
+
def fetch(from, to)
|
5
|
+
get "exchanges/#{from.iso_code.downcase}/#{to.iso_code.downcase}"
|
6
6
|
end
|
7
7
|
|
8
|
-
def
|
9
|
-
|
8
|
+
def update(exchange)
|
9
|
+
set "exchanges/#{exchange.from.downcase}/#{exchange.to.downcase}", exchange.rate.to_s
|
10
10
|
end
|
11
11
|
|
12
12
|
def clear
|
13
|
-
|
13
|
+
del 'exchanges/*'
|
14
|
+
end
|
15
|
+
|
16
|
+
def method_missing(name, *args, &block)
|
17
|
+
client.public_send name, *args, &block
|
14
18
|
end
|
15
19
|
|
16
20
|
private
|
17
21
|
|
18
|
-
def
|
19
|
-
|
22
|
+
def client
|
23
|
+
@client ||= begin
|
24
|
+
require 'redis'
|
25
|
+
Redis.new YAML.load_file("#{Rails.root}/config/redis.yml")[Rails.env]
|
26
|
+
end
|
20
27
|
end
|
21
28
|
|
22
29
|
end
|
data/lib/economy/currencies.rb
CHANGED
data/lib/economy/exchange.rb
CHANGED
data/lib/economy/money.rb
CHANGED
@@ -133,7 +133,7 @@ module Economy
|
|
133
133
|
def exchange_to(new_currency)
|
134
134
|
new_currency = normalize_currency(new_currency)
|
135
135
|
if currency != new_currency
|
136
|
-
if rate = Economy.
|
136
|
+
if rate = Economy.rate(currency, new_currency)
|
137
137
|
Money.new (amount * BigDecimal(rate)), new_currency
|
138
138
|
else
|
139
139
|
raise "Exchange #{currency} => #{new_currency} not found"
|
data/lib/economy/railtie.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
module Economy
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
|
4
|
-
initializer 'economy.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
initializer 'economy.active_record' do
|
5
|
+
ActiveSupport.on_load :active_record do
|
6
|
+
require 'economy/exchange'
|
7
|
+
::ActiveRecord::Base.include(
|
8
|
+
Economy::Extensions::ActiveRecord::Base
|
9
|
+
)
|
10
|
+
end
|
11
11
|
end
|
12
12
|
|
13
13
|
rake_tasks do
|
data/lib/economy/version.rb
CHANGED
@@ -11,6 +11,10 @@ module Economy
|
|
11
11
|
copy_file 'initializer.rb', 'config/initializers/economy.rb'
|
12
12
|
end
|
13
13
|
|
14
|
+
def create_configuration_file
|
15
|
+
copy_file 'configuration.yml', 'config/redis.yml'
|
16
|
+
end
|
17
|
+
|
14
18
|
def create_migration_file
|
15
19
|
migration_template 'migration.rb', 'db/migrate/create_exchanges.rb'
|
16
20
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class CreateExchanges < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :exchanges do |t|
|
4
|
-
t.string :service
|
5
|
-
t.string :from
|
6
|
-
t.string :to
|
4
|
+
t.string :service
|
5
|
+
t.string :from
|
6
|
+
t.string :to
|
7
7
|
t.decimal :rate, precision: 24, scale: 12
|
8
8
|
|
9
9
|
t.timestamps null: false
|
data/test/dummy/log/test.log
CHANGED
@@ -1863,3 +1863,2152 @@ MoneyTest: test_to_json_and_as_json
|
|
1863
1863
|
GeneratorTest: test_install
|
1864
1864
|
---------------------------
|
1865
1865
|
[1m[35m (0.2ms)[0m ROLLBACK
|
1866
|
+
[1m[36mActiveRecord::SchemaMigration Load (27.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1867
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1868
|
+
---------------------------
|
1869
|
+
GeneratorTest: test_install
|
1870
|
+
---------------------------
|
1871
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1872
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1873
|
+
----------------------
|
1874
|
+
RateTest: test_retries
|
1875
|
+
----------------------
|
1876
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1877
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1878
|
+
--------------------
|
1879
|
+
RateTest: test_yahoo
|
1880
|
+
--------------------
|
1881
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1882
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1883
|
+
---------------------------
|
1884
|
+
TaskTest: test_update_rates
|
1885
|
+
---------------------------
|
1886
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1887
|
+
[1m[35mSQL (24.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-11 05:26:28.998004"], ["updated_at", "2016-12-11 05:26:28.998004"]]
|
1888
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1889
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1890
|
+
[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-11 05:26:29.034314"], ["updated_at", "2016-12-11 05:26:29.034314"]]
|
1891
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1892
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
1893
|
+
[1m[35mEconomy::Exchange Exists (11.6ms)[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]]
|
1894
|
+
[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]]
|
1895
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1896
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1897
|
+
---------------------------
|
1898
|
+
RecordTest: test_persistent
|
1899
|
+
---------------------------
|
1900
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1901
|
+
[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-11 05:26:29.078994"], ["updated_at", "2016-12-11 05:26:29.078994"]]
|
1902
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1903
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1904
|
+
[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-11 05:26:29.081026"], ["updated_at", "2016-12-11 05:26:29.081026"]]
|
1905
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1906
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1907
|
+
[1m[36mSQL (19.4ms)[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-11 05:26:29.090190"], ["updated_at", "2016-12-11 05:26:29.090190"]]
|
1908
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1909
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1910
|
+
[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-11 05:26:29.111565"], ["id", 7]]
|
1911
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1912
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1913
|
+
[1m[36mSQL (20.1ms)[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-11 05:26:29.118237"], ["updated_at", "2016-12-11 05:26:29.118237"]]
|
1914
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1915
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1916
|
+
[1m[35mSQL (0.3ms)[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-11 05:26:29.140062"], ["id", 4]]
|
1917
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1918
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1919
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1920
|
+
---------------------------------
|
1921
|
+
RecordTest: test_default_currency
|
1922
|
+
---------------------------------
|
1923
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1924
|
+
[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-11 05:26:29.142764"], ["updated_at", "2016-12-11 05:26:29.142764"]]
|
1925
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1926
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1927
|
+
[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-11 05:26:29.144273"], ["updated_at", "2016-12-11 05:26:29.144273"]]
|
1928
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1929
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1930
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1931
|
+
------------------------
|
1932
|
+
RecordTest: test_helpers
|
1933
|
+
------------------------
|
1934
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1935
|
+
[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-11 05:26:29.146660"], ["updated_at", "2016-12-11 05:26:29.146660"]]
|
1936
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1937
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1938
|
+
[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-11 05:26:29.148035"], ["updated_at", "2016-12-11 05:26:29.148035"]]
|
1939
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1940
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1941
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1942
|
+
---------------------------
|
1943
|
+
RecordTest: test_validators
|
1944
|
+
---------------------------
|
1945
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1946
|
+
[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-11 05:26:29.150406"], ["updated_at", "2016-12-11 05:26:29.150406"]]
|
1947
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1948
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1949
|
+
[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-11 05:26:29.151762"], ["updated_at", "2016-12-11 05:26:29.151762"]]
|
1950
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1951
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1953
|
+
----------------------------
|
1954
|
+
MoneyTest: test_%_and_modulo
|
1955
|
+
----------------------------
|
1956
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1957
|
+
[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-11 05:26:29.159636"], ["updated_at", "2016-12-11 05:26:29.159636"]]
|
1958
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1959
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1960
|
+
[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-11 05:26:29.161181"], ["updated_at", "2016-12-11 05:26:29.161181"]]
|
1961
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1962
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1963
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1964
|
+
-----------------
|
1965
|
+
MoneyTest: test_<
|
1966
|
+
-----------------
|
1967
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1968
|
+
[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-11 05:26:29.163813"], ["updated_at", "2016-12-11 05:26:29.163813"]]
|
1969
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1970
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1971
|
+
[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-11 05:26:29.165160"], ["updated_at", "2016-12-11 05:26:29.165160"]]
|
1972
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1973
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1974
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1975
|
+
-------------------
|
1976
|
+
MoneyTest: test_<=>
|
1977
|
+
-------------------
|
1978
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1979
|
+
[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-11 05:26:29.167569"], ["updated_at", "2016-12-11 05:26:29.167569"]]
|
1980
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1981
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1982
|
+
[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-11 05:26:29.168884"], ["updated_at", "2016-12-11 05:26:29.168884"]]
|
1983
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1984
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1985
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1986
|
+
--------------------
|
1987
|
+
MoneyTest: test_to_s
|
1988
|
+
--------------------
|
1989
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1990
|
+
[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-11 05:26:29.171245"], ["updated_at", "2016-12-11 05:26:29.171245"]]
|
1991
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1992
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1993
|
+
[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-11 05:26:29.172720"], ["updated_at", "2016-12-11 05:26:29.172720"]]
|
1994
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1995
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1996
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1997
|
+
----------------------
|
1998
|
+
MoneyTest: test_divmod
|
1999
|
+
----------------------
|
2000
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2001
|
+
[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-11 05:26:29.186185"], ["updated_at", "2016-12-11 05:26:29.186185"]]
|
2002
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2003
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2004
|
+
[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-11 05:26:29.188044"], ["updated_at", "2016-12-11 05:26:29.188044"]]
|
2005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2006
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2007
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2008
|
+
-----------------------------------
|
2009
|
+
MoneyTest: test_to_json_and_as_json
|
2010
|
+
-----------------------------------
|
2011
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2012
|
+
[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-11 05:26:29.190678"], ["updated_at", "2016-12-11 05:26:29.190678"]]
|
2013
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2014
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2015
|
+
[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-11 05:26:29.192157"], ["updated_at", "2016-12-11 05:26:29.192157"]]
|
2016
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2017
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2019
|
+
-----------------
|
2020
|
+
MoneyTest: test_*
|
2021
|
+
-----------------
|
2022
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2023
|
+
[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-11 05:26:29.194566"], ["updated_at", "2016-12-11 05:26:29.194566"]]
|
2024
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2025
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2026
|
+
[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-11 05:26:29.195965"], ["updated_at", "2016-12-11 05:26:29.195965"]]
|
2027
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2028
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2029
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2030
|
+
------------------
|
2031
|
+
MoneyTest: test_-@
|
2032
|
+
------------------
|
2033
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2034
|
+
[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-11 05:26:29.197975"], ["updated_at", "2016-12-11 05:26:29.197975"]]
|
2035
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2036
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2037
|
+
[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-11 05:26:29.199249"], ["updated_at", "2016-12-11 05:26:29.199249"]]
|
2038
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2039
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2040
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2041
|
+
-------------------------
|
2042
|
+
MoneyTest: test_negative?
|
2043
|
+
-------------------------
|
2044
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2045
|
+
[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-11 05:26:29.201441"], ["updated_at", "2016-12-11 05:26:29.201441"]]
|
2046
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2047
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2048
|
+
[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-11 05:26:29.203287"], ["updated_at", "2016-12-11 05:26:29.203287"]]
|
2049
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2050
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2051
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2052
|
+
----------------------
|
2053
|
+
MoneyTest: test_coerce
|
2054
|
+
----------------------
|
2055
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2056
|
+
[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-11 05:26:29.205902"], ["updated_at", "2016-12-11 05:26:29.205902"]]
|
2057
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2058
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2059
|
+
[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-11 05:26:29.207296"], ["updated_at", "2016-12-11 05:26:29.207296"]]
|
2060
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2061
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2062
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2063
|
+
-------------------------
|
2064
|
+
MoneyTest: test_/_and_div
|
2065
|
+
-------------------------
|
2066
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2067
|
+
[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-11 05:26:29.209423"], ["updated_at", "2016-12-11 05:26:29.209423"]]
|
2068
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2069
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2070
|
+
[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-11 05:26:29.211248"], ["updated_at", "2016-12-11 05:26:29.211248"]]
|
2071
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2072
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2073
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2074
|
+
---------------------------------
|
2075
|
+
MoneyTest: test_abs_and_magnitude
|
2076
|
+
---------------------------------
|
2077
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2078
|
+
[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-11 05:26:29.214642"], ["updated_at", "2016-12-11 05:26:29.214642"]]
|
2079
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2080
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2081
|
+
[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-11 05:26:29.216054"], ["updated_at", "2016-12-11 05:26:29.216054"]]
|
2082
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2083
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2084
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2085
|
+
---------------------------
|
2086
|
+
MoneyTest: test_exchange_to
|
2087
|
+
---------------------------
|
2088
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2089
|
+
[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-11 05:26:29.218104"], ["updated_at", "2016-12-11 05:26:29.218104"]]
|
2090
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2091
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2092
|
+
[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-11 05:26:29.219444"], ["updated_at", "2016-12-11 05:26:29.219444"]]
|
2093
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2094
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2095
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2096
|
+
---------------------
|
2097
|
+
MoneyTest: test_zero?
|
2098
|
+
---------------------
|
2099
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2100
|
+
[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-11 05:26:29.221606"], ["updated_at", "2016-12-11 05:26:29.221606"]]
|
2101
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2102
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2103
|
+
[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-11 05:26:29.222857"], ["updated_at", "2016-12-11 05:26:29.222857"]]
|
2104
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2105
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2106
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2107
|
+
------------------------
|
2108
|
+
MoneyTest: test_nonzero?
|
2109
|
+
------------------------
|
2110
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2111
|
+
[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-11 05:26:29.224944"], ["updated_at", "2016-12-11 05:26:29.224944"]]
|
2112
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2113
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2114
|
+
[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-11 05:26:29.226317"], ["updated_at", "2016-12-11 05:26:29.226317"]]
|
2115
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2116
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2117
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2118
|
+
-------------------
|
2119
|
+
MoneyTest: test_===
|
2120
|
+
-------------------
|
2121
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2122
|
+
[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-11 05:26:29.228367"], ["updated_at", "2016-12-11 05:26:29.228367"]]
|
2123
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2124
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2125
|
+
[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-11 05:26:29.229716"], ["updated_at", "2016-12-11 05:26:29.229716"]]
|
2126
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2127
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2128
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2129
|
+
-----------------
|
2130
|
+
MoneyTest: test_-
|
2131
|
+
-----------------
|
2132
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2133
|
+
[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-11 05:26:29.231830"], ["updated_at", "2016-12-11 05:26:29.231830"]]
|
2134
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2135
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2136
|
+
[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-11 05:26:29.233121"], ["updated_at", "2016-12-11 05:26:29.233121"]]
|
2137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2138
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2139
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2140
|
+
-------------------------
|
2141
|
+
MoneyTest: test_positive?
|
2142
|
+
-------------------------
|
2143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2144
|
+
[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-11 05:26:29.235091"], ["updated_at", "2016-12-11 05:26:29.235091"]]
|
2145
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2146
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2147
|
+
[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-11 05:26:29.236251"], ["updated_at", "2016-12-11 05:26:29.236251"]]
|
2148
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2149
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2150
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2151
|
+
-------------------------
|
2152
|
+
MoneyTest: test_remainder
|
2153
|
+
-------------------------
|
2154
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2155
|
+
[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-11 05:26:29.237942"], ["updated_at", "2016-12-11 05:26:29.237942"]]
|
2156
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2157
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2158
|
+
[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-11 05:26:29.239004"], ["updated_at", "2016-12-11 05:26:29.239004"]]
|
2159
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2160
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2161
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2162
|
+
-----------------
|
2163
|
+
MoneyTest: test_+
|
2164
|
+
-----------------
|
2165
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2166
|
+
[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-11 05:26:29.240805"], ["updated_at", "2016-12-11 05:26:29.240805"]]
|
2167
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2168
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2169
|
+
[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-11 05:26:29.242118"], ["updated_at", "2016-12-11 05:26:29.242118"]]
|
2170
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2171
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2172
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2173
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2174
|
+
-------------------------
|
2175
|
+
MoneyTest: test_/_and_div
|
2176
|
+
-------------------------
|
2177
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2178
|
+
[1m[35mSQL (0.9ms)[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-11 05:32:52.010142"], ["updated_at", "2016-12-11 05:32:52.010142"]]
|
2179
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2180
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2181
|
+
[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-11 05:32:52.016390"], ["updated_at", "2016-12-11 05:32:52.016390"]]
|
2182
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2183
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2184
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2185
|
+
-----------------------------------
|
2186
|
+
MoneyTest: test_to_json_and_as_json
|
2187
|
+
-----------------------------------
|
2188
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2189
|
+
[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-11 05:32:52.019897"], ["updated_at", "2016-12-11 05:32:52.019897"]]
|
2190
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2191
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2192
|
+
[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-11 05:32:52.021846"], ["updated_at", "2016-12-11 05:32:52.021846"]]
|
2193
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2194
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2195
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2196
|
+
-------------------------
|
2197
|
+
MoneyTest: test_remainder
|
2198
|
+
-------------------------
|
2199
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2200
|
+
[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-11 05:32:52.024116"], ["updated_at", "2016-12-11 05:32:52.024116"]]
|
2201
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2202
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2203
|
+
[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-11 05:32:52.025396"], ["updated_at", "2016-12-11 05:32:52.025396"]]
|
2204
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2205
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2206
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2207
|
+
-----------------
|
2208
|
+
MoneyTest: test_+
|
2209
|
+
-----------------
|
2210
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2211
|
+
[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-11 05:32:52.031207"], ["updated_at", "2016-12-11 05:32:52.031207"]]
|
2212
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2213
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2214
|
+
[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-11 05:32:52.033345"], ["updated_at", "2016-12-11 05:32:52.033345"]]
|
2215
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2216
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2217
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2218
|
+
---------------------------------
|
2219
|
+
MoneyTest: test_abs_and_magnitude
|
2220
|
+
---------------------------------
|
2221
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2222
|
+
[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-11 05:32:52.035736"], ["updated_at", "2016-12-11 05:32:52.035736"]]
|
2223
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2224
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2225
|
+
[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-11 05:32:52.037034"], ["updated_at", "2016-12-11 05:32:52.037034"]]
|
2226
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2227
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2228
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2229
|
+
---------------------------
|
2230
|
+
MoneyTest: test_exchange_to
|
2231
|
+
---------------------------
|
2232
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2233
|
+
[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-11 05:32:52.039105"], ["updated_at", "2016-12-11 05:32:52.039105"]]
|
2234
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2235
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2236
|
+
[1m[36mSQL (1.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-11 05:32:52.040440"], ["updated_at", "2016-12-11 05:32:52.040440"]]
|
2237
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2238
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2239
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2240
|
+
-------------------
|
2241
|
+
MoneyTest: test_===
|
2242
|
+
-------------------
|
2243
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2244
|
+
[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-11 05:32:52.044920"], ["updated_at", "2016-12-11 05:32:52.044920"]]
|
2245
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2246
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2247
|
+
[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-11 05:32:52.046713"], ["updated_at", "2016-12-11 05:32:52.046713"]]
|
2248
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2249
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2250
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2251
|
+
----------------------
|
2252
|
+
MoneyTest: test_coerce
|
2253
|
+
----------------------
|
2254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2255
|
+
[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-11 05:32:52.049407"], ["updated_at", "2016-12-11 05:32:52.049407"]]
|
2256
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2257
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2258
|
+
[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-11 05:32:52.050674"], ["updated_at", "2016-12-11 05:32:52.050674"]]
|
2259
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2260
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2261
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2262
|
+
-----------------
|
2263
|
+
MoneyTest: test_<
|
2264
|
+
-----------------
|
2265
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2266
|
+
[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-11 05:32:52.052628"], ["updated_at", "2016-12-11 05:32:52.052628"]]
|
2267
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2268
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2269
|
+
[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-11 05:32:52.054034"], ["updated_at", "2016-12-11 05:32:52.054034"]]
|
2270
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2271
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2272
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2273
|
+
-------------------
|
2274
|
+
MoneyTest: test_<=>
|
2275
|
+
-------------------
|
2276
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2277
|
+
[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-11 05:32:52.056701"], ["updated_at", "2016-12-11 05:32:52.056701"]]
|
2278
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2279
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2280
|
+
[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-11 05:32:52.057942"], ["updated_at", "2016-12-11 05:32:52.057942"]]
|
2281
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2282
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2283
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2284
|
+
-----------------
|
2285
|
+
MoneyTest: test_*
|
2286
|
+
-----------------
|
2287
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2288
|
+
[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-11 05:32:52.060101"], ["updated_at", "2016-12-11 05:32:52.060101"]]
|
2289
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2290
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2291
|
+
[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-11 05:32:52.061542"], ["updated_at", "2016-12-11 05:32:52.061542"]]
|
2292
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2293
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2294
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2295
|
+
---------------------
|
2296
|
+
MoneyTest: test_zero?
|
2297
|
+
---------------------
|
2298
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2299
|
+
[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-11 05:32:52.063465"], ["updated_at", "2016-12-11 05:32:52.063465"]]
|
2300
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2301
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2302
|
+
[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-11 05:32:52.064617"], ["updated_at", "2016-12-11 05:32:52.064617"]]
|
2303
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2304
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2305
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2306
|
+
------------------------
|
2307
|
+
MoneyTest: test_nonzero?
|
2308
|
+
------------------------
|
2309
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2310
|
+
[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-11 05:32:52.066967"], ["updated_at", "2016-12-11 05:32:52.066967"]]
|
2311
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2312
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2313
|
+
[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-11 05:32:52.068329"], ["updated_at", "2016-12-11 05:32:52.068329"]]
|
2314
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2315
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2316
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2317
|
+
-------------------------
|
2318
|
+
MoneyTest: test_positive?
|
2319
|
+
-------------------------
|
2320
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2321
|
+
[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-11 05:32:52.070280"], ["updated_at", "2016-12-11 05:32:52.070280"]]
|
2322
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2323
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2324
|
+
[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-11 05:32:52.071433"], ["updated_at", "2016-12-11 05:32:52.071433"]]
|
2325
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2326
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2327
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2328
|
+
-----------------
|
2329
|
+
MoneyTest: test_-
|
2330
|
+
-----------------
|
2331
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2332
|
+
[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-11 05:32:52.073444"], ["updated_at", "2016-12-11 05:32:52.073444"]]
|
2333
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2334
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2335
|
+
[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-11 05:32:52.074652"], ["updated_at", "2016-12-11 05:32:52.074652"]]
|
2336
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2337
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2338
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2339
|
+
----------------------
|
2340
|
+
MoneyTest: test_divmod
|
2341
|
+
----------------------
|
2342
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2343
|
+
[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-11 05:32:52.077430"], ["updated_at", "2016-12-11 05:32:52.077430"]]
|
2344
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2345
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2346
|
+
[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-11 05:32:52.079368"], ["updated_at", "2016-12-11 05:32:52.079368"]]
|
2347
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2348
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2349
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2350
|
+
--------------------
|
2351
|
+
MoneyTest: test_to_s
|
2352
|
+
--------------------
|
2353
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2354
|
+
[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-11 05:32:52.081669"], ["updated_at", "2016-12-11 05:32:52.081669"]]
|
2355
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2357
|
+
[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-11 05:32:52.082982"], ["updated_at", "2016-12-11 05:32:52.082982"]]
|
2358
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2359
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2360
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2361
|
+
----------------------------
|
2362
|
+
MoneyTest: test_%_and_modulo
|
2363
|
+
----------------------------
|
2364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2365
|
+
[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-11 05:32:52.095920"], ["updated_at", "2016-12-11 05:32:52.095920"]]
|
2366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2368
|
+
[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-11 05:32:52.097348"], ["updated_at", "2016-12-11 05:32:52.097348"]]
|
2369
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2370
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2371
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2372
|
+
-------------------------
|
2373
|
+
MoneyTest: test_negative?
|
2374
|
+
-------------------------
|
2375
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2376
|
+
[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-11 05:32:52.100314"], ["updated_at", "2016-12-11 05:32:52.100314"]]
|
2377
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2378
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2379
|
+
[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-11 05:32:52.101689"], ["updated_at", "2016-12-11 05:32:52.101689"]]
|
2380
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2381
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2382
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2383
|
+
------------------
|
2384
|
+
MoneyTest: test_-@
|
2385
|
+
------------------
|
2386
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2387
|
+
[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-11 05:32:52.103743"], ["updated_at", "2016-12-11 05:32:52.103743"]]
|
2388
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2389
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2390
|
+
[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-11 05:32:52.104919"], ["updated_at", "2016-12-11 05:32:52.104919"]]
|
2391
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2392
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2393
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2394
|
+
--------------------
|
2395
|
+
RateTest: test_yahoo
|
2396
|
+
--------------------
|
2397
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2398
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2399
|
+
----------------------
|
2400
|
+
RateTest: test_retries
|
2401
|
+
----------------------
|
2402
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2403
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2404
|
+
---------------------------
|
2405
|
+
TaskTest: test_update_rates
|
2406
|
+
---------------------------
|
2407
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2408
|
+
[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", "29.32"], ["created_at", "2016-12-11 05:32:52.135559"], ["updated_at", "2016-12-11 05:32:52.135559"]]
|
2409
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2410
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2411
|
+
[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-11 05:32:52.137168"], ["updated_at", "2016-12-11 05:32:52.137168"]]
|
2412
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2413
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
2414
|
+
[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]]
|
2415
|
+
[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]]
|
2416
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2417
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2418
|
+
---------------------------------
|
2419
|
+
RecordTest: test_default_currency
|
2420
|
+
---------------------------------
|
2421
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2422
|
+
[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-11 05:32:52.150697"], ["updated_at", "2016-12-11 05:32:52.150697"]]
|
2423
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2424
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2425
|
+
[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-11 05:32:52.152254"], ["updated_at", "2016-12-11 05:32:52.152254"]]
|
2426
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2427
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2428
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2429
|
+
---------------------------
|
2430
|
+
RecordTest: test_validators
|
2431
|
+
---------------------------
|
2432
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2433
|
+
[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-11 05:32:52.159191"], ["updated_at", "2016-12-11 05:32:52.159191"]]
|
2434
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2435
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2436
|
+
[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-11 05:32:52.160928"], ["updated_at", "2016-12-11 05:32:52.160928"]]
|
2437
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2438
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2439
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2440
|
+
------------------------
|
2441
|
+
RecordTest: test_helpers
|
2442
|
+
------------------------
|
2443
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2444
|
+
[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-11 05:32:52.164443"], ["updated_at", "2016-12-11 05:32:52.164443"]]
|
2445
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2446
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2447
|
+
[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-11 05:32:52.165712"], ["updated_at", "2016-12-11 05:32:52.165712"]]
|
2448
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2449
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2450
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2451
|
+
---------------------------
|
2452
|
+
RecordTest: test_persistent
|
2453
|
+
---------------------------
|
2454
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2455
|
+
[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-11 05:32:52.168568"], ["updated_at", "2016-12-11 05:32:52.168568"]]
|
2456
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2457
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2458
|
+
[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-11 05:32:52.169868"], ["updated_at", "2016-12-11 05:32:52.169868"]]
|
2459
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2460
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2461
|
+
[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-11 05:32:52.175584"], ["updated_at", "2016-12-11 05:32:52.175584"]]
|
2462
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2463
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2464
|
+
[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-11 05:32:52.177814"], ["id", 8]]
|
2465
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2466
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2467
|
+
[1m[36mSQL (0.2ms)[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-11 05:32:52.180198"], ["updated_at", "2016-12-11 05:32:52.180198"]]
|
2468
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2469
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2470
|
+
[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-11 05:32:52.181566"], ["id", 5]]
|
2471
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2472
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2473
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2474
|
+
---------------------------
|
2475
|
+
GeneratorTest: test_install
|
2476
|
+
---------------------------
|
2477
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2478
|
+
[1m[36mActiveRecord::SchemaMigration Load (6.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2479
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2480
|
+
----------------------
|
2481
|
+
MoneyTest: test_coerce
|
2482
|
+
----------------------
|
2483
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2484
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2485
|
+
------------------
|
2486
|
+
MoneyTest: test_-@
|
2487
|
+
------------------
|
2488
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2489
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2490
|
+
-------------------
|
2491
|
+
MoneyTest: test_===
|
2492
|
+
-------------------
|
2493
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2494
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2495
|
+
------------------------
|
2496
|
+
MoneyTest: test_nonzero?
|
2497
|
+
------------------------
|
2498
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2499
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2500
|
+
-------------------------
|
2501
|
+
MoneyTest: test_positive?
|
2502
|
+
-------------------------
|
2503
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2504
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2505
|
+
---------------------
|
2506
|
+
MoneyTest: test_zero?
|
2507
|
+
---------------------
|
2508
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2509
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2510
|
+
---------------------------------
|
2511
|
+
MoneyTest: test_abs_and_magnitude
|
2512
|
+
---------------------------------
|
2513
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2514
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2515
|
+
-------------------
|
2516
|
+
MoneyTest: test_<=>
|
2517
|
+
-------------------
|
2518
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2519
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2520
|
+
-------------------------
|
2521
|
+
MoneyTest: test_remainder
|
2522
|
+
-------------------------
|
2523
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2524
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2525
|
+
-----------------
|
2526
|
+
MoneyTest: test_+
|
2527
|
+
-----------------
|
2528
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2529
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2530
|
+
-----------------------------------
|
2531
|
+
MoneyTest: test_to_json_and_as_json
|
2532
|
+
-----------------------------------
|
2533
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2534
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2535
|
+
-----------------
|
2536
|
+
MoneyTest: test_<
|
2537
|
+
-----------------
|
2538
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2539
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2540
|
+
----------------------
|
2541
|
+
MoneyTest: test_divmod
|
2542
|
+
----------------------
|
2543
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2544
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2545
|
+
---------------------------
|
2546
|
+
MoneyTest: test_exchange_to
|
2547
|
+
---------------------------
|
2548
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2549
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2550
|
+
-----------------
|
2551
|
+
MoneyTest: test_-
|
2552
|
+
-----------------
|
2553
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2554
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2555
|
+
-------------------------
|
2556
|
+
MoneyTest: test_/_and_div
|
2557
|
+
-------------------------
|
2558
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2559
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2560
|
+
----------------------------
|
2561
|
+
MoneyTest: test_%_and_modulo
|
2562
|
+
----------------------------
|
2563
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2564
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2565
|
+
-------------------------
|
2566
|
+
MoneyTest: test_negative?
|
2567
|
+
-------------------------
|
2568
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2569
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2570
|
+
-----------------
|
2571
|
+
MoneyTest: test_*
|
2572
|
+
-----------------
|
2573
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2574
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2575
|
+
--------------------
|
2576
|
+
MoneyTest: test_to_s
|
2577
|
+
--------------------
|
2578
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2579
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2580
|
+
------------------------
|
2581
|
+
RecordTest: test_helpers
|
2582
|
+
------------------------
|
2583
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2584
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2585
|
+
---------------------------
|
2586
|
+
RecordTest: test_persistent
|
2587
|
+
---------------------------
|
2588
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2589
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2590
|
+
---------------------------------
|
2591
|
+
RecordTest: test_default_currency
|
2592
|
+
---------------------------------
|
2593
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2594
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2595
|
+
---------------------------
|
2596
|
+
RecordTest: test_validators
|
2597
|
+
---------------------------
|
2598
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2599
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2600
|
+
---------------------------
|
2601
|
+
GeneratorTest: test_install
|
2602
|
+
---------------------------
|
2603
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2604
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2605
|
+
---------------------------
|
2606
|
+
TaskTest: test_update_rates
|
2607
|
+
---------------------------
|
2608
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2609
|
+
[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", "29.32"], ["created_at", "2016-12-12 16:28:30.384894"], ["updated_at", "2016-12-12 16:28:30.384894"]]
|
2610
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2612
|
+
[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.0341"], ["created_at", "2016-12-12 16:28:30.389703"], ["updated_at", "2016-12-12 16:28:30.389703"]]
|
2613
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2614
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
2615
|
+
[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]]
|
2616
|
+
[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]]
|
2617
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2618
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2619
|
+
----------------------
|
2620
|
+
RateTest: test_retries
|
2621
|
+
----------------------
|
2622
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2623
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2624
|
+
--------------------
|
2625
|
+
RateTest: test_yahoo
|
2626
|
+
--------------------
|
2627
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2628
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2629
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2630
|
+
---------------------------
|
2631
|
+
GeneratorTest: test_install
|
2632
|
+
---------------------------
|
2633
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2634
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2635
|
+
-------------------------
|
2636
|
+
MoneyTest: test_remainder
|
2637
|
+
-------------------------
|
2638
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2639
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2640
|
+
------------------------
|
2641
|
+
MoneyTest: test_nonzero?
|
2642
|
+
------------------------
|
2643
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2644
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2645
|
+
-----------------
|
2646
|
+
MoneyTest: test_+
|
2647
|
+
-----------------
|
2648
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2649
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2650
|
+
-------------------------
|
2651
|
+
MoneyTest: test_positive?
|
2652
|
+
-------------------------
|
2653
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2654
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2655
|
+
----------------------------
|
2656
|
+
MoneyTest: test_%_and_modulo
|
2657
|
+
----------------------------
|
2658
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2659
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2660
|
+
--------------------
|
2661
|
+
MoneyTest: test_to_s
|
2662
|
+
--------------------
|
2663
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2664
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2665
|
+
-------------------
|
2666
|
+
MoneyTest: test_<=>
|
2667
|
+
-------------------
|
2668
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2669
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2670
|
+
-------------------
|
2671
|
+
MoneyTest: test_===
|
2672
|
+
-------------------
|
2673
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2674
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2675
|
+
-------------------------
|
2676
|
+
MoneyTest: test_negative?
|
2677
|
+
-------------------------
|
2678
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2679
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2680
|
+
---------------------------------
|
2681
|
+
MoneyTest: test_abs_and_magnitude
|
2682
|
+
---------------------------------
|
2683
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2684
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2685
|
+
---------------------------
|
2686
|
+
MoneyTest: test_exchange_to
|
2687
|
+
---------------------------
|
2688
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2689
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2690
|
+
-----------------------------------
|
2691
|
+
MoneyTest: test_to_json_and_as_json
|
2692
|
+
-----------------------------------
|
2693
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2694
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2695
|
+
-----------------
|
2696
|
+
MoneyTest: test_*
|
2697
|
+
-----------------
|
2698
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2699
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2700
|
+
-----------------
|
2701
|
+
MoneyTest: test_<
|
2702
|
+
-----------------
|
2703
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2704
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2705
|
+
---------------------
|
2706
|
+
MoneyTest: test_zero?
|
2707
|
+
---------------------
|
2708
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2709
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2710
|
+
----------------------
|
2711
|
+
MoneyTest: test_coerce
|
2712
|
+
----------------------
|
2713
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2714
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2715
|
+
------------------
|
2716
|
+
MoneyTest: test_-@
|
2717
|
+
------------------
|
2718
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2719
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2720
|
+
----------------------
|
2721
|
+
MoneyTest: test_divmod
|
2722
|
+
----------------------
|
2723
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2724
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2725
|
+
-------------------------
|
2726
|
+
MoneyTest: test_/_and_div
|
2727
|
+
-------------------------
|
2728
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2729
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2730
|
+
-----------------
|
2731
|
+
MoneyTest: test_-
|
2732
|
+
-----------------
|
2733
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2734
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2735
|
+
----------------------
|
2736
|
+
RateTest: test_retries
|
2737
|
+
----------------------
|
2738
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2739
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2740
|
+
--------------------
|
2741
|
+
RateTest: test_yahoo
|
2742
|
+
--------------------
|
2743
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2744
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2745
|
+
---------------------------
|
2746
|
+
TaskTest: test_update_rates
|
2747
|
+
---------------------------
|
2748
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2749
|
+
[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", "29.32"], ["created_at", "2016-12-12 16:33:04.450776"], ["updated_at", "2016-12-12 16:33:04.450776"]]
|
2750
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2751
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2752
|
+
[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-12 16:33:04.454069"], ["updated_at", "2016-12-12 16:33:04.454069"]]
|
2753
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2754
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
2755
|
+
[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]]
|
2756
|
+
[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]]
|
2757
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2758
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2759
|
+
---------------------------------
|
2760
|
+
RecordTest: test_default_currency
|
2761
|
+
---------------------------------
|
2762
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2763
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2764
|
+
------------------------
|
2765
|
+
RecordTest: test_helpers
|
2766
|
+
------------------------
|
2767
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2768
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2769
|
+
---------------------------
|
2770
|
+
RecordTest: test_persistent
|
2771
|
+
---------------------------
|
2772
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2773
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2774
|
+
---------------------------
|
2775
|
+
RecordTest: test_validators
|
2776
|
+
---------------------------
|
2777
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2778
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2779
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2780
|
+
---------------------------
|
2781
|
+
TaskTest: test_update_rates
|
2782
|
+
---------------------------
|
2783
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2784
|
+
[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", "29.32"], ["created_at", "2016-12-12 16:33:52.551618"], ["updated_at", "2016-12-12 16:33:52.551618"]]
|
2785
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2786
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2787
|
+
[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.0341"], ["created_at", "2016-12-12 16:33:52.555652"], ["updated_at", "2016-12-12 16:33:52.555652"]]
|
2788
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2789
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
2790
|
+
[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]]
|
2791
|
+
[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]]
|
2792
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2793
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2794
|
+
---------------------------
|
2795
|
+
GeneratorTest: test_install
|
2796
|
+
---------------------------
|
2797
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2798
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2799
|
+
-------------------
|
2800
|
+
MoneyTest: test_<=>
|
2801
|
+
-------------------
|
2802
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2803
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2804
|
+
----------------------
|
2805
|
+
MoneyTest: test_divmod
|
2806
|
+
----------------------
|
2807
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2808
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2809
|
+
--------------------
|
2810
|
+
MoneyTest: test_to_s
|
2811
|
+
--------------------
|
2812
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2813
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2814
|
+
-----------------
|
2815
|
+
MoneyTest: test_<
|
2816
|
+
-----------------
|
2817
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2818
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2819
|
+
----------------------------
|
2820
|
+
MoneyTest: test_%_and_modulo
|
2821
|
+
----------------------------
|
2822
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2823
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2824
|
+
-----------------
|
2825
|
+
MoneyTest: test_*
|
2826
|
+
-----------------
|
2827
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2828
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2829
|
+
-------------------
|
2830
|
+
MoneyTest: test_===
|
2831
|
+
-------------------
|
2832
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2833
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2834
|
+
-------------------------
|
2835
|
+
MoneyTest: test_positive?
|
2836
|
+
-------------------------
|
2837
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2838
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2839
|
+
-------------------------
|
2840
|
+
MoneyTest: test_remainder
|
2841
|
+
-------------------------
|
2842
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2843
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2844
|
+
-------------------------
|
2845
|
+
MoneyTest: test_/_and_div
|
2846
|
+
-------------------------
|
2847
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2848
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2849
|
+
-----------------
|
2850
|
+
MoneyTest: test_+
|
2851
|
+
-----------------
|
2852
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2853
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2854
|
+
-----------------------------------
|
2855
|
+
MoneyTest: test_to_json_and_as_json
|
2856
|
+
-----------------------------------
|
2857
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2858
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2859
|
+
-------------------------
|
2860
|
+
MoneyTest: test_negative?
|
2861
|
+
-------------------------
|
2862
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2863
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2864
|
+
------------------------
|
2865
|
+
MoneyTest: test_nonzero?
|
2866
|
+
------------------------
|
2867
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2868
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2869
|
+
---------------------------
|
2870
|
+
MoneyTest: test_exchange_to
|
2871
|
+
---------------------------
|
2872
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2873
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2874
|
+
----------------------
|
2875
|
+
MoneyTest: test_coerce
|
2876
|
+
----------------------
|
2877
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2878
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2879
|
+
-----------------
|
2880
|
+
MoneyTest: test_-
|
2881
|
+
-----------------
|
2882
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2883
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2884
|
+
------------------
|
2885
|
+
MoneyTest: test_-@
|
2886
|
+
------------------
|
2887
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2888
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2889
|
+
---------------------------------
|
2890
|
+
MoneyTest: test_abs_and_magnitude
|
2891
|
+
---------------------------------
|
2892
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2893
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2894
|
+
---------------------
|
2895
|
+
MoneyTest: test_zero?
|
2896
|
+
---------------------
|
2897
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2898
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2899
|
+
----------------------
|
2900
|
+
RateTest: test_retries
|
2901
|
+
----------------------
|
2902
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2903
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2904
|
+
--------------------
|
2905
|
+
RateTest: test_yahoo
|
2906
|
+
--------------------
|
2907
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2908
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2909
|
+
---------------------------
|
2910
|
+
RecordTest: test_persistent
|
2911
|
+
---------------------------
|
2912
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2913
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2914
|
+
------------------------
|
2915
|
+
RecordTest: test_helpers
|
2916
|
+
------------------------
|
2917
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2918
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2919
|
+
---------------------------------
|
2920
|
+
RecordTest: test_default_currency
|
2921
|
+
---------------------------------
|
2922
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2923
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2924
|
+
---------------------------
|
2925
|
+
RecordTest: test_validators
|
2926
|
+
---------------------------
|
2927
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2928
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2929
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2930
|
+
---------------------------
|
2931
|
+
GeneratorTest: test_install
|
2932
|
+
---------------------------
|
2933
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2934
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2935
|
+
---------------------------
|
2936
|
+
TaskTest: test_update_rates
|
2937
|
+
---------------------------
|
2938
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2939
|
+
[1m[35mSQL (0.7ms)[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-12 16:34:04.187055"], ["updated_at", "2016-12-12 16:34:04.187055"]]
|
2940
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2941
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2942
|
+
[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-12 16:34:04.191333"], ["updated_at", "2016-12-12 16:34:04.191333"]]
|
2943
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2944
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
2945
|
+
[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]]
|
2946
|
+
[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]]
|
2947
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2948
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2949
|
+
------------------------
|
2950
|
+
RecordTest: test_helpers
|
2951
|
+
------------------------
|
2952
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2953
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2954
|
+
---------------------------
|
2955
|
+
RecordTest: test_persistent
|
2956
|
+
---------------------------
|
2957
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2958
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2959
|
+
---------------------------------
|
2960
|
+
RecordTest: test_default_currency
|
2961
|
+
---------------------------------
|
2962
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2963
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2964
|
+
---------------------------
|
2965
|
+
RecordTest: test_validators
|
2966
|
+
---------------------------
|
2967
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2968
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2969
|
+
-------------------------
|
2970
|
+
MoneyTest: test_negative?
|
2971
|
+
-------------------------
|
2972
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2973
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2974
|
+
-------------------
|
2975
|
+
MoneyTest: test_===
|
2976
|
+
-------------------
|
2977
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2978
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2979
|
+
-----------------
|
2980
|
+
MoneyTest: test_+
|
2981
|
+
-----------------
|
2982
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2983
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2984
|
+
-----------------
|
2985
|
+
MoneyTest: test_-
|
2986
|
+
-----------------
|
2987
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2988
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2989
|
+
------------------
|
2990
|
+
MoneyTest: test_-@
|
2991
|
+
------------------
|
2992
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2993
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2994
|
+
---------------------
|
2995
|
+
MoneyTest: test_zero?
|
2996
|
+
---------------------
|
2997
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2998
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2999
|
+
--------------------
|
3000
|
+
MoneyTest: test_to_s
|
3001
|
+
--------------------
|
3002
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3003
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3004
|
+
----------------------------
|
3005
|
+
MoneyTest: test_%_and_modulo
|
3006
|
+
----------------------------
|
3007
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3008
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3009
|
+
-------------------------
|
3010
|
+
MoneyTest: test_remainder
|
3011
|
+
-------------------------
|
3012
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3013
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3014
|
+
----------------------
|
3015
|
+
MoneyTest: test_divmod
|
3016
|
+
----------------------
|
3017
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3019
|
+
---------------------------------
|
3020
|
+
MoneyTest: test_abs_and_magnitude
|
3021
|
+
---------------------------------
|
3022
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3023
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3024
|
+
-------------------
|
3025
|
+
MoneyTest: test_<=>
|
3026
|
+
-------------------
|
3027
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3028
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
3029
|
+
-----------------
|
3030
|
+
MoneyTest: test_<
|
3031
|
+
-----------------
|
3032
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3033
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3034
|
+
-------------------------
|
3035
|
+
MoneyTest: test_positive?
|
3036
|
+
-------------------------
|
3037
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3038
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3039
|
+
------------------------
|
3040
|
+
MoneyTest: test_nonzero?
|
3041
|
+
------------------------
|
3042
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3043
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3044
|
+
---------------------------
|
3045
|
+
MoneyTest: test_exchange_to
|
3046
|
+
---------------------------
|
3047
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3048
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3049
|
+
----------------------
|
3050
|
+
MoneyTest: test_coerce
|
3051
|
+
----------------------
|
3052
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3053
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3054
|
+
-----------------------------------
|
3055
|
+
MoneyTest: test_to_json_and_as_json
|
3056
|
+
-----------------------------------
|
3057
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3058
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3059
|
+
-----------------
|
3060
|
+
MoneyTest: test_*
|
3061
|
+
-----------------
|
3062
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3063
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3064
|
+
-------------------------
|
3065
|
+
MoneyTest: test_/_and_div
|
3066
|
+
-------------------------
|
3067
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3068
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3069
|
+
----------------------
|
3070
|
+
RateTest: test_retries
|
3071
|
+
----------------------
|
3072
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3073
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3074
|
+
--------------------
|
3075
|
+
RateTest: test_yahoo
|
3076
|
+
--------------------
|
3077
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3078
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3079
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3080
|
+
---------------------------
|
3081
|
+
TaskTest: test_update_rates
|
3082
|
+
---------------------------
|
3083
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3084
|
+
[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", "29.32"], ["created_at", "2016-12-12 16:34:18.707189"], ["updated_at", "2016-12-12 16:34:18.707189"]]
|
3085
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3086
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3087
|
+
[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-12 16:34:18.710501"], ["updated_at", "2016-12-12 16:34:18.710501"]]
|
3088
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3089
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
3090
|
+
[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]]
|
3091
|
+
[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]]
|
3092
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3093
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3094
|
+
----------------------------
|
3095
|
+
MoneyTest: test_%_and_modulo
|
3096
|
+
----------------------------
|
3097
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3098
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3099
|
+
-------------------
|
3100
|
+
MoneyTest: test_===
|
3101
|
+
-------------------
|
3102
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3103
|
+
[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-12 16:35:06.623921"], ["updated_at", "2016-12-12 16:35:06.623921"]]
|
3104
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3105
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3106
|
+
[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-12 16:35:06.629709"], ["updated_at", "2016-12-12 16:35:06.629709"]]
|
3107
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3108
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3109
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3110
|
+
----------------------------
|
3111
|
+
MoneyTest: test_%_and_modulo
|
3112
|
+
----------------------------
|
3113
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3114
|
+
[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-12 16:35:06.632739"], ["updated_at", "2016-12-12 16:35:06.632739"]]
|
3115
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3116
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3117
|
+
[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-12 16:35:06.634165"], ["updated_at", "2016-12-12 16:35:06.634165"]]
|
3118
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3119
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3120
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3121
|
+
---------------------------
|
3122
|
+
MoneyTest: test_exchange_to
|
3123
|
+
---------------------------
|
3124
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3125
|
+
[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-12 16:35:06.637351"], ["updated_at", "2016-12-12 16:35:06.637351"]]
|
3126
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3127
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3128
|
+
[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-12 16:35:06.638924"], ["updated_at", "2016-12-12 16:35:06.638924"]]
|
3129
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3130
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3131
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3132
|
+
----------------------
|
3133
|
+
MoneyTest: test_divmod
|
3134
|
+
----------------------
|
3135
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3136
|
+
[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-12 16:35:06.641205"], ["updated_at", "2016-12-12 16:35:06.641205"]]
|
3137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3138
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3139
|
+
[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-12 16:35:06.643171"], ["updated_at", "2016-12-12 16:35:06.643171"]]
|
3140
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3141
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3142
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3143
|
+
-------------------------
|
3144
|
+
MoneyTest: test_remainder
|
3145
|
+
-------------------------
|
3146
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3147
|
+
[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-12 16:35:06.646145"], ["updated_at", "2016-12-12 16:35:06.646145"]]
|
3148
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3150
|
+
[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-12 16:35:06.647530"], ["updated_at", "2016-12-12 16:35:06.647530"]]
|
3151
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3152
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3153
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3154
|
+
-----------------
|
3155
|
+
MoneyTest: test_-
|
3156
|
+
-----------------
|
3157
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3158
|
+
[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-12 16:35:06.649805"], ["updated_at", "2016-12-12 16:35:06.649805"]]
|
3159
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3160
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3161
|
+
[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-12 16:35:06.651217"], ["updated_at", "2016-12-12 16:35:06.651217"]]
|
3162
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3163
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3164
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3165
|
+
---------------------
|
3166
|
+
MoneyTest: test_zero?
|
3167
|
+
---------------------
|
3168
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3169
|
+
[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-12 16:35:06.653482"], ["updated_at", "2016-12-12 16:35:06.653482"]]
|
3170
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3171
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3172
|
+
[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-12 16:35:06.654846"], ["updated_at", "2016-12-12 16:35:06.654846"]]
|
3173
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3174
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3175
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3176
|
+
-------------------------
|
3177
|
+
MoneyTest: test_/_and_div
|
3178
|
+
-------------------------
|
3179
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3180
|
+
[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-12 16:35:06.657136"], ["updated_at", "2016-12-12 16:35:06.657136"]]
|
3181
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3183
|
+
[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-12 16:35:06.658600"], ["updated_at", "2016-12-12 16:35:06.658600"]]
|
3184
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3185
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3186
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3187
|
+
------------------------
|
3188
|
+
MoneyTest: test_nonzero?
|
3189
|
+
------------------------
|
3190
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3191
|
+
[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-12 16:35:06.661126"], ["updated_at", "2016-12-12 16:35:06.661126"]]
|
3192
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3193
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3194
|
+
[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-12 16:35:06.666937"], ["updated_at", "2016-12-12 16:35:06.666937"]]
|
3195
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3196
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3197
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3198
|
+
-------------------------
|
3199
|
+
MoneyTest: test_positive?
|
3200
|
+
-------------------------
|
3201
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3202
|
+
[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-12 16:35:06.669764"], ["updated_at", "2016-12-12 16:35:06.669764"]]
|
3203
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3204
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3205
|
+
[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-12 16:35:06.671169"], ["updated_at", "2016-12-12 16:35:06.671169"]]
|
3206
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3207
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3208
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3209
|
+
-------------------
|
3210
|
+
MoneyTest: test_<=>
|
3211
|
+
-------------------
|
3212
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3213
|
+
[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-12 16:35:06.673366"], ["updated_at", "2016-12-12 16:35:06.673366"]]
|
3214
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3215
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3216
|
+
[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-12 16:35:06.674890"], ["updated_at", "2016-12-12 16:35:06.674890"]]
|
3217
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3218
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3219
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3220
|
+
-----------------
|
3221
|
+
MoneyTest: test_<
|
3222
|
+
-----------------
|
3223
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3224
|
+
[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-12 16:35:06.677282"], ["updated_at", "2016-12-12 16:35:06.677282"]]
|
3225
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3226
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3227
|
+
[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-12 16:35:06.678559"], ["updated_at", "2016-12-12 16:35:06.678559"]]
|
3228
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3229
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3230
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3231
|
+
----------------------
|
3232
|
+
MoneyTest: test_coerce
|
3233
|
+
----------------------
|
3234
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3235
|
+
[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-12 16:35:06.680813"], ["updated_at", "2016-12-12 16:35:06.680813"]]
|
3236
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3237
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3238
|
+
[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-12 16:35:06.682396"], ["updated_at", "2016-12-12 16:35:06.682396"]]
|
3239
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3240
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3241
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3242
|
+
-----------------------------------
|
3243
|
+
MoneyTest: test_to_json_and_as_json
|
3244
|
+
-----------------------------------
|
3245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3246
|
+
[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-12 16:35:06.685286"], ["updated_at", "2016-12-12 16:35:06.685286"]]
|
3247
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3248
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3249
|
+
[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-12 16:35:06.686672"], ["updated_at", "2016-12-12 16:35:06.686672"]]
|
3250
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3251
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3252
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3253
|
+
------------------
|
3254
|
+
MoneyTest: test_-@
|
3255
|
+
------------------
|
3256
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3257
|
+
[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-12 16:35:06.688965"], ["updated_at", "2016-12-12 16:35:06.688965"]]
|
3258
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3259
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3260
|
+
[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-12 16:35:06.690295"], ["updated_at", "2016-12-12 16:35:06.690295"]]
|
3261
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3262
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3263
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3264
|
+
-----------------
|
3265
|
+
MoneyTest: test_+
|
3266
|
+
-----------------
|
3267
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3268
|
+
[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-12 16:35:06.692396"], ["updated_at", "2016-12-12 16:35:06.692396"]]
|
3269
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3270
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3271
|
+
[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-12 16:35:06.693670"], ["updated_at", "2016-12-12 16:35:06.693670"]]
|
3272
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3273
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3274
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3275
|
+
-------------------------
|
3276
|
+
MoneyTest: test_negative?
|
3277
|
+
-------------------------
|
3278
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3279
|
+
[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-12 16:35:06.695967"], ["updated_at", "2016-12-12 16:35:06.695967"]]
|
3280
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3281
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3282
|
+
[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-12 16:35:06.697341"], ["updated_at", "2016-12-12 16:35:06.697341"]]
|
3283
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3284
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3285
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3286
|
+
---------------------------------
|
3287
|
+
MoneyTest: test_abs_and_magnitude
|
3288
|
+
---------------------------------
|
3289
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3290
|
+
[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-12 16:35:06.699506"], ["updated_at", "2016-12-12 16:35:06.699506"]]
|
3291
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3292
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3293
|
+
[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-12 16:35:06.700876"], ["updated_at", "2016-12-12 16:35:06.700876"]]
|
3294
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3295
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3296
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3297
|
+
--------------------
|
3298
|
+
MoneyTest: test_to_s
|
3299
|
+
--------------------
|
3300
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3301
|
+
[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-12 16:35:06.702954"], ["updated_at", "2016-12-12 16:35:06.702954"]]
|
3302
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3304
|
+
[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-12 16:35:06.704384"], ["updated_at", "2016-12-12 16:35:06.704384"]]
|
3305
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3306
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3307
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3308
|
+
-----------------
|
3309
|
+
MoneyTest: test_*
|
3310
|
+
-----------------
|
3311
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3312
|
+
[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-12 16:35:06.722301"], ["updated_at", "2016-12-12 16:35:06.722301"]]
|
3313
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3314
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3315
|
+
[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-12 16:35:06.724302"], ["updated_at", "2016-12-12 16:35:06.724302"]]
|
3316
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3317
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3318
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3319
|
+
---------------------------
|
3320
|
+
GeneratorTest: test_install
|
3321
|
+
---------------------------
|
3322
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3323
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3324
|
+
---------------------------
|
3325
|
+
RecordTest: test_persistent
|
3326
|
+
---------------------------
|
3327
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3328
|
+
[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-12 16:35:06.732629"], ["updated_at", "2016-12-12 16:35:06.732629"]]
|
3329
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3330
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3331
|
+
[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-12 16:35:06.734426"], ["updated_at", "2016-12-12 16:35:06.734426"]]
|
3332
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3333
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3334
|
+
[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-12 16:35:06.742028"], ["updated_at", "2016-12-12 16:35:06.742028"]]
|
3335
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3336
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3337
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3[0m [["monthly_price", "100.0"], ["updated_at", "2016-12-12 16:35:06.744827"], ["id", 9]]
|
3338
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3339
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3340
|
+
[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-12 16:35:06.754221"], ["updated_at", "2016-12-12 16:35:06.754221"]]
|
3341
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3342
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3343
|
+
[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-12 16:35:06.755905"], ["id", 6]]
|
3344
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3345
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3346
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3347
|
+
---------------------------
|
3348
|
+
RecordTest: test_validators
|
3349
|
+
---------------------------
|
3350
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3351
|
+
[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-12 16:35:06.758661"], ["updated_at", "2016-12-12 16:35:06.758661"]]
|
3352
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3353
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3354
|
+
[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-12 16:35:06.760153"], ["updated_at", "2016-12-12 16:35:06.760153"]]
|
3355
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3356
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3357
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3358
|
+
---------------------------------
|
3359
|
+
RecordTest: test_default_currency
|
3360
|
+
---------------------------------
|
3361
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3362
|
+
[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-12 16:35:06.763828"], ["updated_at", "2016-12-12 16:35:06.763828"]]
|
3363
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3364
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3365
|
+
[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-12 16:35:06.765236"], ["updated_at", "2016-12-12 16:35:06.765236"]]
|
3366
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3367
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3368
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3369
|
+
------------------------
|
3370
|
+
RecordTest: test_helpers
|
3371
|
+
------------------------
|
3372
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3373
|
+
[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-12 16:35:06.767537"], ["updated_at", "2016-12-12 16:35:06.767537"]]
|
3374
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3375
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3376
|
+
[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-12 16:35:06.768831"], ["updated_at", "2016-12-12 16:35:06.768831"]]
|
3377
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3378
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3379
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3380
|
+
---------------------------
|
3381
|
+
TaskTest: test_update_rates
|
3382
|
+
---------------------------
|
3383
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3384
|
+
[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", "29.32"], ["created_at", "2016-12-12 16:35:06.794957"], ["updated_at", "2016-12-12 16:35:06.794957"]]
|
3385
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3387
|
+
[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-12 16:35:06.796527"], ["updated_at", "2016-12-12 16:35:06.796527"]]
|
3388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3389
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
3390
|
+
[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]]
|
3391
|
+
[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]]
|
3392
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3393
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3394
|
+
----------------------
|
3395
|
+
RateTest: test_retries
|
3396
|
+
----------------------
|
3397
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3398
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3399
|
+
--------------------
|
3400
|
+
RateTest: test_yahoo
|
3401
|
+
--------------------
|
3402
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3403
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3404
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3405
|
+
----------------------
|
3406
|
+
RateTest: test_retries
|
3407
|
+
----------------------
|
3408
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3409
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3410
|
+
--------------------
|
3411
|
+
RateTest: test_yahoo
|
3412
|
+
--------------------
|
3413
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3414
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3415
|
+
---------------------------
|
3416
|
+
TaskTest: test_update_rates
|
3417
|
+
---------------------------
|
3418
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3419
|
+
[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-12 16:39:31.624396"], ["updated_at", "2016-12-12 16:39:31.624396"]]
|
3420
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3421
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3422
|
+
[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-12 16:39:31.628879"], ["updated_at", "2016-12-12 16:39:31.628879"]]
|
3423
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3424
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
3425
|
+
[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]]
|
3426
|
+
[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]]
|
3427
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3428
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3429
|
+
--------------------
|
3430
|
+
MoneyTest: test_to_s
|
3431
|
+
--------------------
|
3432
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3433
|
+
[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-12 16:39:31.664710"], ["updated_at", "2016-12-12 16:39:31.664710"]]
|
3434
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3435
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3436
|
+
[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-12 16:39:31.666493"], ["updated_at", "2016-12-12 16:39:31.666493"]]
|
3437
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3438
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3439
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3440
|
+
-----------------------------------
|
3441
|
+
MoneyTest: test_to_json_and_as_json
|
3442
|
+
-----------------------------------
|
3443
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3444
|
+
[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-12 16:39:31.677472"], ["updated_at", "2016-12-12 16:39:31.677472"]]
|
3445
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3446
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3447
|
+
[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-12 16:39:31.679118"], ["updated_at", "2016-12-12 16:39:31.679118"]]
|
3448
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3449
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3450
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3451
|
+
-------------------------
|
3452
|
+
MoneyTest: test_positive?
|
3453
|
+
-------------------------
|
3454
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3455
|
+
[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-12 16:39:31.681482"], ["updated_at", "2016-12-12 16:39:31.681482"]]
|
3456
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3457
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3458
|
+
[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-12 16:39:31.682846"], ["updated_at", "2016-12-12 16:39:31.682846"]]
|
3459
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3460
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3461
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3462
|
+
-------------------------
|
3463
|
+
MoneyTest: test_/_and_div
|
3464
|
+
-------------------------
|
3465
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3466
|
+
[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-12 16:39:31.685045"], ["updated_at", "2016-12-12 16:39:31.685045"]]
|
3467
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3468
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3469
|
+
[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-12 16:39:31.686604"], ["updated_at", "2016-12-12 16:39:31.686604"]]
|
3470
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3471
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3472
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3473
|
+
---------------------
|
3474
|
+
MoneyTest: test_zero?
|
3475
|
+
---------------------
|
3476
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3477
|
+
[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-12 16:39:31.689516"], ["updated_at", "2016-12-12 16:39:31.689516"]]
|
3478
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3479
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3480
|
+
[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-12 16:39:31.690902"], ["updated_at", "2016-12-12 16:39:31.690902"]]
|
3481
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3482
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3483
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3484
|
+
---------------------------------
|
3485
|
+
MoneyTest: test_abs_and_magnitude
|
3486
|
+
---------------------------------
|
3487
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3488
|
+
[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-12 16:39:31.693076"], ["updated_at", "2016-12-12 16:39:31.693076"]]
|
3489
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3490
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3491
|
+
[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-12 16:39:31.694472"], ["updated_at", "2016-12-12 16:39:31.694472"]]
|
3492
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3493
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3494
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3495
|
+
----------------------
|
3496
|
+
MoneyTest: test_coerce
|
3497
|
+
----------------------
|
3498
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3499
|
+
[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-12 16:39:31.696971"], ["updated_at", "2016-12-12 16:39:31.696971"]]
|
3500
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3502
|
+
[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", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-12 16:39:31.698590"], ["updated_at", "2016-12-12 16:39:31.698590"]]
|
3503
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3504
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3505
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3506
|
+
----------------------
|
3507
|
+
MoneyTest: test_divmod
|
3508
|
+
----------------------
|
3509
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3510
|
+
[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-12 16:39:31.702256"], ["updated_at", "2016-12-12 16:39:31.702256"]]
|
3511
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3512
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3513
|
+
[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-12 16:39:31.703872"], ["updated_at", "2016-12-12 16:39:31.703872"]]
|
3514
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3515
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3516
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3517
|
+
-------------------
|
3518
|
+
MoneyTest: test_<=>
|
3519
|
+
-------------------
|
3520
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3521
|
+
[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-12 16:39:31.706242"], ["updated_at", "2016-12-12 16:39:31.706242"]]
|
3522
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3523
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3524
|
+
[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-12 16:39:31.707409"], ["updated_at", "2016-12-12 16:39:31.707409"]]
|
3525
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3526
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3527
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3528
|
+
------------------
|
3529
|
+
MoneyTest: test_-@
|
3530
|
+
------------------
|
3531
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3532
|
+
[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-12 16:39:31.709580"], ["updated_at", "2016-12-12 16:39:31.709580"]]
|
3533
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3534
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3535
|
+
[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-12 16:39:31.711091"], ["updated_at", "2016-12-12 16:39:31.711091"]]
|
3536
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3537
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3538
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3539
|
+
----------------------------
|
3540
|
+
MoneyTest: test_%_and_modulo
|
3541
|
+
----------------------------
|
3542
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3543
|
+
[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-12 16:39:31.713474"], ["updated_at", "2016-12-12 16:39:31.713474"]]
|
3544
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3545
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3546
|
+
[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-12 16:39:31.714878"], ["updated_at", "2016-12-12 16:39:31.714878"]]
|
3547
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3548
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3550
|
+
-----------------
|
3551
|
+
MoneyTest: test_-
|
3552
|
+
-----------------
|
3553
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3554
|
+
[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-12 16:39:31.718509"], ["updated_at", "2016-12-12 16:39:31.718509"]]
|
3555
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3557
|
+
[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-12 16:39:31.720199"], ["updated_at", "2016-12-12 16:39:31.720199"]]
|
3558
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3559
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3560
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3561
|
+
---------------------------
|
3562
|
+
MoneyTest: test_exchange_to
|
3563
|
+
---------------------------
|
3564
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3565
|
+
[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-12 16:39:31.723990"], ["updated_at", "2016-12-12 16:39:31.723990"]]
|
3566
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3567
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3568
|
+
[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-12 16:39:31.725346"], ["updated_at", "2016-12-12 16:39:31.725346"]]
|
3569
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3570
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3571
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3572
|
+
-------------------------
|
3573
|
+
MoneyTest: test_negative?
|
3574
|
+
-------------------------
|
3575
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3576
|
+
[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-12 16:39:31.727337"], ["updated_at", "2016-12-12 16:39:31.727337"]]
|
3577
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3578
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3579
|
+
[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-12 16:39:31.728533"], ["updated_at", "2016-12-12 16:39:31.728533"]]
|
3580
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3581
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3582
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3583
|
+
-------------------------
|
3584
|
+
MoneyTest: test_remainder
|
3585
|
+
-------------------------
|
3586
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3587
|
+
[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-12 16:39:31.730424"], ["updated_at", "2016-12-12 16:39:31.730424"]]
|
3588
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3589
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3590
|
+
[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-12 16:39:31.732020"], ["updated_at", "2016-12-12 16:39:31.732020"]]
|
3591
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3592
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3593
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3594
|
+
------------------------
|
3595
|
+
MoneyTest: test_nonzero?
|
3596
|
+
------------------------
|
3597
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3598
|
+
[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-12 16:39:31.735662"], ["updated_at", "2016-12-12 16:39:31.735662"]]
|
3599
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3600
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3601
|
+
[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-12 16:39:31.737200"], ["updated_at", "2016-12-12 16:39:31.737200"]]
|
3602
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3603
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3604
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3605
|
+
-----------------
|
3606
|
+
MoneyTest: test_<
|
3607
|
+
-----------------
|
3608
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3609
|
+
[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-12 16:39:31.739324"], ["updated_at", "2016-12-12 16:39:31.739324"]]
|
3610
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3611
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3612
|
+
[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-12 16:39:31.740490"], ["updated_at", "2016-12-12 16:39:31.740490"]]
|
3613
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3614
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3615
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3616
|
+
-------------------
|
3617
|
+
MoneyTest: test_===
|
3618
|
+
-------------------
|
3619
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3620
|
+
[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-12 16:39:31.742486"], ["updated_at", "2016-12-12 16:39:31.742486"]]
|
3621
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3622
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3623
|
+
[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-12 16:39:31.744091"], ["updated_at", "2016-12-12 16:39:31.744091"]]
|
3624
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3625
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3626
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3627
|
+
-----------------
|
3628
|
+
MoneyTest: test_+
|
3629
|
+
-----------------
|
3630
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3631
|
+
[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-12 16:39:31.746317"], ["updated_at", "2016-12-12 16:39:31.746317"]]
|
3632
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3633
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3634
|
+
[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-12 16:39:31.747794"], ["updated_at", "2016-12-12 16:39:31.747794"]]
|
3635
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3636
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3637
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3638
|
+
-----------------
|
3639
|
+
MoneyTest: test_*
|
3640
|
+
-----------------
|
3641
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3642
|
+
[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-12 16:39:31.751747"], ["updated_at", "2016-12-12 16:39:31.751747"]]
|
3643
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3644
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3645
|
+
[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-12 16:39:31.753161"], ["updated_at", "2016-12-12 16:39:31.753161"]]
|
3646
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3647
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3648
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3649
|
+
---------------------------
|
3650
|
+
GeneratorTest: test_install
|
3651
|
+
---------------------------
|
3652
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3653
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3654
|
+
---------------------------
|
3655
|
+
RecordTest: test_validators
|
3656
|
+
---------------------------
|
3657
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3658
|
+
[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-12 16:39:31.761611"], ["updated_at", "2016-12-12 16:39:31.761611"]]
|
3659
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3660
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3661
|
+
[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-12 16:39:31.763252"], ["updated_at", "2016-12-12 16:39:31.763252"]]
|
3662
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3663
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3664
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3665
|
+
---------------------------------
|
3666
|
+
RecordTest: test_default_currency
|
3667
|
+
---------------------------------
|
3668
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3669
|
+
[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-12 16:39:31.773180"], ["updated_at", "2016-12-12 16:39:31.773180"]]
|
3670
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3671
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3672
|
+
[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-12 16:39:31.774735"], ["updated_at", "2016-12-12 16:39:31.774735"]]
|
3673
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3674
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3675
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3676
|
+
---------------------------
|
3677
|
+
RecordTest: test_persistent
|
3678
|
+
---------------------------
|
3679
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3680
|
+
[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-12 16:39:31.777172"], ["updated_at", "2016-12-12 16:39:31.777172"]]
|
3681
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3682
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3683
|
+
[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-12 16:39:31.778689"], ["updated_at", "2016-12-12 16:39:31.778689"]]
|
3684
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3685
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
3686
|
+
[1m[36mSQL (0.4ms)[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-12 16:39:31.785572"], ["updated_at", "2016-12-12 16:39:31.785572"]]
|
3687
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3688
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3689
|
+
[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-12 16:39:31.788033"], ["id", 10]]
|
3690
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3691
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3692
|
+
[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-12 16:39:31.790458"], ["updated_at", "2016-12-12 16:39:31.790458"]]
|
3693
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3694
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3695
|
+
[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-12 16:39:31.792016"], ["id", 7]]
|
3696
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3697
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3698
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3699
|
+
------------------------
|
3700
|
+
RecordTest: test_helpers
|
3701
|
+
------------------------
|
3702
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3703
|
+
[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-12 16:39:31.794505"], ["updated_at", "2016-12-12 16:39:31.794505"]]
|
3704
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3705
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3706
|
+
[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-12 16:39:31.795874"], ["updated_at", "2016-12-12 16:39:31.795874"]]
|
3707
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3708
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3709
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3710
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3711
|
+
---------------------------
|
3712
|
+
TaskTest: test_update_rates
|
3713
|
+
---------------------------
|
3714
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3715
|
+
[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", "29.32"], ["created_at", "2016-12-12 16:39:46.156850"], ["updated_at", "2016-12-12 16:39:46.156850"]]
|
3716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3717
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3718
|
+
[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-12 16:39:46.160425"], ["updated_at", "2016-12-12 16:39:46.160425"]]
|
3719
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3720
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
3721
|
+
[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]]
|
3722
|
+
[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]]
|
3723
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3724
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3725
|
+
------------------
|
3726
|
+
MoneyTest: test_-@
|
3727
|
+
------------------
|
3728
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3729
|
+
[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-12 16:39:46.191901"], ["updated_at", "2016-12-12 16:39:46.191901"]]
|
3730
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3731
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3732
|
+
[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-12 16:39:46.193731"], ["updated_at", "2016-12-12 16:39:46.193731"]]
|
3733
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3734
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3735
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3736
|
+
-----------------
|
3737
|
+
MoneyTest: test_-
|
3738
|
+
-----------------
|
3739
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3740
|
+
[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-12 16:39:46.196318"], ["updated_at", "2016-12-12 16:39:46.196318"]]
|
3741
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3742
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3743
|
+
[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-12 16:39:46.197746"], ["updated_at", "2016-12-12 16:39:46.197746"]]
|
3744
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3745
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3746
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3747
|
+
-------------------
|
3748
|
+
MoneyTest: test_===
|
3749
|
+
-------------------
|
3750
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3751
|
+
[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-12 16:39:46.201061"], ["updated_at", "2016-12-12 16:39:46.201061"]]
|
3752
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3753
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3754
|
+
[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-12 16:39:46.202978"], ["updated_at", "2016-12-12 16:39:46.202978"]]
|
3755
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3756
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3757
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3758
|
+
-----------------
|
3759
|
+
MoneyTest: test_*
|
3760
|
+
-----------------
|
3761
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3762
|
+
[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-12 16:39:46.205297"], ["updated_at", "2016-12-12 16:39:46.205297"]]
|
3763
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3764
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3765
|
+
[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-12 16:39:46.206792"], ["updated_at", "2016-12-12 16:39:46.206792"]]
|
3766
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3767
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3768
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3769
|
+
--------------------
|
3770
|
+
MoneyTest: test_to_s
|
3771
|
+
--------------------
|
3772
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3773
|
+
[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-12 16:39:46.209351"], ["updated_at", "2016-12-12 16:39:46.209351"]]
|
3774
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3775
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3776
|
+
[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-12 16:39:46.210740"], ["updated_at", "2016-12-12 16:39:46.210740"]]
|
3777
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3778
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3779
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3780
|
+
-----------------------------------
|
3781
|
+
MoneyTest: test_to_json_and_as_json
|
3782
|
+
-----------------------------------
|
3783
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3784
|
+
[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-12 16:39:46.217789"], ["updated_at", "2016-12-12 16:39:46.217789"]]
|
3785
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3786
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3787
|
+
[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-12 16:39:46.219360"], ["updated_at", "2016-12-12 16:39:46.219360"]]
|
3788
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3789
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3790
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3791
|
+
---------------------------------
|
3792
|
+
MoneyTest: test_abs_and_magnitude
|
3793
|
+
---------------------------------
|
3794
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3795
|
+
[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-12 16:39:46.221703"], ["updated_at", "2016-12-12 16:39:46.221703"]]
|
3796
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3797
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3798
|
+
[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-12 16:39:46.223104"], ["updated_at", "2016-12-12 16:39:46.223104"]]
|
3799
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3800
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3801
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3802
|
+
------------------------
|
3803
|
+
MoneyTest: test_nonzero?
|
3804
|
+
------------------------
|
3805
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3806
|
+
[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-12 16:39:46.225333"], ["updated_at", "2016-12-12 16:39:46.225333"]]
|
3807
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3808
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3809
|
+
[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-12 16:39:46.226725"], ["updated_at", "2016-12-12 16:39:46.226725"]]
|
3810
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3811
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3812
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3813
|
+
-------------------------
|
3814
|
+
MoneyTest: test_negative?
|
3815
|
+
-------------------------
|
3816
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3817
|
+
[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-12 16:39:46.229212"], ["updated_at", "2016-12-12 16:39:46.229212"]]
|
3818
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3819
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3820
|
+
[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-12 16:39:46.230613"], ["updated_at", "2016-12-12 16:39:46.230613"]]
|
3821
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3822
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3823
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3824
|
+
---------------------
|
3825
|
+
MoneyTest: test_zero?
|
3826
|
+
---------------------
|
3827
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3828
|
+
[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-12 16:39:46.232792"], ["updated_at", "2016-12-12 16:39:46.232792"]]
|
3829
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3830
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3831
|
+
[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-12 16:39:46.234143"], ["updated_at", "2016-12-12 16:39:46.234143"]]
|
3832
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3833
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3834
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3835
|
+
-----------------
|
3836
|
+
MoneyTest: test_+
|
3837
|
+
-----------------
|
3838
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3839
|
+
[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-12 16:39:46.236619"], ["updated_at", "2016-12-12 16:39:46.236619"]]
|
3840
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3841
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3842
|
+
[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-12 16:39:46.238065"], ["updated_at", "2016-12-12 16:39:46.238065"]]
|
3843
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3844
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3845
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3846
|
+
----------------------
|
3847
|
+
MoneyTest: test_coerce
|
3848
|
+
----------------------
|
3849
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3850
|
+
[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-12 16:39:46.240354"], ["updated_at", "2016-12-12 16:39:46.240354"]]
|
3851
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3852
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3853
|
+
[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-12 16:39:46.241654"], ["updated_at", "2016-12-12 16:39:46.241654"]]
|
3854
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3855
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3856
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3857
|
+
----------------------------
|
3858
|
+
MoneyTest: test_%_and_modulo
|
3859
|
+
----------------------------
|
3860
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3861
|
+
[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-12 16:39:46.243792"], ["updated_at", "2016-12-12 16:39:46.243792"]]
|
3862
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3863
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3864
|
+
[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-12 16:39:46.245356"], ["updated_at", "2016-12-12 16:39:46.245356"]]
|
3865
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3866
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3867
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3868
|
+
---------------------------
|
3869
|
+
MoneyTest: test_exchange_to
|
3870
|
+
---------------------------
|
3871
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3872
|
+
[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-12 16:39:46.247985"], ["updated_at", "2016-12-12 16:39:46.247985"]]
|
3873
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3874
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3875
|
+
[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-12 16:39:46.249398"], ["updated_at", "2016-12-12 16:39:46.249398"]]
|
3876
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3877
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3878
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3879
|
+
-------------------
|
3880
|
+
MoneyTest: test_<=>
|
3881
|
+
-------------------
|
3882
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3883
|
+
[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-12 16:39:46.251700"], ["updated_at", "2016-12-12 16:39:46.251700"]]
|
3884
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3885
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3886
|
+
[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-12 16:39:46.253051"], ["updated_at", "2016-12-12 16:39:46.253051"]]
|
3887
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3888
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3889
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3890
|
+
-------------------------
|
3891
|
+
MoneyTest: test_positive?
|
3892
|
+
-------------------------
|
3893
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3894
|
+
[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-12 16:39:46.255398"], ["updated_at", "2016-12-12 16:39:46.255398"]]
|
3895
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3896
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3897
|
+
[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-12 16:39:46.256678"], ["updated_at", "2016-12-12 16:39:46.256678"]]
|
3898
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3899
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3900
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3901
|
+
-------------------------
|
3902
|
+
MoneyTest: test_remainder
|
3903
|
+
-------------------------
|
3904
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3905
|
+
[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-12 16:39:46.258855"], ["updated_at", "2016-12-12 16:39:46.258855"]]
|
3906
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3907
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3908
|
+
[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-12 16:39:46.260341"], ["updated_at", "2016-12-12 16:39:46.260341"]]
|
3909
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3910
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3911
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3912
|
+
-----------------
|
3913
|
+
MoneyTest: test_<
|
3914
|
+
-----------------
|
3915
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3916
|
+
[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-12 16:39:46.262835"], ["updated_at", "2016-12-12 16:39:46.262835"]]
|
3917
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3918
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3919
|
+
[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-12 16:39:46.264188"], ["updated_at", "2016-12-12 16:39:46.264188"]]
|
3920
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3921
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3922
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3923
|
+
-------------------------
|
3924
|
+
MoneyTest: test_/_and_div
|
3925
|
+
-------------------------
|
3926
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3927
|
+
[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-12 16:39:46.266479"], ["updated_at", "2016-12-12 16:39:46.266479"]]
|
3928
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3929
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3930
|
+
[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-12 16:39:46.267847"], ["updated_at", "2016-12-12 16:39:46.267847"]]
|
3931
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3932
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3933
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3934
|
+
----------------------
|
3935
|
+
MoneyTest: test_divmod
|
3936
|
+
----------------------
|
3937
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3938
|
+
[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-12 16:39:46.270355"], ["updated_at", "2016-12-12 16:39:46.270355"]]
|
3939
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3940
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3941
|
+
[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-12 16:39:46.271655"], ["updated_at", "2016-12-12 16:39:46.271655"]]
|
3942
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3943
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3944
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3945
|
+
---------------------------------
|
3946
|
+
RecordTest: test_default_currency
|
3947
|
+
---------------------------------
|
3948
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3949
|
+
[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-12 16:39:46.274258"], ["updated_at", "2016-12-12 16:39:46.274258"]]
|
3950
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3951
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3952
|
+
[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-12 16:39:46.275487"], ["updated_at", "2016-12-12 16:39:46.275487"]]
|
3953
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3954
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3955
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3956
|
+
------------------------
|
3957
|
+
RecordTest: test_helpers
|
3958
|
+
------------------------
|
3959
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3960
|
+
[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-12 16:39:46.282231"], ["updated_at", "2016-12-12 16:39:46.282231"]]
|
3961
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3963
|
+
[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-12 16:39:46.283784"], ["updated_at", "2016-12-12 16:39:46.283784"]]
|
3964
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3965
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3966
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3967
|
+
---------------------------
|
3968
|
+
RecordTest: test_persistent
|
3969
|
+
---------------------------
|
3970
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3971
|
+
[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-12 16:39:46.286061"], ["updated_at", "2016-12-12 16:39:46.286061"]]
|
3972
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3973
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3974
|
+
[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-12 16:39:46.287384"], ["updated_at", "2016-12-12 16:39:46.287384"]]
|
3975
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3976
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3977
|
+
[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-12 16:39:46.292807"], ["updated_at", "2016-12-12 16:39:46.292807"]]
|
3978
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3979
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3980
|
+
[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-12 16:39:46.294776"], ["id", 11]]
|
3981
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3982
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3983
|
+
[1m[36mSQL (0.2ms)[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-12 16:39:46.296819"], ["updated_at", "2016-12-12 16:39:46.296819"]]
|
3984
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3985
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3986
|
+
[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-12 16:39:46.298342"], ["id", 8]]
|
3987
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3988
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3989
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3990
|
+
---------------------------
|
3991
|
+
RecordTest: test_validators
|
3992
|
+
---------------------------
|
3993
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3994
|
+
[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-12 16:39:46.300692"], ["updated_at", "2016-12-12 16:39:46.300692"]]
|
3995
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3996
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3997
|
+
[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-12 16:39:46.302137"], ["updated_at", "2016-12-12 16:39:46.302137"]]
|
3998
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3999
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4000
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4001
|
+
---------------------------
|
4002
|
+
GeneratorTest: test_install
|
4003
|
+
---------------------------
|
4004
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4005
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4006
|
+
----------------------
|
4007
|
+
RateTest: test_retries
|
4008
|
+
----------------------
|
4009
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4010
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4011
|
+
--------------------
|
4012
|
+
RateTest: test_yahoo
|
4013
|
+
--------------------
|
4014
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|