acts_as_duration 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +32 -0
  5. data/lib/acts_as_duration.rb +5 -0
  6. data/lib/acts_as_duration/base.rb +42 -0
  7. data/lib/acts_as_duration/core_ext.rb +12 -0
  8. data/lib/acts_as_duration/version.rb +3 -0
  9. data/lib/tasks/acts_as_duration_tasks.rake +4 -0
  10. data/test/acts_as_duration_test.rb +52 -0
  11. data/test/dummy/README.rdoc +28 -0
  12. data/test/dummy/Rakefile +6 -0
  13. data/test/dummy/app/assets/javascripts/application.js +13 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  15. data/test/dummy/app/controllers/application_controller.rb +5 -0
  16. data/test/dummy/app/helpers/application_helper.rb +2 -0
  17. data/test/dummy/app/models/foobar.rb +4 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  19. data/test/dummy/bin/bundle +3 -0
  20. data/test/dummy/bin/rails +4 -0
  21. data/test/dummy/bin/rake +4 -0
  22. data/test/dummy/config.ru +4 -0
  23. data/test/dummy/config/application.rb +23 -0
  24. data/test/dummy/config/boot.rb +5 -0
  25. data/test/dummy/config/database.yml +25 -0
  26. data/test/dummy/config/environment.rb +5 -0
  27. data/test/dummy/config/environments/development.rb +29 -0
  28. data/test/dummy/config/environments/production.rb +80 -0
  29. data/test/dummy/config/environments/test.rb +36 -0
  30. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  31. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  32. data/test/dummy/config/initializers/inflections.rb +16 -0
  33. data/test/dummy/config/initializers/mime_types.rb +5 -0
  34. data/test/dummy/config/initializers/secret_token.rb +12 -0
  35. data/test/dummy/config/initializers/session_store.rb +3 -0
  36. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/test/dummy/config/locales/en.yml +23 -0
  38. data/test/dummy/config/routes.rb +56 -0
  39. data/test/dummy/db/development.sqlite3 +0 -0
  40. data/test/dummy/db/migrate/20140424102459_create_foobars.rb +9 -0
  41. data/test/dummy/db/schema.rb +22 -0
  42. data/test/dummy/db/test.sqlite3 +0 -0
  43. data/test/dummy/log/development.log +14 -0
  44. data/test/dummy/log/test.log +848 -0
  45. data/test/dummy/public/404.html +58 -0
  46. data/test/dummy/public/422.html +58 -0
  47. data/test/dummy/public/500.html +57 -0
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/test/fixtures/foobars.yml +7 -0
  50. data/test/dummy/test/models/foobar_test.rb +7 -0
  51. data/test/test_helper.rb +15 -0
  52. metadata +165 -0
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '84debe46612617917c601f668945d06615014b65913ee05701ec831c49f5507c271d9ea9a1eb0326753f43cec5bbc3b8a23846a35a0d8466a67c9bcdde9fde88'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,9 @@
1
+ class CreateFoobars < ActiveRecord::Migration
2
+ def change
3
+ create_table :foobars do |t|
4
+ t.integer :test_seconds
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140424102459) do
15
+
16
+ create_table "foobars", force: true do |t|
17
+ t.integer "test_seconds"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ end
@@ -0,0 +1,14 @@
1
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateFoobars (20140424102459)
5
+  (0.1ms) begin transaction
6
+  (0.5ms) CREATE TABLE "foobars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "test_seconds" integer, "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140424102459"]]
8
+  (1.2ms) commit transaction
9
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+  (1.4ms) CREATE TABLE "foobars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "test_seconds" integer, "created_at" datetime, "updated_at" datetime) 
11
+  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13
+  (0.2ms) SELECT version FROM "schema_migrations"
14
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140424102459')
@@ -0,0 +1,848 @@
1
+  (0.3ms) begin transaction
2
+ --------------------------------------------------------------------
3
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
4
+ --------------------------------------------------------------------
5
+  (0.1ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ---------------------------------------------------------
8
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
9
+ ---------------------------------------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.2ms) begin transaction
12
+ --------------------------------------------------------------------
13
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
14
+ --------------------------------------------------------------------
15
+  (0.1ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ ---------------------------------------------------------
18
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
19
+ ---------------------------------------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.2ms) begin transaction
22
+ --------------------------------------------------------------------
23
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
24
+ --------------------------------------------------------------------
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ ---------------------------------------------------------
28
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
29
+ ---------------------------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.3ms) begin transaction
32
+ --------------------------------------------------------------------
33
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
34
+ --------------------------------------------------------------------
35
+  (0.1ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ ---------------------------------------------------------
38
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
39
+ ---------------------------------------------------------
40
+  (0.1ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ ----------------------------------------------------------------
43
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours
44
+ ----------------------------------------------------------------
45
+  (0.1ms) rollback transaction
46
+  (0.4ms) begin transaction
47
+ --------------------------------------------------------------------
48
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
49
+ --------------------------------------------------------------------
50
+  (0.1ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ ---------------------------------------------------------
53
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
54
+ ---------------------------------------------------------
55
+  (0.1ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ ----------------------------------------------------------------
58
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours
59
+ ----------------------------------------------------------------
60
+  (0.2ms) rollback transaction
61
+  (0.3ms) begin transaction
62
+ --------------------------------------------------------------------
63
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
64
+ --------------------------------------------------------------------
65
+  (0.1ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ ---------------------------------------------------------
68
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
69
+ ---------------------------------------------------------
70
+  (0.0ms) rollback transaction
71
+  (0.0ms) begin transaction
72
+ ----------------------------------------------------------------
73
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours
74
+ ----------------------------------------------------------------
75
+  (0.2ms) rollback transaction
76
+  (0.4ms) begin transaction
77
+ --------------------------------------------------------------------
78
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
79
+ --------------------------------------------------------------------
80
+  (0.1ms) rollback transaction
81
+  (0.1ms) begin transaction
82
+ ---------------------------------------------------------
83
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
84
+ ---------------------------------------------------------
85
+  (0.1ms) rollback transaction
86
+  (0.0ms) begin transaction
87
+ ----------------------------------------------------------------
88
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours
89
+ ----------------------------------------------------------------
90
+  (0.1ms) rollback transaction
91
+  (0.5ms) begin transaction
92
+ --------------------------------------------------------------------
93
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
94
+ --------------------------------------------------------------------
95
+  (0.1ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ ---------------------------------------------------------
98
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
99
+ ---------------------------------------------------------
100
+  (0.1ms) rollback transaction
101
+  (0.1ms) begin transaction
102
+ ----------------------------------------------------------------
103
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours
104
+ ----------------------------------------------------------------
105
+  (0.0ms) SAVEPOINT active_record_1
106
+ SQL (2.4ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 10:35:35 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 10:35:35 UTC +00:00]]
107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108
+ Foobar Load (0.1ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
109
+  (0.6ms) rollback transaction
110
+  (0.4ms) begin transaction
111
+ --------------------------------------------------------------------
112
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
113
+ --------------------------------------------------------------------
114
+  (0.1ms) rollback transaction
115
+  (0.1ms) begin transaction
116
+ ---------------------------------------------------------
117
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
118
+ ---------------------------------------------------------
119
+  (0.1ms) rollback transaction
120
+  (0.1ms) begin transaction
121
+ -------------------------------------------------------------------
122
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
123
+ -------------------------------------------------------------------
124
+  (0.2ms) rollback transaction
125
+  (0.1ms) begin transaction
126
+ -----------------------------------------------------------------------------
127
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
128
+ -----------------------------------------------------------------------------
129
+  (0.1ms) rollback transaction
130
+  (0.1ms) begin transaction
131
+ --------------------------------------------------------------------------
132
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
133
+ --------------------------------------------------------------------------
134
+  (0.0ms) SAVEPOINT active_record_1
135
+ SQL (6.3ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 10:46:48 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 10:46:48 UTC +00:00]]
136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
138
+  (0.5ms) rollback transaction
139
+  (2.1ms) CREATE TABLE "foobars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "test_seconds" integer, "created_at" datetime, "updated_at" datetime) 
140
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
141
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
142
+  (0.2ms) SELECT version FROM "schema_migrations"
143
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140424102459')
144
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
145
+  (0.3ms) begin transaction
146
+ --------------------------------------------------------------------
147
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
148
+ --------------------------------------------------------------------
149
+  (0.1ms) rollback transaction
150
+  (0.1ms) begin transaction
151
+ ---------------------------------------------------------
152
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
153
+ ---------------------------------------------------------
154
+  (0.1ms) rollback transaction
155
+  (0.0ms) begin transaction
156
+ -------------------------------------------------------------------
157
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
158
+ -------------------------------------------------------------------
159
+  (0.2ms) rollback transaction
160
+  (0.1ms) begin transaction
161
+ -----------------------------------------------------------------------------
162
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
163
+ -----------------------------------------------------------------------------
164
+  (0.4ms) begin transaction
165
+ --------------------------------------------------------------------
166
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
167
+ --------------------------------------------------------------------
168
+  (0.1ms) rollback transaction
169
+  (0.1ms) begin transaction
170
+ ---------------------------------------------------------
171
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
172
+ ---------------------------------------------------------
173
+  (0.0ms) rollback transaction
174
+  (0.0ms) begin transaction
175
+ -------------------------------------------------------------------
176
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
177
+ -------------------------------------------------------------------
178
+  (0.1ms) rollback transaction
179
+  (0.0ms) begin transaction
180
+ -----------------------------------------------------------------------------
181
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
182
+ -----------------------------------------------------------------------------
183
+  (0.4ms) begin transaction
184
+ --------------------------------------------------------------------
185
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
186
+ --------------------------------------------------------------------
187
+  (0.1ms) rollback transaction
188
+  (0.1ms) begin transaction
189
+ ---------------------------------------------------------
190
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
191
+ ---------------------------------------------------------
192
+  (0.0ms) rollback transaction
193
+  (0.0ms) begin transaction
194
+ -------------------------------------------------------------------
195
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
196
+ -------------------------------------------------------------------
197
+  (0.5ms) rollback transaction
198
+  (0.1ms) begin transaction
199
+ -----------------------------------------------------------------------------
200
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
201
+ -----------------------------------------------------------------------------
202
+  (0.4ms) begin transaction
203
+ --------------------------------------------------------------------
204
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
205
+ --------------------------------------------------------------------
206
+  (0.1ms) rollback transaction
207
+  (0.1ms) begin transaction
208
+ ---------------------------------------------------------
209
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
210
+ ---------------------------------------------------------
211
+  (0.1ms) rollback transaction
212
+  (0.1ms) begin transaction
213
+ -----------------------------------------------------------------------------
214
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
215
+ -----------------------------------------------------------------------------
216
+  (0.2ms) rollback transaction
217
+  (0.1ms) begin transaction
218
+ --------------------------------------------------------------------------
219
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
220
+ --------------------------------------------------------------------------
221
+  (0.3ms) begin transaction
222
+ --------------------------------------------------------------------
223
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
224
+ --------------------------------------------------------------------
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ ---------------------------------------------------------
228
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
229
+ ---------------------------------------------------------
230
+  (0.1ms) rollback transaction
231
+  (0.0ms) begin transaction
232
+ -------------------------------------------------------------------
233
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
234
+ -------------------------------------------------------------------
235
+  (0.1ms) rollback transaction
236
+  (0.0ms) begin transaction
237
+ -----------------------------------------------------------------------------
238
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
239
+ -----------------------------------------------------------------------------
240
+  (0.1ms) rollback transaction
241
+  (0.1ms) begin transaction
242
+ --------------------------------------------------------------------------
243
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
244
+ --------------------------------------------------------------------------
245
+  (0.0ms) SAVEPOINT active_record_1
246
+ SQL (3.3ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 11:02:37 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 11:02:37 UTC +00:00]]
247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
248
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
249
+  (0.5ms) rollback transaction
250
+  (0.3ms) begin transaction
251
+ --------------------------------------------------------------------
252
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
253
+ --------------------------------------------------------------------
254
+  (0.1ms) rollback transaction
255
+  (0.1ms) begin transaction
256
+ ---------------------------------------------------------
257
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
258
+ ---------------------------------------------------------
259
+  (0.1ms) rollback transaction
260
+  (0.1ms) begin transaction
261
+ -------------------------------------------------------------------
262
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
263
+ -------------------------------------------------------------------
264
+  (0.1ms) rollback transaction
265
+  (0.1ms) begin transaction
266
+ -----------------------------------------------------------------------------
267
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
268
+ -----------------------------------------------------------------------------
269
+  (0.2ms) rollback transaction
270
+  (0.1ms) begin transaction
271
+ --------------------------------------------------------------------------
272
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
273
+ --------------------------------------------------------------------------
274
+  (0.0ms) SAVEPOINT active_record_1
275
+ SQL (2.6ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 11:04:01 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 11:04:01 UTC +00:00]]
276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
277
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
278
+  (0.5ms) rollback transaction
279
+  (0.3ms) begin transaction
280
+ --------------------------------------------------------------------
281
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
282
+ --------------------------------------------------------------------
283
+  (0.1ms) rollback transaction
284
+  (0.1ms) begin transaction
285
+ ---------------------------------------------------------
286
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
287
+ ---------------------------------------------------------
288
+  (0.1ms) rollback transaction
289
+  (0.1ms) begin transaction
290
+ -------------------------------------------------------------------
291
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
292
+ -------------------------------------------------------------------
293
+  (0.1ms) rollback transaction
294
+  (0.1ms) begin transaction
295
+ -----------------------------------------------------------------------------
296
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
297
+ -----------------------------------------------------------------------------
298
+  (0.3ms) rollback transaction
299
+  (0.1ms) begin transaction
300
+ --------------------------------------------------------------------------
301
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
302
+ --------------------------------------------------------------------------
303
+  (0.1ms) SAVEPOINT active_record_1
304
+ SQL (4.5ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 11:05:25 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 11:05:25 UTC +00:00]]
305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
306
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
307
+  (0.6ms) rollback transaction
308
+  (0.4ms) begin transaction
309
+ --------------------------------------------------------------------
310
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
311
+ --------------------------------------------------------------------
312
+  (0.1ms) rollback transaction
313
+  (0.1ms) begin transaction
314
+ ---------------------------------------------------------
315
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
316
+ ---------------------------------------------------------
317
+  (0.1ms) rollback transaction
318
+  (0.0ms) begin transaction
319
+ -------------------------------------------------------------------
320
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
321
+ -------------------------------------------------------------------
322
+  (0.2ms) rollback transaction
323
+  (0.1ms) begin transaction
324
+ -----------------------------------------------------------------------------
325
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
326
+ -----------------------------------------------------------------------------
327
+  (0.1ms) rollback transaction
328
+  (0.1ms) begin transaction
329
+ --------------------------------------------------------------------------
330
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
331
+ --------------------------------------------------------------------------
332
+  (0.0ms) SAVEPOINT active_record_1
333
+ SQL (2.6ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 11:06:50 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 11:06:50 UTC +00:00]]
334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
335
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
336
+  (0.5ms) rollback transaction
337
+  (0.6ms) begin transaction
338
+ --------------------------------------------------------------------
339
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
340
+ --------------------------------------------------------------------
341
+  (0.1ms) rollback transaction
342
+  (0.1ms) begin transaction
343
+ ---------------------------------------------------------
344
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
345
+ ---------------------------------------------------------
346
+  (0.1ms) rollback transaction
347
+  (0.1ms) begin transaction
348
+ -------------------------------------------------------------------
349
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
350
+ -------------------------------------------------------------------
351
+  (0.4ms) rollback transaction
352
+  (0.1ms) begin transaction
353
+ -----------------------------------------------------------------------------
354
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
355
+ -----------------------------------------------------------------------------
356
+  (0.1ms) rollback transaction
357
+  (0.0ms) begin transaction
358
+ --------------------------------------------------------------------------
359
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
360
+ --------------------------------------------------------------------------
361
+  (0.1ms) SAVEPOINT active_record_1
362
+ SQL (3.7ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 11:08:09 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 11:08:09 UTC +00:00]]
363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
364
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
365
+  (0.5ms) rollback transaction
366
+  (0.5ms) begin transaction
367
+ --------------------------------------------------------------------
368
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
369
+ --------------------------------------------------------------------
370
+  (0.1ms) rollback transaction
371
+  (0.1ms) begin transaction
372
+ ---------------------------------------------------------
373
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
374
+ ---------------------------------------------------------
375
+  (0.1ms) rollback transaction
376
+  (0.0ms) begin transaction
377
+ -------------------------------------------------------------------
378
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
379
+ -------------------------------------------------------------------
380
+  (0.1ms) rollback transaction
381
+  (0.1ms) begin transaction
382
+ -----------------------------------------------------------------------------
383
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
384
+ -----------------------------------------------------------------------------
385
+  (0.1ms) rollback transaction
386
+  (0.1ms) begin transaction
387
+ --------------------------------------------------------------------------
388
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
389
+ --------------------------------------------------------------------------
390
+  (0.1ms) rollback transaction
391
+  (0.4ms) begin transaction
392
+ --------------------------------------------------------------------
393
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
394
+ --------------------------------------------------------------------
395
+  (0.1ms) rollback transaction
396
+  (0.1ms) begin transaction
397
+ ---------------------------------------------------------
398
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
399
+ ---------------------------------------------------------
400
+  (0.0ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+ -------------------------------------------------------------------
403
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
404
+ -------------------------------------------------------------------
405
+  (0.1ms) rollback transaction
406
+  (0.0ms) begin transaction
407
+ -----------------------------------------------------------------------------
408
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
409
+ -----------------------------------------------------------------------------
410
+  (0.0ms) rollback transaction
411
+  (0.1ms) begin transaction
412
+ --------------------------------------------------------------------------
413
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
414
+ --------------------------------------------------------------------------
415
+  (0.1ms) rollback transaction
416
+  (0.3ms) begin transaction
417
+ --------------------------------------------------------------------
418
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
419
+ --------------------------------------------------------------------
420
+  (0.1ms) rollback transaction
421
+  (0.1ms) begin transaction
422
+ ---------------------------------------------------------
423
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
424
+ ---------------------------------------------------------
425
+  (0.0ms) rollback transaction
426
+  (0.0ms) begin transaction
427
+ -------------------------------------------------------------------
428
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
429
+ -------------------------------------------------------------------
430
+  (0.2ms) rollback transaction
431
+  (0.1ms) begin transaction
432
+ -----------------------------------------------------------------------------
433
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
434
+ -----------------------------------------------------------------------------
435
+  (0.1ms) rollback transaction
436
+  (0.1ms) begin transaction
437
+ --------------------------------------------------------------------------
438
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
439
+ --------------------------------------------------------------------------
440
+  (0.0ms) SAVEPOINT active_record_1
441
+ SQL (7.7ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:01:10 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:01:10 UTC +00:00]]
442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
443
+ Foobar Load (0.1ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
444
+  (0.5ms) rollback transaction
445
+  (0.4ms) begin transaction
446
+ --------------------------------------------------------------------
447
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
448
+ --------------------------------------------------------------------
449
+  (0.1ms) rollback transaction
450
+  (0.1ms) begin transaction
451
+ ---------------------------------------------------------
452
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
453
+ ---------------------------------------------------------
454
+  (0.1ms) rollback transaction
455
+  (0.1ms) begin transaction
456
+ -------------------------------------------------------------------
457
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
458
+ -------------------------------------------------------------------
459
+  (0.1ms) rollback transaction
460
+  (0.1ms) begin transaction
461
+ -----------------------------------------------------------------------------
462
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
463
+ -----------------------------------------------------------------------------
464
+  (0.1ms) rollback transaction
465
+  (0.1ms) begin transaction
466
+ --------------------------------------------------------------------------
467
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
468
+ --------------------------------------------------------------------------
469
+  (0.1ms) rollback transaction
470
+  (0.5ms) begin transaction
471
+ --------------------------------------------------------------------
472
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
473
+ --------------------------------------------------------------------
474
+  (0.1ms) rollback transaction
475
+  (0.1ms) begin transaction
476
+ ---------------------------------------------------------
477
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
478
+ ---------------------------------------------------------
479
+  (0.0ms) rollback transaction
480
+  (0.1ms) begin transaction
481
+ -------------------------------------------------------------------
482
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
483
+ -------------------------------------------------------------------
484
+  (0.3ms) rollback transaction
485
+  (0.1ms) begin transaction
486
+ -----------------------------------------------------------------------------
487
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
488
+ -----------------------------------------------------------------------------
489
+  (0.1ms) rollback transaction
490
+  (0.0ms) begin transaction
491
+ --------------------------------------------------------------------------
492
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
493
+ --------------------------------------------------------------------------
494
+  (0.0ms) SAVEPOINT active_record_1
495
+ SQL (3.3ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:11:11 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:11:11 UTC +00:00]]
496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
497
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
498
+  (0.6ms) rollback transaction
499
+  (0.3ms) begin transaction
500
+ --------------------------------------------------------------------
501
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
502
+ --------------------------------------------------------------------
503
+  (0.1ms) rollback transaction
504
+  (0.1ms) begin transaction
505
+ ---------------------------------------------------------
506
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
507
+ ---------------------------------------------------------
508
+  (0.0ms) rollback transaction
509
+  (0.0ms) begin transaction
510
+ -------------------------------------------------------------------
511
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
512
+ -------------------------------------------------------------------
513
+  (0.2ms) rollback transaction
514
+  (0.1ms) begin transaction
515
+ -----------------------------------------------------------------------------
516
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
517
+ -----------------------------------------------------------------------------
518
+  (0.1ms) rollback transaction
519
+  (0.1ms) begin transaction
520
+ --------------------------------------------------------------------------
521
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
522
+ --------------------------------------------------------------------------
523
+  (0.0ms) SAVEPOINT active_record_1
524
+ SQL (3.8ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:16:14 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:16:14 UTC +00:00]]
525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
526
+ Foobar Load (0.1ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
527
+  (0.7ms) rollback transaction
528
+  (0.6ms) begin transaction
529
+ --------------------------------------------------------------------
530
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
531
+ --------------------------------------------------------------------
532
+  (0.1ms) rollback transaction
533
+  (0.1ms) begin transaction
534
+ ---------------------------------------------------------
535
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
536
+ ---------------------------------------------------------
537
+  (0.0ms) rollback transaction
538
+  (0.1ms) begin transaction
539
+ -------------------------------------------------------------------
540
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
541
+ -------------------------------------------------------------------
542
+  (0.2ms) rollback transaction
543
+  (0.1ms) begin transaction
544
+ -----------------------------------------------------------------------------
545
+ ActsAsDurationTest: test_converts_from_seconds_to_custom_conversion_and_saves
546
+ -----------------------------------------------------------------------------
547
+  (0.1ms) rollback transaction
548
+  (0.1ms) begin transaction
549
+ --------------------------------------------------------------------------
550
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
551
+ --------------------------------------------------------------------------
552
+  (0.0ms) SAVEPOINT active_record_1
553
+ SQL (5.6ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:20:24 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:20:24 UTC +00:00]]
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
556
+  (0.6ms) rollback transaction
557
+  (0.3ms) begin transaction
558
+ --------------------------------------------------------------------
559
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
560
+ --------------------------------------------------------------------
561
+  (0.1ms) rollback transaction
562
+  (0.1ms) begin transaction
563
+ ---------------------------------------------------------
564
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
565
+ ---------------------------------------------------------
566
+  (0.0ms) rollback transaction
567
+  (0.0ms) begin transaction
568
+ -------------------------------------------------------------------
569
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
570
+ -------------------------------------------------------------------
571
+  (0.3ms) rollback transaction
572
+  (0.1ms) begin transaction
573
+ --------------------------------------------------------------------------
574
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
575
+ --------------------------------------------------------------------------
576
+  (0.1ms) SAVEPOINT active_record_1
577
+ SQL (3.9ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:20:48 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:20:48 UTC +00:00]]
578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
579
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
580
+  (0.5ms) rollback transaction
581
+  (0.3ms) begin transaction
582
+ --------------------------------------------------------------------
583
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
584
+ --------------------------------------------------------------------
585
+  (0.1ms) rollback transaction
586
+  (0.1ms) begin transaction
587
+ ---------------------------------------------------------
588
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
589
+ ---------------------------------------------------------
590
+  (0.1ms) rollback transaction
591
+  (0.1ms) begin transaction
592
+ -------------------------------------------------------------------
593
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
594
+ -------------------------------------------------------------------
595
+  (0.1ms) rollback transaction
596
+  (0.1ms) begin transaction
597
+ --------------------------------------------------------------------------
598
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
599
+ --------------------------------------------------------------------------
600
+  (0.1ms) rollback transaction
601
+  (0.3ms) begin transaction
602
+ --------------------------------------------------------------------
603
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
604
+ --------------------------------------------------------------------
605
+  (0.1ms) rollback transaction
606
+  (0.1ms) begin transaction
607
+ ---------------------------------------------------------
608
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
609
+ ---------------------------------------------------------
610
+  (0.0ms) rollback transaction
611
+  (0.0ms) begin transaction
612
+ -------------------------------------------------------------------
613
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
614
+ -------------------------------------------------------------------
615
+  (0.1ms) rollback transaction
616
+  (0.0ms) begin transaction
617
+ --------------------------------------------------------------------------
618
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
619
+ --------------------------------------------------------------------------
620
+  (0.1ms) rollback transaction
621
+  (0.3ms) begin transaction
622
+ --------------------------------------------------------------------
623
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
624
+ --------------------------------------------------------------------
625
+  (0.1ms) rollback transaction
626
+  (0.1ms) begin transaction
627
+ ---------------------------------------------------------
628
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
629
+ ---------------------------------------------------------
630
+  (0.0ms) rollback transaction
631
+  (0.0ms) begin transaction
632
+ -------------------------------------------------------------------
633
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
634
+ -------------------------------------------------------------------
635
+  (0.2ms) rollback transaction
636
+  (0.1ms) begin transaction
637
+ --------------------------------------------------------------------------
638
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
639
+ --------------------------------------------------------------------------
640
+  (0.1ms) SAVEPOINT active_record_1
641
+ SQL (4.3ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:28:19 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:28:19 UTC +00:00]]
642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
643
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
644
+  (0.6ms) rollback transaction
645
+  (0.3ms) begin transaction
646
+ --------------------------------------------------------------------
647
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
648
+ --------------------------------------------------------------------
649
+  (0.1ms) rollback transaction
650
+  (0.1ms) begin transaction
651
+ ---------------------------------------------------------
652
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
653
+ ---------------------------------------------------------
654
+  (0.0ms) rollback transaction
655
+  (0.1ms) begin transaction
656
+ -------------------------------------------------------------------
657
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
658
+ -------------------------------------------------------------------
659
+  (0.1ms) rollback transaction
660
+  (0.1ms) begin transaction
661
+ --------------------------------------------------------------------------
662
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
663
+ --------------------------------------------------------------------------
664
+  (0.1ms) rollback transaction
665
+  (0.3ms) begin transaction
666
+ --------------------------------------------------------------------
667
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
668
+ --------------------------------------------------------------------
669
+  (0.1ms) rollback transaction
670
+  (0.1ms) begin transaction
671
+ ---------------------------------------------------------
672
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
673
+ ---------------------------------------------------------
674
+  (0.0ms) rollback transaction
675
+  (0.0ms) begin transaction
676
+ -------------------------------------------------------------------
677
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
678
+ -------------------------------------------------------------------
679
+  (0.2ms) rollback transaction
680
+  (0.1ms) begin transaction
681
+ --------------------------------------------------------------------------
682
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
683
+ --------------------------------------------------------------------------
684
+  (0.1ms) SAVEPOINT active_record_1
685
+ SQL (5.3ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:29:40 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:29:40 UTC +00:00]]
686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
687
+ Foobar Load (0.3ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
688
+  (0.7ms) rollback transaction
689
+  (0.4ms) begin transaction
690
+ --------------------------------------------------------------------
691
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
692
+ --------------------------------------------------------------------
693
+  (0.1ms) rollback transaction
694
+  (0.1ms) begin transaction
695
+ ---------------------------------------------------------
696
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
697
+ ---------------------------------------------------------
698
+  (0.1ms) rollback transaction
699
+  (0.1ms) begin transaction
700
+ -------------------------------------------------------------------
701
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
702
+ -------------------------------------------------------------------
703
+  (0.1ms) rollback transaction
704
+  (0.1ms) begin transaction
705
+ --------------------------------------------------------------------------
706
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
707
+ --------------------------------------------------------------------------
708
+  (0.0ms) rollback transaction
709
+  (0.3ms) begin transaction
710
+ --------------------------------------------------------------------
711
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
712
+ --------------------------------------------------------------------
713
+  (0.1ms) rollback transaction
714
+  (0.1ms) begin transaction
715
+ ---------------------------------------------------------
716
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
717
+ ---------------------------------------------------------
718
+  (0.0ms) rollback transaction
719
+  (0.1ms) begin transaction
720
+ -------------------------------------------------------------------
721
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
722
+ -------------------------------------------------------------------
723
+  (0.2ms) rollback transaction
724
+  (0.1ms) begin transaction
725
+ --------------------------------------------------------------------------
726
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
727
+ --------------------------------------------------------------------------
728
+  (0.1ms) SAVEPOINT active_record_1
729
+ SQL (2.7ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:31:08 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:31:08 UTC +00:00]]
730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
731
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
732
+  (0.5ms) rollback transaction
733
+  (0.5ms) begin transaction
734
+ --------------------------------------------------------------------
735
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
736
+ --------------------------------------------------------------------
737
+  (0.1ms) rollback transaction
738
+  (0.1ms) begin transaction
739
+ ---------------------------------------------------------
740
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
741
+ ---------------------------------------------------------
742
+  (0.1ms) rollback transaction
743
+  (0.1ms) begin transaction
744
+ -------------------------------------------------------------------
745
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
746
+ -------------------------------------------------------------------
747
+  (0.1ms) rollback transaction
748
+  (0.1ms) begin transaction
749
+ --------------------------------------------------------------------------
750
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
751
+ --------------------------------------------------------------------------
752
+  (0.1ms) rollback transaction
753
+  (0.4ms) begin transaction
754
+ --------------------------------------------------------------------
755
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
756
+ --------------------------------------------------------------------
757
+  (0.2ms) rollback transaction
758
+  (0.1ms) begin transaction
759
+ ---------------------------------------------------------
760
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
761
+ ---------------------------------------------------------
762
+  (0.1ms) rollback transaction
763
+  (0.1ms) begin transaction
764
+ -------------------------------------------------------------------
765
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
766
+ -------------------------------------------------------------------
767
+  (0.2ms) rollback transaction
768
+  (0.1ms) begin transaction
769
+ --------------------------------------------------------------------------
770
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
771
+ --------------------------------------------------------------------------
772
+  (0.1ms) SAVEPOINT active_record_1
773
+ SQL (4.0ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:37:29 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:37:29 UTC +00:00]]
774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
775
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
776
+  (0.6ms) rollback transaction
777
+  (0.4ms) begin transaction
778
+ --------------------------------------------------------------------
779
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
780
+ --------------------------------------------------------------------
781
+  (0.2ms) rollback transaction
782
+  (0.1ms) begin transaction
783
+ ---------------------------------------------------------
784
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
785
+ ---------------------------------------------------------
786
+  (0.1ms) rollback transaction
787
+  (0.1ms) begin transaction
788
+ -------------------------------------------------------------------
789
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
790
+ -------------------------------------------------------------------
791
+  (0.3ms) rollback transaction
792
+  (0.1ms) begin transaction
793
+ --------------------------------------------------------------------------
794
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
795
+ --------------------------------------------------------------------------
796
+  (0.1ms) SAVEPOINT active_record_1
797
+ SQL (4.1ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:38:01 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:38:01 UTC +00:00]]
798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
799
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
800
+  (0.6ms) rollback transaction
801
+  (0.3ms) begin transaction
802
+ --------------------------------------------------------------------
803
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
804
+ --------------------------------------------------------------------
805
+  (0.1ms) rollback transaction
806
+  (0.1ms) begin transaction
807
+ ---------------------------------------------------------
808
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
809
+ ---------------------------------------------------------
810
+  (0.0ms) rollback transaction
811
+  (0.1ms) begin transaction
812
+ -------------------------------------------------------------------
813
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
814
+ -------------------------------------------------------------------
815
+  (0.1ms) rollback transaction
816
+  (0.1ms) begin transaction
817
+ --------------------------------------------------------------------------
818
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
819
+ --------------------------------------------------------------------------
820
+  (0.1ms) SAVEPOINT active_record_1
821
+ SQL (3.6ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 12:38:11 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 12:38:11 UTC +00:00]]
822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
823
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
824
+  (0.5ms) rollback transaction
825
+  (0.5ms) begin transaction
826
+ --------------------------------------------------------------------
827
+ ActsAsDurationTest: test_adds_additional_conversion_methods_to_model
828
+ --------------------------------------------------------------------
829
+  (0.2ms) rollback transaction
830
+  (0.1ms) begin transaction
831
+ ---------------------------------------------------------
832
+ ActsAsDurationTest: test_adds_conversion_methods_to_model
833
+ ---------------------------------------------------------
834
+  (0.1ms) rollback transaction
835
+  (0.1ms) begin transaction
836
+ -------------------------------------------------------------------
837
+ ActsAsDurationTest: test_converts_from_minutes_to_seconds_and_hours
838
+ -------------------------------------------------------------------
839
+  (0.1ms) rollback transaction
840
+  (0.1ms) begin transaction
841
+ --------------------------------------------------------------------------
842
+ ActsAsDurationTest: test_converts_from_seconds_to_minutes,_hours_and_saves
843
+ --------------------------------------------------------------------------
844
+  (0.1ms) SAVEPOINT active_record_1
845
+ SQL (14.3ms) INSERT INTO "foobars" ("created_at", "test_seconds", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 24 Apr 2014 13:29:51 UTC +00:00], ["test_seconds", 7380], ["updated_at", Thu, 24 Apr 2014 13:29:51 UTC +00:00]]
846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
847
+ Foobar Load (0.2ms) SELECT "foobars".* FROM "foobars" WHERE "foobars"."id" = ? LIMIT 1 [["id", 1]]
848
+  (0.6ms) rollback transaction