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