dossier 2.0.1 → 2.1.0

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.
data/README.markdown CHANGED
@@ -93,6 +93,18 @@ end
93
93
 
94
94
  The built-in `ReportsController` uses this formatting when rendering the HTML and JSON representations, but not when rendering the CSV.
95
95
 
96
+ If your formatting method takes a second argment, it will be given a hash of the values in the row.
97
+
98
+ ```ruby
99
+ class MoneyLaunderingReport < Dossier::Report
100
+ #...
101
+ def format_payment(value, row)
102
+ return "$0.00" if row[:recipient] == 'Jimmy The Squid'
103
+ formatter.number_to_currency(value)
104
+ end
105
+ end
106
+ ```
107
+
96
108
  ## Report Options and Footers
97
109
 
98
110
  You may want to specify parameters for a report: which columns to show, a range of dates, etc. Dossier supports this via URL parameters, anything in `params[:options]` will be passed into your report's `initialize` method and made available via the `options` reader.
@@ -109,7 +121,7 @@ You can pass these options by hardcoding them into a link, or you can allow user
109
121
  = f.select_tag :in_division, divisions_collection
110
122
  = f.button "Submit"
111
123
 
112
- = render template: 'dossier/dossier/reports/show', locals: {report: report}
124
+ = render template: 'dossier/reports/show', locals: {report: report}
113
125
  ```
114
126
 
115
127
  It's up to you to use these options in generating your SQL query.
@@ -31,7 +31,11 @@ module Dossier
31
31
 
32
32
  def hashes
33
33
  return @hashes if defined?(@hashes)
34
- @hashes = rows.map { |row| Hash[headers.zip(row)] }
34
+ @hashes = rows.map { |row| row_hash(row) }
35
+ end
36
+
37
+ def row_hash(row)
38
+ Hash[headers.zip(row)].with_indifferent_access
35
39
  end
36
40
 
37
41
  def each
@@ -45,14 +49,26 @@ module Dossier
45
49
  end
46
50
  end
47
51
 
48
- def format(result_row)
49
- unless result_row.kind_of?(Enumerable)
50
- raise ArgumentError.new("#{result_row.inspect} must be a kind of Enumerable")
52
+ def format(row)
53
+ unless row.kind_of?(Enumerable)
54
+ raise ArgumentError.new("#{row.inspect} must be a kind of Enumerable")
51
55
  end
52
56
 
53
- result_row.each_with_index.map do |field, i|
54
- method = "format_#{headers[i]}"
55
- report.respond_to?(method) ? report.public_send(method, field) : field
57
+ row.each_with_index.map do |field, i|
58
+ method_name = "format_#{headers[i]}"
59
+
60
+ if report.respond_to?(method_name)
61
+
62
+ # Provide the row as context if the formatter takes two arguments
63
+ if report.method(method_name).arity == 2
64
+ report.public_send(method_name, field, row_hash(row))
65
+ else
66
+ report.public_send(method_name, field)
67
+ end
68
+
69
+ else
70
+ field
71
+ end
56
72
  end
57
73
  end
58
74
  end
@@ -1,3 +1,3 @@
1
1
  module Dossier
2
- VERSION = "2.0.1"
2
+ VERSION = "2.1.0"
3
3
  end
Binary file
@@ -24246,3 +24246,2311 @@ Processing by Dossier::ReportsController#show as HTML
24246
24246
  Parameters: {"report"=>"employee_with_custom_client"}
24247
24247
  EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
24248
24248
  Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms)
24249
+ Connecting to database specified by database.yml
24250
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24251
+ FACTORY (188.7ms) DROP TABLE IF EXISTS `employees`
24252
+ FACTORY (103.3ms)  CREATE TABLE `employees` (
24253
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24254
+ `name` varchar(255) NOT NULL,
24255
+ `division` varchar(255) NOT NULL,
24256
+ `salary` int(11) NOT NULL,
24257
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24258
+ `hired_on` date NOT NULL,
24259
+ PRIMARY KEY (`id`)
24260
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24261
+ 
24262
+ FACTORY (21.3ms) TRUNCATE `employees`
24263
+ FACTORY (0.8ms)  INSERT INTO
24264
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24265
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24266
+ 
24267
+ FACTORY (0.3ms) INSERT INTO
24268
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24269
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24270
+
24271
+ FACTORY (0.3ms)  INSERT INTO
24272
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24273
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24274
+ 
24275
+ FACTORY (2.7ms) DROP TABLE IF EXISTS `employees`
24276
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
24277
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24278
+ `name` TEXT NOT NULL,
24279
+ `division` TEXT NOT NULL,
24280
+ `salary` INTEGER NOT NULL,
24281
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24282
+ `hired_on` DATE NOT NULL
24283
+ );
24284
+ 
24285
+ FACTORY (0.9ms) DELETE FROM `employees`
24286
+ FACTORY (1.0ms)  INSERT INTO
24287
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24288
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24289
+ 
24290
+ FACTORY (1.1ms) INSERT INTO
24291
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24292
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24293
+
24294
+ FACTORY (1.7ms)  INSERT INTO
24295
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24296
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24297
+ 
24298
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24299
+ ORDER BY name ASC
24300
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
24301
+ Processing by Dossier::ReportsController#show as HTML
24302
+ Parameters: {"report"=>"employee_with_custom_client"}
24303
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
24304
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.0ms)
24305
+ Completed 200 OK in 63ms (Views: 46.5ms | ActiveRecord: 0.0ms)
24306
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
24307
+ Processing by Dossier::ReportsController#show as HTML
24308
+ Parameters: {"report"=>"employee_with_custom_view"}
24309
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
24310
+ Completed 200 OK in 33ms (Views: 28.8ms | ActiveRecord: 0.2ms)
24311
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
24312
+ Processing by Dossier::ReportsController#show as HTML
24313
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24314
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24315
+ AND division in (('Tedious Toiling'))
24316
+ AND salary > 10000
24317
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24318
+ ORDER BY name DESC
24319
+ Completed 200 OK in 83ms (Views: 78.5ms | ActiveRecord: 0.0ms)
24320
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
24321
+ Processing by Dossier::ReportsController#show as HTML
24322
+ Parameters: {"report"=>"employee"}
24323
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24324
+ ORDER BY name ASC
24325
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
24326
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
24327
+ Processing by Dossier::ReportsController#show as HTML
24328
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24329
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24330
+ ORDER BY name ASC
24331
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
24332
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
24333
+ Processing by Dossier::ReportsController#show as CSV
24334
+ Parameters: {"report"=>"employee"}
24335
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24336
+ ORDER BY name ASC
24337
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
24338
+ Connecting to database specified by database.yml
24339
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24340
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
24341
+ FACTORY (137.5ms)  CREATE TABLE `employees` (
24342
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24343
+ `name` varchar(255) NOT NULL,
24344
+ `division` varchar(255) NOT NULL,
24345
+ `salary` int(11) NOT NULL,
24346
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24347
+ `hired_on` date NOT NULL,
24348
+ PRIMARY KEY (`id`)
24349
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24350
+ 
24351
+ FACTORY (1.2ms) TRUNCATE `employees`
24352
+ FACTORY (0.8ms)  INSERT INTO
24353
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24354
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24355
+ 
24356
+ FACTORY (0.6ms) INSERT INTO
24357
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24358
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24359
+
24360
+ FACTORY (0.3ms)  INSERT INTO
24361
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24362
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24363
+ 
24364
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
24365
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
24366
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24367
+ `name` TEXT NOT NULL,
24368
+ `division` TEXT NOT NULL,
24369
+ `salary` INTEGER NOT NULL,
24370
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24371
+ `hired_on` DATE NOT NULL
24372
+ );
24373
+ 
24374
+ FACTORY (1.4ms) DELETE FROM `employees`
24375
+ FACTORY (1.1ms)  INSERT INTO
24376
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24377
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24378
+ 
24379
+ FACTORY (0.9ms) INSERT INTO
24380
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24381
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24382
+
24383
+ FACTORY (1.2ms)  INSERT INTO
24384
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24385
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24386
+ 
24387
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
24388
+ Processing by Dossier::ReportsController#show as HTML
24389
+ Parameters: {"report"=>"employee_with_custom_client"}
24390
+ EmployeeWithCustomClientReport (1.5ms) SELECT * FROM `employees`
24391
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
24392
+ Completed 200 OK in 46ms (Views: 7.2ms | ActiveRecord: 0.0ms)
24393
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24394
+ ORDER BY name ASC
24395
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
24396
+ Processing by Dossier::ReportsController#show as HTML
24397
+ Parameters: {"report"=>"employee_with_custom_view"}
24398
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
24399
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms)
24400
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
24401
+ Processing by Dossier::ReportsController#show as HTML
24402
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24403
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24404
+ ORDER BY name ASC
24405
+ Completed 200 OK in 40ms (Views: 3.2ms | ActiveRecord: 0.0ms)
24406
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
24407
+ Processing by Dossier::ReportsController#show as HTML
24408
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24409
+ EmployeeReport (0.6ms) SELECT * FROM employees WHERE 1=1
24410
+ AND division in (('Tedious Toiling'))
24411
+ AND salary > 10000
24412
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24413
+ ORDER BY name DESC
24414
+ Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
24415
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
24416
+ Processing by Dossier::ReportsController#show as HTML
24417
+ Parameters: {"report"=>"employee"}
24418
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24419
+ ORDER BY name ASC
24420
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
24421
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
24422
+ Processing by Dossier::ReportsController#show as CSV
24423
+ Parameters: {"report"=>"employee"}
24424
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24425
+ ORDER BY name ASC
24426
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
24427
+ Connecting to database specified by database.yml
24428
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24429
+ FACTORY (1.2ms) DROP TABLE IF EXISTS `employees`
24430
+ FACTORY (73.7ms)  CREATE TABLE `employees` (
24431
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24432
+ `name` varchar(255) NOT NULL,
24433
+ `division` varchar(255) NOT NULL,
24434
+ `salary` int(11) NOT NULL,
24435
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24436
+ `hired_on` date NOT NULL,
24437
+ PRIMARY KEY (`id`)
24438
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24439
+ 
24440
+ FACTORY (12.2ms) TRUNCATE `employees`
24441
+ FACTORY (0.5ms)  INSERT INTO
24442
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24443
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24444
+ 
24445
+ FACTORY (0.3ms) INSERT INTO
24446
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24447
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24448
+
24449
+ FACTORY (0.3ms)  INSERT INTO
24450
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24451
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24452
+ 
24453
+ FACTORY (1.8ms) DROP TABLE IF EXISTS `employees`
24454
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
24455
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24456
+ `name` TEXT NOT NULL,
24457
+ `division` TEXT NOT NULL,
24458
+ `salary` INTEGER NOT NULL,
24459
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24460
+ `hired_on` DATE NOT NULL
24461
+ );
24462
+ 
24463
+ FACTORY (1.2ms) DELETE FROM `employees`
24464
+ FACTORY (0.9ms)  INSERT INTO
24465
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24466
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24467
+ 
24468
+ FACTORY (1.1ms) INSERT INTO
24469
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24470
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24471
+
24472
+ FACTORY (1.1ms)  INSERT INTO
24473
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24474
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24475
+ 
24476
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
24477
+ Processing by Dossier::ReportsController#show as HTML
24478
+ Parameters: {"report"=>"employee_with_custom_client"}
24479
+ EmployeeWithCustomClientReport (1.5ms) SELECT * FROM `employees`
24480
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.2ms)
24481
+ Completed 200 OK in 19ms (Views: 7.6ms | ActiveRecord: 0.0ms)
24482
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24483
+ ORDER BY name ASC
24484
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
24485
+ Processing by Dossier::ReportsController#show as HTML
24486
+ Parameters: {"report"=>"employee_with_custom_view"}
24487
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
24488
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
24489
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
24490
+ Processing by Dossier::ReportsController#show as HTML
24491
+ Parameters: {"report"=>"employee"}
24492
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24493
+ ORDER BY name ASC
24494
+ Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
24495
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
24496
+ Processing by Dossier::ReportsController#show as HTML
24497
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24498
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24499
+ ORDER BY name ASC
24500
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
24501
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
24502
+ Processing by Dossier::ReportsController#show as HTML
24503
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24504
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24505
+ AND division in (('Tedious Toiling'))
24506
+ AND salary > 10000
24507
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24508
+ ORDER BY name DESC
24509
+ Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.0ms)
24510
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
24511
+ Processing by Dossier::ReportsController#show as CSV
24512
+ Parameters: {"report"=>"employee"}
24513
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24514
+ ORDER BY name ASC
24515
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
24516
+ Connecting to database specified by database.yml
24517
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24518
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
24519
+ FACTORY (97.3ms)  CREATE TABLE `employees` (
24520
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24521
+ `name` varchar(255) NOT NULL,
24522
+ `division` varchar(255) NOT NULL,
24523
+ `salary` int(11) NOT NULL,
24524
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24525
+ `hired_on` date NOT NULL,
24526
+ PRIMARY KEY (`id`)
24527
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24528
+ 
24529
+ FACTORY (6.6ms) TRUNCATE `employees`
24530
+ FACTORY (0.4ms)  INSERT INTO
24531
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24532
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24533
+ 
24534
+ FACTORY (0.3ms) INSERT INTO
24535
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24536
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24537
+
24538
+ FACTORY (0.3ms)  INSERT INTO
24539
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24540
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24541
+ 
24542
+ FACTORY (1.8ms) DROP TABLE IF EXISTS `employees`
24543
+ FACTORY (1.4ms)  CREATE TABLE `employees` (
24544
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24545
+ `name` TEXT NOT NULL,
24546
+ `division` TEXT NOT NULL,
24547
+ `salary` INTEGER NOT NULL,
24548
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24549
+ `hired_on` DATE NOT NULL
24550
+ );
24551
+ 
24552
+ FACTORY (1.0ms) DELETE FROM `employees`
24553
+ FACTORY (1.1ms)  INSERT INTO
24554
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24555
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24556
+ 
24557
+ FACTORY (1.0ms) INSERT INTO
24558
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24559
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24560
+
24561
+ FACTORY (1.0ms)  INSERT INTO
24562
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24563
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24564
+ 
24565
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
24566
+ Processing by Dossier::ReportsController#show as HTML
24567
+ Parameters: {"report"=>"employee_with_custom_client"}
24568
+ EmployeeWithCustomClientReport (1.9ms) SELECT * FROM `employees`
24569
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
24570
+ Completed 200 OK in 19ms (Views: 7.1ms | ActiveRecord: 0.0ms)
24571
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24572
+ ORDER BY name ASC
24573
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
24574
+ Processing by Dossier::ReportsController#show as HTML
24575
+ Parameters: {"report"=>"employee_with_custom_view"}
24576
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
24577
+ Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
24578
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
24579
+ Processing by Dossier::ReportsController#show as HTML
24580
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24581
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24582
+ ORDER BY name ASC
24583
+ Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 0.0ms)
24584
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
24585
+ Processing by Dossier::ReportsController#show as HTML
24586
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24587
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
24588
+ AND division in (('Tedious Toiling'))
24589
+ AND salary > 10000
24590
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24591
+ ORDER BY name DESC
24592
+ Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
24593
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
24594
+ Processing by Dossier::ReportsController#show as HTML
24595
+ Parameters: {"report"=>"employee"}
24596
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24597
+ ORDER BY name ASC
24598
+ Completed 200 OK in 37ms (Views: 32.9ms | ActiveRecord: 0.0ms)
24599
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
24600
+ Processing by Dossier::ReportsController#show as CSV
24601
+ Parameters: {"report"=>"employee"}
24602
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24603
+ ORDER BY name ASC
24604
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
24605
+ Connecting to database specified by database.yml
24606
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24607
+ FACTORY (1.0ms) DROP TABLE IF EXISTS `employees`
24608
+ FACTORY (100.3ms)  CREATE TABLE `employees` (
24609
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24610
+ `name` varchar(255) NOT NULL,
24611
+ `division` varchar(255) NOT NULL,
24612
+ `salary` int(11) NOT NULL,
24613
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24614
+ `hired_on` date NOT NULL,
24615
+ PRIMARY KEY (`id`)
24616
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24617
+ 
24618
+ FACTORY (29.7ms) TRUNCATE `employees`
24619
+ FACTORY (0.8ms)  INSERT INTO
24620
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24621
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24622
+ 
24623
+ FACTORY (0.3ms) INSERT INTO
24624
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24625
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24626
+
24627
+ FACTORY (0.8ms)  INSERT INTO
24628
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24629
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24630
+ 
24631
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
24632
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
24633
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24634
+ `name` TEXT NOT NULL,
24635
+ `division` TEXT NOT NULL,
24636
+ `salary` INTEGER NOT NULL,
24637
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24638
+ `hired_on` DATE NOT NULL
24639
+ );
24640
+ 
24641
+ FACTORY (0.9ms) DELETE FROM `employees`
24642
+ FACTORY (1.1ms)  INSERT INTO
24643
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24644
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24645
+ 
24646
+ FACTORY (1.0ms) INSERT INTO
24647
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24648
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24649
+
24650
+ FACTORY (1.4ms)  INSERT INTO
24651
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24652
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24653
+ 
24654
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
24655
+ Processing by Dossier::ReportsController#show as HTML
24656
+ Parameters: {"report"=>"employee_with_custom_client"}
24657
+ EmployeeWithCustomClientReport (1.8ms) SELECT * FROM `employees`
24658
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
24659
+ Completed 200 OK in 46ms (Views: 7.1ms | ActiveRecord: 0.0ms)
24660
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24661
+ ORDER BY name ASC
24662
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
24663
+ Processing by Dossier::ReportsController#show as HTML
24664
+ Parameters: {"report"=>"employee_with_custom_view"}
24665
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
24666
+ Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.3ms)
24667
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
24668
+ Processing by Dossier::ReportsController#show as HTML
24669
+ Parameters: {"report"=>"employee"}
24670
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24671
+ ORDER BY name ASC
24672
+ Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.0ms)
24673
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
24674
+ Processing by Dossier::ReportsController#show as HTML
24675
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24676
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24677
+ ORDER BY name ASC
24678
+ Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.0ms)
24679
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
24680
+ Processing by Dossier::ReportsController#show as HTML
24681
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24682
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24683
+ AND division in (('Tedious Toiling'))
24684
+ AND salary > 10000
24685
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24686
+ ORDER BY name DESC
24687
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
24688
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
24689
+ Processing by Dossier::ReportsController#show as CSV
24690
+ Parameters: {"report"=>"employee"}
24691
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
24692
+ ORDER BY name ASC
24693
+ Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
24694
+ Connecting to database specified by database.yml
24695
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24696
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
24697
+ FACTORY (50.5ms)  CREATE TABLE `employees` (
24698
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24699
+ `name` varchar(255) NOT NULL,
24700
+ `division` varchar(255) NOT NULL,
24701
+ `salary` int(11) NOT NULL,
24702
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24703
+ `hired_on` date NOT NULL,
24704
+ PRIMARY KEY (`id`)
24705
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24706
+ 
24707
+ FACTORY (1.6ms) TRUNCATE `employees`
24708
+ FACTORY (0.3ms)  INSERT INTO
24709
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24710
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24711
+ 
24712
+ FACTORY (0.3ms) INSERT INTO
24713
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24714
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24715
+
24716
+ FACTORY (0.3ms)  INSERT INTO
24717
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24718
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24719
+ 
24720
+ FACTORY (2.3ms) DROP TABLE IF EXISTS `employees`
24721
+ FACTORY (1.5ms)  CREATE TABLE `employees` (
24722
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24723
+ `name` TEXT NOT NULL,
24724
+ `division` TEXT NOT NULL,
24725
+ `salary` INTEGER NOT NULL,
24726
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24727
+ `hired_on` DATE NOT NULL
24728
+ );
24729
+ 
24730
+ FACTORY (0.9ms) DELETE FROM `employees`
24731
+ FACTORY (0.9ms)  INSERT INTO
24732
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24733
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24734
+ 
24735
+ FACTORY (1.0ms) INSERT INTO
24736
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24737
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24738
+
24739
+ FACTORY (1.4ms)  INSERT INTO
24740
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24741
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24742
+ 
24743
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
24744
+ Processing by Dossier::ReportsController#show as HTML
24745
+ Parameters: {"report"=>"employee_with_custom_view"}
24746
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
24747
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
24748
+ Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.3ms)
24749
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
24750
+ Processing by Dossier::ReportsController#show as HTML
24751
+ Parameters: {"report"=>"employee"}
24752
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24753
+ ORDER BY name ASC
24754
+ Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 0.0ms)
24755
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
24756
+ Processing by Dossier::ReportsController#show as HTML
24757
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24758
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
24759
+ AND division in (('Tedious Toiling'))
24760
+ AND salary > 10000
24761
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24762
+ ORDER BY name DESC
24763
+ Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
24764
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
24765
+ Processing by Dossier::ReportsController#show as HTML
24766
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24767
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24768
+ ORDER BY name ASC
24769
+ Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
24770
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
24771
+ Processing by Dossier::ReportsController#show as CSV
24772
+ Parameters: {"report"=>"employee"}
24773
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24774
+ ORDER BY name ASC
24775
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
24776
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24777
+ ORDER BY name ASC
24778
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
24779
+ Processing by Dossier::ReportsController#show as HTML
24780
+ Parameters: {"report"=>"employee_with_custom_client"}
24781
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
24782
+ Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
24783
+ Connecting to database specified by database.yml
24784
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24785
+ FACTORY (1.2ms) DROP TABLE IF EXISTS `employees`
24786
+ FACTORY (85.4ms)  CREATE TABLE `employees` (
24787
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24788
+ `name` varchar(255) NOT NULL,
24789
+ `division` varchar(255) NOT NULL,
24790
+ `salary` int(11) NOT NULL,
24791
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24792
+ `hired_on` date NOT NULL,
24793
+ PRIMARY KEY (`id`)
24794
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24795
+ 
24796
+ FACTORY (1.0ms) TRUNCATE `employees`
24797
+ FACTORY (0.5ms)  INSERT INTO
24798
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24799
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24800
+ 
24801
+ FACTORY (0.4ms) INSERT INTO
24802
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24803
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24804
+
24805
+ FACTORY (0.3ms)  INSERT INTO
24806
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24807
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24808
+ 
24809
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
24810
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
24811
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24812
+ `name` TEXT NOT NULL,
24813
+ `division` TEXT NOT NULL,
24814
+ `salary` INTEGER NOT NULL,
24815
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24816
+ `hired_on` DATE NOT NULL
24817
+ );
24818
+ 
24819
+ FACTORY (1.0ms) DELETE FROM `employees`
24820
+ FACTORY (1.1ms)  INSERT INTO
24821
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24822
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24823
+ 
24824
+ FACTORY (0.9ms) INSERT INTO
24825
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24826
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24827
+
24828
+ FACTORY (0.9ms)  INSERT INTO
24829
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24830
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24831
+ 
24832
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24833
+ ORDER BY name ASC
24834
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
24835
+ Processing by Dossier::ReportsController#show as CSV
24836
+ Parameters: {"report"=>"employee"}
24837
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24838
+ ORDER BY name ASC
24839
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
24840
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
24841
+ Processing by Dossier::ReportsController#show as HTML
24842
+ Parameters: {"report"=>"employee"}
24843
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24844
+ ORDER BY name ASC
24845
+ Completed 200 OK in 23ms (Views: 7.7ms | ActiveRecord: 0.0ms)
24846
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
24847
+ Processing by Dossier::ReportsController#show as HTML
24848
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24849
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24850
+ ORDER BY name ASC
24851
+ Completed 200 OK in 38ms (Views: 3.5ms | ActiveRecord: 0.0ms)
24852
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
24853
+ Processing by Dossier::ReportsController#show as HTML
24854
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24855
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24856
+ AND division in (('Tedious Toiling'))
24857
+ AND salary > 10000
24858
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24859
+ ORDER BY name DESC
24860
+ Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.0ms)
24861
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
24862
+ Processing by Dossier::ReportsController#show as HTML
24863
+ Parameters: {"report"=>"employee_with_custom_view"}
24864
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
24865
+ Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.2ms)
24866
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
24867
+ Processing by Dossier::ReportsController#show as HTML
24868
+ Parameters: {"report"=>"employee_with_custom_client"}
24869
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
24870
+ Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)
24871
+ Connecting to database specified by database.yml
24872
+ FACTORY (0.3ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24873
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
24874
+ FACTORY (56.8ms)  CREATE TABLE `employees` (
24875
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24876
+ `name` varchar(255) NOT NULL,
24877
+ `division` varchar(255) NOT NULL,
24878
+ `salary` int(11) NOT NULL,
24879
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24880
+ `hired_on` date NOT NULL,
24881
+ PRIMARY KEY (`id`)
24882
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24883
+ 
24884
+ FACTORY (1.8ms) TRUNCATE `employees`
24885
+ FACTORY (0.4ms)  INSERT INTO
24886
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24887
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24888
+ 
24889
+ FACTORY (0.3ms) INSERT INTO
24890
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24891
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24892
+
24893
+ FACTORY (0.3ms)  INSERT INTO
24894
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24895
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24896
+ 
24897
+ FACTORY (2.0ms) DROP TABLE IF EXISTS `employees`
24898
+ FACTORY (1.3ms)  CREATE TABLE `employees` (
24899
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24900
+ `name` TEXT NOT NULL,
24901
+ `division` TEXT NOT NULL,
24902
+ `salary` INTEGER NOT NULL,
24903
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24904
+ `hired_on` DATE NOT NULL
24905
+ );
24906
+ 
24907
+ FACTORY (1.0ms) DELETE FROM `employees`
24908
+ FACTORY (1.0ms)  INSERT INTO
24909
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24910
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24911
+ 
24912
+ FACTORY (1.1ms) INSERT INTO
24913
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24914
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
24915
+
24916
+ FACTORY (1.1ms)  INSERT INTO
24917
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24918
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
24919
+ 
24920
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
24921
+ Processing by Dossier::ReportsController#show as CSV
24922
+ Parameters: {"report"=>"employee"}
24923
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24924
+ ORDER BY name ASC
24925
+ Completed 200 OK in 6ms (ActiveRecord: 0.3ms)
24926
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
24927
+ Processing by Dossier::ReportsController#show as HTML
24928
+ Parameters: {"report"=>"employee"}
24929
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24930
+ ORDER BY name ASC
24931
+ Completed 200 OK in 24ms (Views: 11.9ms | ActiveRecord: 0.0ms)
24932
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
24933
+ Processing by Dossier::ReportsController#show as HTML
24934
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
24935
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24936
+ ORDER BY name ASC
24937
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
24938
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
24939
+ Processing by Dossier::ReportsController#show as HTML
24940
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
24941
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
24942
+ AND division in (('Tedious Toiling'))
24943
+ AND salary > 10000
24944
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
24945
+ ORDER BY name DESC
24946
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
24947
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
24948
+ Processing by Dossier::ReportsController#show as HTML
24949
+ Parameters: {"report"=>"employee_with_custom_view"}
24950
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
24951
+ Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms)
24952
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
24953
+ Processing by Dossier::ReportsController#show as HTML
24954
+ Parameters: {"report"=>"employee_with_custom_client"}
24955
+ EmployeeWithCustomClientReport (0.4ms) SELECT * FROM `employees`
24956
+ Completed 200 OK in 35ms (Views: 3.2ms | ActiveRecord: 0.0ms)
24957
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
24958
+ ORDER BY name ASC
24959
+ Connecting to database specified by database.yml
24960
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
24961
+ FACTORY (1.1ms) DROP TABLE IF EXISTS `employees`
24962
+ FACTORY (58.5ms)  CREATE TABLE `employees` (
24963
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
24964
+ `name` varchar(255) NOT NULL,
24965
+ `division` varchar(255) NOT NULL,
24966
+ `salary` int(11) NOT NULL,
24967
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
24968
+ `hired_on` date NOT NULL,
24969
+ PRIMARY KEY (`id`)
24970
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24971
+ 
24972
+ FACTORY (1.1ms) TRUNCATE `employees`
24973
+ FACTORY (0.7ms)  INSERT INTO
24974
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24975
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
24976
+ 
24977
+ FACTORY (0.4ms) INSERT INTO
24978
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24979
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
24980
+
24981
+ FACTORY (0.3ms)  INSERT INTO
24982
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24983
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
24984
+ 
24985
+ FACTORY (2.1ms) DROP TABLE IF EXISTS `employees`
24986
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
24987
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
24988
+ `name` TEXT NOT NULL,
24989
+ `division` TEXT NOT NULL,
24990
+ `salary` INTEGER NOT NULL,
24991
+ `suspended` TINYINT NOT NULL DEFAULT 0,
24992
+ `hired_on` DATE NOT NULL
24993
+ );
24994
+ 
24995
+ FACTORY (0.9ms) DELETE FROM `employees`
24996
+ FACTORY (0.9ms)  INSERT INTO
24997
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
24998
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
24999
+ 
25000
+ FACTORY (1.0ms) INSERT INTO
25001
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25002
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25003
+
25004
+ FACTORY (1.1ms)  INSERT INTO
25005
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25006
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25007
+ 
25008
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
25009
+ Processing by Dossier::ReportsController#show as HTML
25010
+ Parameters: {"report"=>"employee_with_custom_view"}
25011
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
25012
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
25013
+ Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.3ms)
25014
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
25015
+ Processing by Dossier::ReportsController#show as HTML
25016
+ Parameters: {"report"=>"employee"}
25017
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25018
+ ORDER BY name ASC
25019
+ Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 0.0ms)
25020
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
25021
+ Processing by Dossier::ReportsController#show as HTML
25022
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25023
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25024
+ ORDER BY name ASC
25025
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
25026
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
25027
+ Processing by Dossier::ReportsController#show as HTML
25028
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25029
+ EmployeeReport (0.6ms) SELECT * FROM employees WHERE 1=1
25030
+ AND division in (('Tedious Toiling'))
25031
+ AND salary > 10000
25032
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25033
+ ORDER BY name DESC
25034
+ Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
25035
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
25036
+ Processing by Dossier::ReportsController#show as CSV
25037
+ Parameters: {"report"=>"employee"}
25038
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25039
+ ORDER BY name ASC
25040
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
25041
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25042
+ ORDER BY name ASC
25043
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
25044
+ Processing by Dossier::ReportsController#show as HTML
25045
+ Parameters: {"report"=>"employee_with_custom_client"}
25046
+ EmployeeWithCustomClientReport (0.4ms) SELECT * FROM `employees`
25047
+ Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms)
25048
+ Connecting to database specified by database.yml
25049
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25050
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
25051
+ FACTORY (55.3ms)  CREATE TABLE `employees` (
25052
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25053
+ `name` varchar(255) NOT NULL,
25054
+ `division` varchar(255) NOT NULL,
25055
+ `salary` int(11) NOT NULL,
25056
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25057
+ `hired_on` date NOT NULL,
25058
+ PRIMARY KEY (`id`)
25059
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25060
+ 
25061
+ FACTORY (1.1ms) TRUNCATE `employees`
25062
+ FACTORY (0.4ms)  INSERT INTO
25063
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25064
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25065
+ 
25066
+ FACTORY (0.5ms) INSERT INTO
25067
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25068
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25069
+
25070
+ FACTORY (0.3ms)  INSERT INTO
25071
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25072
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25073
+ 
25074
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
25075
+ FACTORY (1.4ms)  CREATE TABLE `employees` (
25076
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25077
+ `name` TEXT NOT NULL,
25078
+ `division` TEXT NOT NULL,
25079
+ `salary` INTEGER NOT NULL,
25080
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25081
+ `hired_on` DATE NOT NULL
25082
+ );
25083
+ 
25084
+ FACTORY (1.0ms) DELETE FROM `employees`
25085
+ FACTORY (1.0ms)  INSERT INTO
25086
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25087
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25088
+ 
25089
+ FACTORY (1.0ms) INSERT INTO
25090
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25091
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25092
+
25093
+ FACTORY (1.3ms)  INSERT INTO
25094
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25095
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25096
+ 
25097
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
25098
+ Processing by Dossier::ReportsController#show as HTML
25099
+ Parameters: {"report"=>"employee_with_custom_view"}
25100
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
25101
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
25102
+ Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.3ms)
25103
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
25104
+ Processing by Dossier::ReportsController#show as HTML
25105
+ Parameters: {"report"=>"employee"}
25106
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25107
+ ORDER BY name ASC
25108
+ Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 0.0ms)
25109
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
25110
+ Processing by Dossier::ReportsController#show as HTML
25111
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25112
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
25113
+ AND division in (('Tedious Toiling'))
25114
+ AND salary > 10000
25115
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25116
+ ORDER BY name DESC
25117
+ Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25118
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
25119
+ Processing by Dossier::ReportsController#show as HTML
25120
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25121
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25122
+ ORDER BY name ASC
25123
+ Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 0.0ms)
25124
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
25125
+ Processing by Dossier::ReportsController#show as CSV
25126
+ Parameters: {"report"=>"employee"}
25127
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25128
+ ORDER BY name ASC
25129
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
25130
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
25131
+ Processing by Dossier::ReportsController#show as HTML
25132
+ Parameters: {"report"=>"employee_with_custom_client"}
25133
+ EmployeeWithCustomClientReport (0.4ms) SELECT * FROM `employees`
25134
+ Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms)
25135
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25136
+ ORDER BY name ASC
25137
+ Connecting to database specified by database.yml
25138
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25139
+ FACTORY (1.1ms) DROP TABLE IF EXISTS `employees`
25140
+ FACTORY (48.0ms)  CREATE TABLE `employees` (
25141
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25142
+ `name` varchar(255) NOT NULL,
25143
+ `division` varchar(255) NOT NULL,
25144
+ `salary` int(11) NOT NULL,
25145
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25146
+ `hired_on` date NOT NULL,
25147
+ PRIMARY KEY (`id`)
25148
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25149
+ 
25150
+ FACTORY (0.9ms) TRUNCATE `employees`
25151
+ FACTORY (0.3ms)  INSERT INTO
25152
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25153
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25154
+ 
25155
+ FACTORY (0.3ms) INSERT INTO
25156
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25157
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25158
+
25159
+ FACTORY (0.3ms)  INSERT INTO
25160
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25161
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25162
+ 
25163
+ FACTORY (1.6ms) DROP TABLE IF EXISTS `employees`
25164
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
25165
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25166
+ `name` TEXT NOT NULL,
25167
+ `division` TEXT NOT NULL,
25168
+ `salary` INTEGER NOT NULL,
25169
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25170
+ `hired_on` DATE NOT NULL
25171
+ );
25172
+ 
25173
+ FACTORY (1.3ms) DELETE FROM `employees`
25174
+ FACTORY (1.0ms)  INSERT INTO
25175
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25176
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25177
+ 
25178
+ FACTORY (0.9ms) INSERT INTO
25179
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25180
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25181
+
25182
+ FACTORY (1.3ms)  INSERT INTO
25183
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25184
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25185
+ 
25186
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
25187
+ Processing by Dossier::ReportsController#show as HTML
25188
+ Parameters: {"report"=>"employee_with_custom_view"}
25189
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
25190
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (1.0ms)
25191
+ Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.3ms)
25192
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
25193
+ Processing by Dossier::ReportsController#show as HTML
25194
+ Parameters: {"report"=>"employee"}
25195
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25196
+ ORDER BY name ASC
25197
+ Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 0.0ms)
25198
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
25199
+ Processing by Dossier::ReportsController#show as HTML
25200
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25201
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25202
+ AND division in (('Tedious Toiling'))
25203
+ AND salary > 10000
25204
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25205
+ ORDER BY name DESC
25206
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25207
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
25208
+ Processing by Dossier::ReportsController#show as HTML
25209
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25210
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25211
+ ORDER BY name ASC
25212
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
25213
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
25214
+ Processing by Dossier::ReportsController#show as CSV
25215
+ Parameters: {"report"=>"employee"}
25216
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25217
+ ORDER BY name ASC
25218
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
25219
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
25220
+ Processing by Dossier::ReportsController#show as HTML
25221
+ Parameters: {"report"=>"employee_with_custom_client"}
25222
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
25223
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
25224
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25225
+ ORDER BY name ASC
25226
+ Connecting to database specified by database.yml
25227
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25228
+ FACTORY (1.2ms) DROP TABLE IF EXISTS `employees`
25229
+ FACTORY (90.2ms)  CREATE TABLE `employees` (
25230
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25231
+ `name` varchar(255) NOT NULL,
25232
+ `division` varchar(255) NOT NULL,
25233
+ `salary` int(11) NOT NULL,
25234
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25235
+ `hired_on` date NOT NULL,
25236
+ PRIMARY KEY (`id`)
25237
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25238
+ 
25239
+ FACTORY (209.7ms) TRUNCATE `employees`
25240
+ FACTORY (0.6ms)  INSERT INTO
25241
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25242
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25243
+ 
25244
+ FACTORY (0.3ms) INSERT INTO
25245
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25246
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25247
+
25248
+ FACTORY (0.3ms)  INSERT INTO
25249
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25250
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25251
+ 
25252
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
25253
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
25254
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25255
+ `name` TEXT NOT NULL,
25256
+ `division` TEXT NOT NULL,
25257
+ `salary` INTEGER NOT NULL,
25258
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25259
+ `hired_on` DATE NOT NULL
25260
+ );
25261
+ 
25262
+ FACTORY (0.9ms) DELETE FROM `employees`
25263
+ FACTORY (1.0ms)  INSERT INTO
25264
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25265
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25266
+ 
25267
+ FACTORY (0.9ms) INSERT INTO
25268
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25269
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25270
+
25271
+ FACTORY (1.0ms)  INSERT INTO
25272
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25273
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25274
+ 
25275
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
25276
+ Processing by Dossier::ReportsController#show as HTML
25277
+ Parameters: {"report"=>"employee_with_custom_client"}
25278
+ EmployeeWithCustomClientReport (1.7ms) SELECT * FROM `employees`
25279
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
25280
+ Completed 200 OK in 18ms (Views: 7.0ms | ActiveRecord: 0.0ms)
25281
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
25282
+ Processing by Dossier::ReportsController#show as HTML
25283
+ Parameters: {"report"=>"employee_with_custom_view"}
25284
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
25285
+ Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.3ms)
25286
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
25287
+ Processing by Dossier::ReportsController#show as HTML
25288
+ Parameters: {"report"=>"employee"}
25289
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25290
+ ORDER BY name ASC
25291
+ Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.0ms)
25292
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
25293
+ Processing by Dossier::ReportsController#show as HTML
25294
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25295
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
25296
+ AND division in (('Tedious Toiling'))
25297
+ AND salary > 10000
25298
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25299
+ ORDER BY name DESC
25300
+ Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25301
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
25302
+ Processing by Dossier::ReportsController#show as HTML
25303
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25304
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25305
+ ORDER BY name ASC
25306
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25307
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
25308
+ Processing by Dossier::ReportsController#show as CSV
25309
+ Parameters: {"report"=>"employee"}
25310
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25311
+ ORDER BY name ASC
25312
+ Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
25313
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25314
+ ORDER BY name ASC
25315
+ Connecting to database specified by database.yml
25316
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25317
+ FACTORY (1.2ms) DROP TABLE IF EXISTS `employees`
25318
+ FACTORY (100.3ms)  CREATE TABLE `employees` (
25319
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25320
+ `name` varchar(255) NOT NULL,
25321
+ `division` varchar(255) NOT NULL,
25322
+ `salary` int(11) NOT NULL,
25323
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25324
+ `hired_on` date NOT NULL,
25325
+ PRIMARY KEY (`id`)
25326
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25327
+ 
25328
+ FACTORY (1.5ms) TRUNCATE `employees`
25329
+ FACTORY (0.5ms)  INSERT INTO
25330
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25331
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25332
+ 
25333
+ FACTORY (0.3ms) INSERT INTO
25334
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25335
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25336
+
25337
+ FACTORY (0.3ms)  INSERT INTO
25338
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25339
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25340
+ 
25341
+ FACTORY (362.5ms) DROP TABLE IF EXISTS `employees`
25342
+ FACTORY (46.6ms)  CREATE TABLE `employees` (
25343
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25344
+ `name` TEXT NOT NULL,
25345
+ `division` TEXT NOT NULL,
25346
+ `salary` INTEGER NOT NULL,
25347
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25348
+ `hired_on` DATE NOT NULL
25349
+ );
25350
+ 
25351
+ FACTORY (2.8ms) DELETE FROM `employees`
25352
+ FACTORY (1.1ms)  INSERT INTO
25353
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25354
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25355
+ 
25356
+ FACTORY (1.0ms) INSERT INTO
25357
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25358
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25359
+
25360
+ FACTORY (0.9ms)  INSERT INTO
25361
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25362
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25363
+ 
25364
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
25365
+ Processing by Dossier::ReportsController#show as HTML
25366
+ Parameters: {"report"=>"employee_with_custom_client"}
25367
+ EmployeeWithCustomClientReport (1.7ms) SELECT * FROM `employees`
25368
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.2ms)
25369
+ Completed 200 OK in 19ms (Views: 7.7ms | ActiveRecord: 0.0ms)
25370
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
25371
+ Processing by Dossier::ReportsController#show as HTML
25372
+ Parameters: {"report"=>"employee_with_custom_view"}
25373
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
25374
+ Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.3ms)
25375
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
25376
+ Processing by Dossier::ReportsController#show as HTML
25377
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25378
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25379
+ AND division in (('Tedious Toiling'))
25380
+ AND salary > 10000
25381
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25382
+ ORDER BY name DESC
25383
+ Completed 200 OK in 41ms (Views: 35.9ms | ActiveRecord: 0.0ms)
25384
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
25385
+ Processing by Dossier::ReportsController#show as HTML
25386
+ Parameters: {"report"=>"employee"}
25387
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25388
+ ORDER BY name ASC
25389
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25390
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
25391
+ Processing by Dossier::ReportsController#show as HTML
25392
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25393
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25394
+ ORDER BY name ASC
25395
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25396
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
25397
+ Processing by Dossier::ReportsController#show as CSV
25398
+ Parameters: {"report"=>"employee"}
25399
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25400
+ ORDER BY name ASC
25401
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
25402
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25403
+ ORDER BY name ASC
25404
+ Connecting to database specified by database.yml
25405
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25406
+ FACTORY (1.6ms) DROP TABLE IF EXISTS `employees`
25407
+ FACTORY (102.2ms)  CREATE TABLE `employees` (
25408
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25409
+ `name` varchar(255) NOT NULL,
25410
+ `division` varchar(255) NOT NULL,
25411
+ `salary` int(11) NOT NULL,
25412
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25413
+ `hired_on` date NOT NULL,
25414
+ PRIMARY KEY (`id`)
25415
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25416
+ 
25417
+ FACTORY (14.8ms) TRUNCATE `employees`
25418
+ FACTORY (0.5ms)  INSERT INTO
25419
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25420
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25421
+ 
25422
+ FACTORY (0.6ms) INSERT INTO
25423
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25424
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25425
+
25426
+ FACTORY (0.3ms)  INSERT INTO
25427
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25428
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25429
+ 
25430
+ FACTORY (1.8ms) DROP TABLE IF EXISTS `employees`
25431
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
25432
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25433
+ `name` TEXT NOT NULL,
25434
+ `division` TEXT NOT NULL,
25435
+ `salary` INTEGER NOT NULL,
25436
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25437
+ `hired_on` DATE NOT NULL
25438
+ );
25439
+ 
25440
+ FACTORY (1.0ms) DELETE FROM `employees`
25441
+ FACTORY (0.9ms)  INSERT INTO
25442
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25443
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25444
+ 
25445
+ FACTORY (1.1ms) INSERT INTO
25446
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25447
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25448
+
25449
+ FACTORY (8.2ms)  INSERT INTO
25450
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25451
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25452
+ 
25453
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
25454
+ Processing by Dossier::ReportsController#show as CSV
25455
+ Parameters: {"report"=>"employee"}
25456
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25457
+ ORDER BY name ASC
25458
+ Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
25459
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
25460
+ Processing by Dossier::ReportsController#show as HTML
25461
+ Parameters: {"report"=>"employee"}
25462
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25463
+ ORDER BY name ASC
25464
+ Completed 200 OK in 23ms (Views: 10.8ms | ActiveRecord: 0.0ms)
25465
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
25466
+ Processing by Dossier::ReportsController#show as HTML
25467
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25468
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
25469
+ AND division in (('Tedious Toiling'))
25470
+ AND salary > 10000
25471
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25472
+ ORDER BY name DESC
25473
+ Completed 200 OK in 12ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25474
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
25475
+ Processing by Dossier::ReportsController#show as HTML
25476
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25477
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25478
+ ORDER BY name ASC
25479
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
25480
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
25481
+ Processing by Dossier::ReportsController#show as HTML
25482
+ Parameters: {"report"=>"employee_with_custom_view"}
25483
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
25484
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
25485
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25486
+ ORDER BY name ASC
25487
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
25488
+ Processing by Dossier::ReportsController#show as HTML
25489
+ Parameters: {"report"=>"employee_with_custom_client"}
25490
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
25491
+ Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.0ms)
25492
+ Connecting to database specified by database.yml
25493
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25494
+ FACTORY (1.1ms) DROP TABLE IF EXISTS `employees`
25495
+ FACTORY (52.8ms)  CREATE TABLE `employees` (
25496
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25497
+ `name` varchar(255) NOT NULL,
25498
+ `division` varchar(255) NOT NULL,
25499
+ `salary` int(11) NOT NULL,
25500
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25501
+ `hired_on` date NOT NULL,
25502
+ PRIMARY KEY (`id`)
25503
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25504
+ 
25505
+ FACTORY (1.3ms) TRUNCATE `employees`
25506
+ FACTORY (0.5ms)  INSERT INTO
25507
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25508
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25509
+ 
25510
+ FACTORY (0.3ms) INSERT INTO
25511
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25512
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25513
+
25514
+ FACTORY (0.3ms)  INSERT INTO
25515
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25516
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25517
+ 
25518
+ FACTORY (2.4ms) DROP TABLE IF EXISTS `employees`
25519
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
25520
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25521
+ `name` TEXT NOT NULL,
25522
+ `division` TEXT NOT NULL,
25523
+ `salary` INTEGER NOT NULL,
25524
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25525
+ `hired_on` DATE NOT NULL
25526
+ );
25527
+ 
25528
+ FACTORY (1.0ms) DELETE FROM `employees`
25529
+ FACTORY (1.2ms)  INSERT INTO
25530
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25531
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25532
+ 
25533
+ FACTORY (1.3ms) INSERT INTO
25534
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25535
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25536
+
25537
+ FACTORY (1.1ms)  INSERT INTO
25538
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25539
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25540
+ 
25541
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:10:50 -0500
25542
+ Processing by Dossier::ReportsController#show as HTML
25543
+ Parameters: {"report"=>"employee_with_custom_client"}
25544
+ EmployeeWithCustomClientReport (1.7ms) SELECT * FROM `employees`
25545
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.9ms)
25546
+ Completed 200 OK in 45ms (Views: 7.2ms | ActiveRecord: 0.0ms)
25547
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
25548
+ Processing by Dossier::ReportsController#show as HTML
25549
+ Parameters: {"report"=>"employee_with_custom_view"}
25550
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
25551
+ Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.3ms)
25552
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
25553
+ Processing by Dossier::ReportsController#show as HTML
25554
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25555
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25556
+ ORDER BY name ASC
25557
+ Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.0ms)
25558
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
25559
+ Processing by Dossier::ReportsController#show as HTML
25560
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25561
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25562
+ AND division in (('Tedious Toiling'))
25563
+ AND salary > 10000
25564
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25565
+ ORDER BY name DESC
25566
+ Completed 200 OK in 37ms (Views: 31.9ms | ActiveRecord: 0.0ms)
25567
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
25568
+ Processing by Dossier::ReportsController#show as HTML
25569
+ Parameters: {"report"=>"employee"}
25570
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25571
+ ORDER BY name ASC
25572
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25573
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
25574
+ Processing by Dossier::ReportsController#show as CSV
25575
+ Parameters: {"report"=>"employee"}
25576
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25577
+ ORDER BY name ASC
25578
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
25579
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25580
+ ORDER BY name ASC
25581
+ Connecting to database specified by database.yml
25582
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25583
+ FACTORY (1.0ms) DROP TABLE IF EXISTS `employees`
25584
+ FACTORY (47.3ms)  CREATE TABLE `employees` (
25585
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25586
+ `name` varchar(255) NOT NULL,
25587
+ `division` varchar(255) NOT NULL,
25588
+ `salary` int(11) NOT NULL,
25589
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25590
+ `hired_on` date NOT NULL,
25591
+ PRIMARY KEY (`id`)
25592
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25593
+ 
25594
+ FACTORY (1.3ms) TRUNCATE `employees`
25595
+ FACTORY (0.8ms)  INSERT INTO
25596
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25597
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25598
+ 
25599
+ FACTORY (0.4ms) INSERT INTO
25600
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25601
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25602
+
25603
+ FACTORY (0.3ms)  INSERT INTO
25604
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25605
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25606
+ 
25607
+ FACTORY (2.2ms) DROP TABLE IF EXISTS `employees`
25608
+ FACTORY (1.3ms)  CREATE TABLE `employees` (
25609
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25610
+ `name` TEXT NOT NULL,
25611
+ `division` TEXT NOT NULL,
25612
+ `salary` INTEGER NOT NULL,
25613
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25614
+ `hired_on` DATE NOT NULL
25615
+ );
25616
+ 
25617
+ FACTORY (1.0ms) DELETE FROM `employees`
25618
+ FACTORY (1.1ms)  INSERT INTO
25619
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25620
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25621
+ 
25622
+ FACTORY (1.1ms) INSERT INTO
25623
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25624
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25625
+
25626
+ FACTORY (1.2ms)  INSERT INTO
25627
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25628
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25629
+ 
25630
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25631
+ ORDER BY name ASC
25632
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:17 -0500
25633
+ Processing by Dossier::ReportsController#show as HTML
25634
+ Parameters: {"report"=>"employee_with_custom_client"}
25635
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
25636
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
25637
+ Completed 200 OK in 17ms (Views: 7.2ms | ActiveRecord: 0.0ms)
25638
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
25639
+ Processing by Dossier::ReportsController#show as CSV
25640
+ Parameters: {"report"=>"employee"}
25641
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25642
+ ORDER BY name ASC
25643
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
25644
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
25645
+ Processing by Dossier::ReportsController#show as HTML
25646
+ Parameters: {"report"=>"employee"}
25647
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25648
+ ORDER BY name ASC
25649
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
25650
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
25651
+ Processing by Dossier::ReportsController#show as HTML
25652
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25653
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25654
+ ORDER BY name ASC
25655
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25656
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
25657
+ Processing by Dossier::ReportsController#show as HTML
25658
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25659
+ EmployeeReport (0.6ms) SELECT * FROM employees WHERE 1=1
25660
+ AND division in (('Tedious Toiling'))
25661
+ AND salary > 10000
25662
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25663
+ ORDER BY name DESC
25664
+ Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25665
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
25666
+ Processing by Dossier::ReportsController#show as HTML
25667
+ Parameters: {"report"=>"employee_with_custom_view"}
25668
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
25669
+ Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.2ms)
25670
+ Connecting to database specified by database.yml
25671
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25672
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
25673
+ FACTORY (90.2ms)  CREATE TABLE `employees` (
25674
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25675
+ `name` varchar(255) NOT NULL,
25676
+ `division` varchar(255) NOT NULL,
25677
+ `salary` int(11) NOT NULL,
25678
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25679
+ `hired_on` date NOT NULL,
25680
+ PRIMARY KEY (`id`)
25681
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25682
+ 
25683
+ FACTORY (1.1ms) TRUNCATE `employees`
25684
+ FACTORY (0.4ms)  INSERT INTO
25685
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25686
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25687
+ 
25688
+ FACTORY (0.3ms) INSERT INTO
25689
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25690
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25691
+
25692
+ FACTORY (0.2ms)  INSERT INTO
25693
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25694
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25695
+ 
25696
+ FACTORY (2.0ms) DROP TABLE IF EXISTS `employees`
25697
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
25698
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25699
+ `name` TEXT NOT NULL,
25700
+ `division` TEXT NOT NULL,
25701
+ `salary` INTEGER NOT NULL,
25702
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25703
+ `hired_on` DATE NOT NULL
25704
+ );
25705
+ 
25706
+ FACTORY (0.9ms) DELETE FROM `employees`
25707
+ FACTORY (1.4ms)  INSERT INTO
25708
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25709
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25710
+ 
25711
+ FACTORY (1.1ms) INSERT INTO
25712
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25713
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25714
+
25715
+ FACTORY (1.0ms)  INSERT INTO
25716
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25717
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25718
+ 
25719
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
25720
+ Processing by Dossier::ReportsController#show as CSV
25721
+ Parameters: {"report"=>"employee"}
25722
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25723
+ ORDER BY name ASC
25724
+ Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
25725
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
25726
+ Processing by Dossier::ReportsController#show as HTML
25727
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25728
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25729
+ ORDER BY name ASC
25730
+ Completed 200 OK in 24ms (Views: 11.0ms | ActiveRecord: 0.0ms)
25731
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
25732
+ Processing by Dossier::ReportsController#show as HTML
25733
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25734
+ EmployeeReport (0.6ms) SELECT * FROM employees WHERE 1=1
25735
+ AND division in (('Tedious Toiling'))
25736
+ AND salary > 10000
25737
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25738
+ ORDER BY name DESC
25739
+ Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
25740
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
25741
+ Processing by Dossier::ReportsController#show as HTML
25742
+ Parameters: {"report"=>"employee"}
25743
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25744
+ ORDER BY name ASC
25745
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
25746
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
25747
+ Processing by Dossier::ReportsController#show as HTML
25748
+ Parameters: {"report"=>"employee_with_custom_view"}
25749
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
25750
+ Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
25751
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25752
+ ORDER BY name ASC
25753
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:28 -0500
25754
+ Processing by Dossier::ReportsController#show as HTML
25755
+ Parameters: {"report"=>"employee_with_custom_client"}
25756
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
25757
+ Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms)
25758
+ Connecting to database specified by database.yml
25759
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25760
+ FACTORY (1.3ms) DROP TABLE IF EXISTS `employees`
25761
+ FACTORY (51.1ms)  CREATE TABLE `employees` (
25762
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25763
+ `name` varchar(255) NOT NULL,
25764
+ `division` varchar(255) NOT NULL,
25765
+ `salary` int(11) NOT NULL,
25766
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25767
+ `hired_on` date NOT NULL,
25768
+ PRIMARY KEY (`id`)
25769
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25770
+ 
25771
+ FACTORY (1.3ms) TRUNCATE `employees`
25772
+ FACTORY (0.8ms)  INSERT INTO
25773
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25774
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25775
+ 
25776
+ FACTORY (0.5ms) INSERT INTO
25777
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25778
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25779
+
25780
+ FACTORY (0.3ms)  INSERT INTO
25781
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25782
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25783
+ 
25784
+ FACTORY (2.1ms) DROP TABLE IF EXISTS `employees`
25785
+ FACTORY (1.3ms)  CREATE TABLE `employees` (
25786
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25787
+ `name` TEXT NOT NULL,
25788
+ `division` TEXT NOT NULL,
25789
+ `salary` INTEGER NOT NULL,
25790
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25791
+ `hired_on` DATE NOT NULL
25792
+ );
25793
+ 
25794
+ FACTORY (0.8ms) DELETE FROM `employees`
25795
+ FACTORY (1.0ms)  INSERT INTO
25796
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25797
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25798
+ 
25799
+ FACTORY (1.1ms) INSERT INTO
25800
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25801
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25802
+
25803
+ FACTORY (1.1ms)  INSERT INTO
25804
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25805
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25806
+ 
25807
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
25808
+ ORDER BY name ASC
25809
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
25810
+ Processing by Dossier::ReportsController#show as CSV
25811
+ Parameters: {"report"=>"employee"}
25812
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25813
+ ORDER BY name ASC
25814
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
25815
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
25816
+ Processing by Dossier::ReportsController#show as HTML
25817
+ Parameters: {"report"=>"employee"}
25818
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25819
+ ORDER BY name ASC
25820
+ Completed 200 OK in 53ms (Views: 12.4ms | ActiveRecord: 0.0ms)
25821
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
25822
+ Processing by Dossier::ReportsController#show as HTML
25823
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25824
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25825
+ AND division in (('Tedious Toiling'))
25826
+ AND salary > 10000
25827
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25828
+ ORDER BY name DESC
25829
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
25830
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
25831
+ Processing by Dossier::ReportsController#show as HTML
25832
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25833
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25834
+ ORDER BY name ASC
25835
+ Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.0ms)
25836
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
25837
+ Processing by Dossier::ReportsController#show as HTML
25838
+ Parameters: {"report"=>"employee_with_custom_view"}
25839
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
25840
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
25841
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
25842
+ Processing by Dossier::ReportsController#show as HTML
25843
+ Parameters: {"report"=>"employee_with_custom_client"}
25844
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
25845
+ Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.0ms)
25846
+ Connecting to database specified by database.yml
25847
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25848
+ FACTORY (1.0ms) DROP TABLE IF EXISTS `employees`
25849
+ FACTORY (50.0ms)  CREATE TABLE `employees` (
25850
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25851
+ `name` varchar(255) NOT NULL,
25852
+ `division` varchar(255) NOT NULL,
25853
+ `salary` int(11) NOT NULL,
25854
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25855
+ `hired_on` date NOT NULL,
25856
+ PRIMARY KEY (`id`)
25857
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25858
+ 
25859
+ FACTORY (1.1ms) TRUNCATE `employees`
25860
+ FACTORY (0.4ms)  INSERT INTO
25861
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25862
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25863
+ 
25864
+ FACTORY (0.3ms) INSERT INTO
25865
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25866
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25867
+
25868
+ FACTORY (0.3ms)  INSERT INTO
25869
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25870
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25871
+ 
25872
+ FACTORY (2.0ms) DROP TABLE IF EXISTS `employees`
25873
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
25874
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25875
+ `name` TEXT NOT NULL,
25876
+ `division` TEXT NOT NULL,
25877
+ `salary` INTEGER NOT NULL,
25878
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25879
+ `hired_on` DATE NOT NULL
25880
+ );
25881
+ 
25882
+ FACTORY (0.9ms) DELETE FROM `employees`
25883
+ FACTORY (1.3ms)  INSERT INTO
25884
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25885
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25886
+ 
25887
+ FACTORY (1.1ms) INSERT INTO
25888
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25889
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25890
+
25891
+ FACTORY (1.0ms)  INSERT INTO
25892
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25893
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25894
+ 
25895
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25896
+ ORDER BY name ASC
25897
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
25898
+ Processing by Dossier::ReportsController#show as HTML
25899
+ Parameters: {"report"=>"employee_with_custom_view"}
25900
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
25901
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
25902
+ Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.2ms)
25903
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
25904
+ Processing by Dossier::ReportsController#show as HTML
25905
+ Parameters: {"report"=>"employee"}
25906
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25907
+ ORDER BY name ASC
25908
+ Completed 200 OK in 43ms (Views: 10.9ms | ActiveRecord: 0.0ms)
25909
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
25910
+ Processing by Dossier::ReportsController#show as HTML
25911
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
25912
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
25913
+ AND division in (('Tedious Toiling'))
25914
+ AND salary > 10000
25915
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
25916
+ ORDER BY name DESC
25917
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
25918
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
25919
+ Processing by Dossier::ReportsController#show as HTML
25920
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
25921
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25922
+ ORDER BY name ASC
25923
+ Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
25924
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
25925
+ Processing by Dossier::ReportsController#show as CSV
25926
+ Parameters: {"report"=>"employee"}
25927
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
25928
+ ORDER BY name ASC
25929
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
25930
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
25931
+ Processing by Dossier::ReportsController#show as HTML
25932
+ Parameters: {"report"=>"employee_with_custom_client"}
25933
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
25934
+ Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.0ms)
25935
+ Connecting to database specified by database.yml
25936
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
25937
+ FACTORY (1.1ms) DROP TABLE IF EXISTS `employees`
25938
+ FACTORY (85.3ms)  CREATE TABLE `employees` (
25939
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25940
+ `name` varchar(255) NOT NULL,
25941
+ `division` varchar(255) NOT NULL,
25942
+ `salary` int(11) NOT NULL,
25943
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
25944
+ `hired_on` date NOT NULL,
25945
+ PRIMARY KEY (`id`)
25946
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25947
+ 
25948
+ FACTORY (1.0ms) TRUNCATE `employees`
25949
+ FACTORY (0.3ms)  INSERT INTO
25950
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25951
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
25952
+ 
25953
+ FACTORY (0.3ms) INSERT INTO
25954
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25955
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
25956
+
25957
+ FACTORY (0.3ms)  INSERT INTO
25958
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25959
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
25960
+ 
25961
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
25962
+ FACTORY (0.8ms)  CREATE TABLE `employees` (
25963
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
25964
+ `name` TEXT NOT NULL,
25965
+ `division` TEXT NOT NULL,
25966
+ `salary` INTEGER NOT NULL,
25967
+ `suspended` TINYINT NOT NULL DEFAULT 0,
25968
+ `hired_on` DATE NOT NULL
25969
+ );
25970
+ 
25971
+ FACTORY (1.0ms) DELETE FROM `employees`
25972
+ FACTORY (1.5ms)  INSERT INTO
25973
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25974
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
25975
+ 
25976
+ FACTORY (0.8ms) INSERT INTO
25977
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25978
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
25979
+
25980
+ FACTORY (0.8ms)  INSERT INTO
25981
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
25982
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
25983
+ 
25984
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
25985
+ ORDER BY name ASC
25986
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
25987
+ Processing by Dossier::ReportsController#show as HTML
25988
+ Parameters: {"report"=>"employee_with_custom_client"}
25989
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
25990
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.2ms)
25991
+ Completed 200 OK in 18ms (Views: 7.8ms | ActiveRecord: 0.0ms)
25992
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
25993
+ Processing by Dossier::ReportsController#show as HTML
25994
+ Parameters: {"report"=>"employee_with_custom_view"}
25995
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
25996
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
25997
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
25998
+ Processing by Dossier::ReportsController#show as HTML
25999
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
26000
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26001
+ ORDER BY name ASC
26002
+ Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.0ms)
26003
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
26004
+ Processing by Dossier::ReportsController#show as HTML
26005
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
26006
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26007
+ AND division in (('Tedious Toiling'))
26008
+ AND salary > 10000
26009
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
26010
+ ORDER BY name DESC
26011
+ Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.0ms)
26012
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
26013
+ Processing by Dossier::ReportsController#show as HTML
26014
+ Parameters: {"report"=>"employee"}
26015
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26016
+ ORDER BY name ASC
26017
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
26018
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
26019
+ Processing by Dossier::ReportsController#show as CSV
26020
+ Parameters: {"report"=>"employee"}
26021
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26022
+ ORDER BY name ASC
26023
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
26024
+ Connecting to database specified by database.yml
26025
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
26026
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
26027
+ FACTORY (65.8ms)  CREATE TABLE `employees` (
26028
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
26029
+ `name` varchar(255) NOT NULL,
26030
+ `division` varchar(255) NOT NULL,
26031
+ `salary` int(11) NOT NULL,
26032
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
26033
+ `hired_on` date NOT NULL,
26034
+ PRIMARY KEY (`id`)
26035
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26036
+ 
26037
+ FACTORY (0.9ms) TRUNCATE `employees`
26038
+ FACTORY (0.3ms)  INSERT INTO
26039
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26040
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
26041
+ 
26042
+ FACTORY (0.3ms) INSERT INTO
26043
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26044
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
26045
+
26046
+ FACTORY (0.3ms)  INSERT INTO
26047
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26048
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
26049
+ 
26050
+ FACTORY (2.2ms) DROP TABLE IF EXISTS `employees`
26051
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
26052
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
26053
+ `name` TEXT NOT NULL,
26054
+ `division` TEXT NOT NULL,
26055
+ `salary` INTEGER NOT NULL,
26056
+ `suspended` TINYINT NOT NULL DEFAULT 0,
26057
+ `hired_on` DATE NOT NULL
26058
+ );
26059
+ 
26060
+ FACTORY (0.9ms) DELETE FROM `employees`
26061
+ FACTORY (1.0ms)  INSERT INTO
26062
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26063
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
26064
+ 
26065
+ FACTORY (1.1ms) INSERT INTO
26066
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26067
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
26068
+
26069
+ FACTORY (1.5ms)  INSERT INTO
26070
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26071
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
26072
+ 
26073
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26074
+ ORDER BY name ASC
26075
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
26076
+ Processing by Dossier::ReportsController#show as CSV
26077
+ Parameters: {"report"=>"employee"}
26078
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26079
+ ORDER BY name ASC
26080
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
26081
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
26082
+ Processing by Dossier::ReportsController#show as HTML
26083
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
26084
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26085
+ ORDER BY name ASC
26086
+ Completed 200 OK in 24ms (Views: 11.2ms | ActiveRecord: 0.0ms)
26087
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
26088
+ Processing by Dossier::ReportsController#show as HTML
26089
+ Parameters: {"report"=>"employee"}
26090
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26091
+ ORDER BY name ASC
26092
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
26093
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
26094
+ Processing by Dossier::ReportsController#show as HTML
26095
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
26096
+ EmployeeReport (0.6ms) SELECT * FROM employees WHERE 1=1
26097
+ AND division in (('Tedious Toiling'))
26098
+ AND salary > 10000
26099
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
26100
+ ORDER BY name DESC
26101
+ Completed 200 OK in 39ms (Views: 2.9ms | ActiveRecord: 0.0ms)
26102
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
26103
+ Processing by Dossier::ReportsController#show as HTML
26104
+ Parameters: {"report"=>"employee_with_custom_view"}
26105
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
26106
+ Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.2ms)
26107
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
26108
+ Processing by Dossier::ReportsController#show as HTML
26109
+ Parameters: {"report"=>"employee_with_custom_client"}
26110
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
26111
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
26112
+ Connecting to database specified by database.yml
26113
+ FACTORY (0.3ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
26114
+ FACTORY (1.4ms) DROP TABLE IF EXISTS `employees`
26115
+ FACTORY (334.4ms)  CREATE TABLE `employees` (
26116
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
26117
+ `name` varchar(255) NOT NULL,
26118
+ `division` varchar(255) NOT NULL,
26119
+ `salary` int(11) NOT NULL,
26120
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
26121
+ `hired_on` date NOT NULL,
26122
+ PRIMARY KEY (`id`)
26123
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26124
+ 
26125
+ FACTORY (1.0ms) TRUNCATE `employees`
26126
+ FACTORY (0.4ms)  INSERT INTO
26127
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26128
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
26129
+ 
26130
+ FACTORY (0.3ms) INSERT INTO
26131
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26132
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
26133
+
26134
+ FACTORY (0.3ms)  INSERT INTO
26135
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26136
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
26137
+ 
26138
+ FACTORY (2.1ms) DROP TABLE IF EXISTS `employees`
26139
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
26140
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
26141
+ `name` TEXT NOT NULL,
26142
+ `division` TEXT NOT NULL,
26143
+ `salary` INTEGER NOT NULL,
26144
+ `suspended` TINYINT NOT NULL DEFAULT 0,
26145
+ `hired_on` DATE NOT NULL
26146
+ );
26147
+ 
26148
+ FACTORY (1.0ms) DELETE FROM `employees`
26149
+ FACTORY (0.9ms)  INSERT INTO
26150
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26151
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
26152
+ 
26153
+ FACTORY (1.0ms) INSERT INTO
26154
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26155
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
26156
+
26157
+ FACTORY (0.9ms)  INSERT INTO
26158
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26159
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
26160
+ 
26161
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
26162
+ Processing by Dossier::ReportsController#show as HTML
26163
+ Parameters: {"report"=>"employee_with_custom_client"}
26164
+ EmployeeWithCustomClientReport (1.6ms) SELECT * FROM `employees`
26165
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (5.4ms)
26166
+ Completed 200 OK in 20ms (Views: 8.8ms | ActiveRecord: 0.0ms)
26167
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
26168
+ ORDER BY name ASC
26169
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
26170
+ Processing by Dossier::ReportsController#show as HTML
26171
+ Parameters: {"report"=>"employee_with_custom_view"}
26172
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
26173
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
26174
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
26175
+ Processing by Dossier::ReportsController#show as HTML
26176
+ Parameters: {"report"=>"employee"}
26177
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26178
+ ORDER BY name ASC
26179
+ Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.0ms)
26180
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
26181
+ Processing by Dossier::ReportsController#show as HTML
26182
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
26183
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26184
+ AND division in (('Tedious Toiling'))
26185
+ AND salary > 10000
26186
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
26187
+ ORDER BY name DESC
26188
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
26189
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
26190
+ Processing by Dossier::ReportsController#show as HTML
26191
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
26192
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26193
+ ORDER BY name ASC
26194
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
26195
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
26196
+ Processing by Dossier::ReportsController#show as CSV
26197
+ Parameters: {"report"=>"employee"}
26198
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26199
+ ORDER BY name ASC
26200
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
26201
+ Connecting to database specified by database.yml
26202
+ FACTORY (0.3ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
26203
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
26204
+ FACTORY (90.7ms)  CREATE TABLE `employees` (
26205
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
26206
+ `name` varchar(255) NOT NULL,
26207
+ `division` varchar(255) NOT NULL,
26208
+ `salary` int(11) NOT NULL,
26209
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
26210
+ `hired_on` date NOT NULL,
26211
+ PRIMARY KEY (`id`)
26212
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26213
+ 
26214
+ FACTORY (1.3ms) TRUNCATE `employees`
26215
+ FACTORY (0.8ms)  INSERT INTO
26216
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26217
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
26218
+ 
26219
+ FACTORY (0.4ms) INSERT INTO
26220
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26221
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
26222
+
26223
+ FACTORY (0.3ms)  INSERT INTO
26224
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26225
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
26226
+ 
26227
+ FACTORY (2.1ms) DROP TABLE IF EXISTS `employees`
26228
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
26229
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
26230
+ `name` TEXT NOT NULL,
26231
+ `division` TEXT NOT NULL,
26232
+ `salary` INTEGER NOT NULL,
26233
+ `suspended` TINYINT NOT NULL DEFAULT 0,
26234
+ `hired_on` DATE NOT NULL
26235
+ );
26236
+ 
26237
+ FACTORY (0.9ms) DELETE FROM `employees`
26238
+ FACTORY (1.1ms)  INSERT INTO
26239
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26240
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
26241
+ 
26242
+ FACTORY (1.0ms) INSERT INTO
26243
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26244
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
26245
+
26246
+ FACTORY (1.0ms)  INSERT INTO
26247
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26248
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
26249
+ 
26250
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
26251
+ Processing by Dossier::ReportsController#show as HTML
26252
+ Parameters: {"report"=>"employee_with_custom_client"}
26253
+ EmployeeWithCustomClientReport (1.5ms) SELECT * FROM `employees`
26254
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.9ms)
26255
+ Completed 200 OK in 45ms (Views: 7.4ms | ActiveRecord: 0.0ms)
26256
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26257
+ ORDER BY name ASC
26258
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
26259
+ Processing by Dossier::ReportsController#show as HTML
26260
+ Parameters: {"report"=>"employee_with_custom_view"}
26261
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
26262
+ Completed 200 OK in 36ms (Views: 2.6ms | ActiveRecord: 0.2ms)
26263
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
26264
+ Processing by Dossier::ReportsController#show as HTML
26265
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
26266
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26267
+ ORDER BY name ASC
26268
+ Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.0ms)
26269
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
26270
+ Processing by Dossier::ReportsController#show as HTML
26271
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
26272
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
26273
+ AND division in (('Tedious Toiling'))
26274
+ AND salary > 10000
26275
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
26276
+ ORDER BY name DESC
26277
+ Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
26278
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
26279
+ Processing by Dossier::ReportsController#show as HTML
26280
+ Parameters: {"report"=>"employee"}
26281
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26282
+ ORDER BY name ASC
26283
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
26284
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
26285
+ Processing by Dossier::ReportsController#show as CSV
26286
+ Parameters: {"report"=>"employee"}
26287
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26288
+ ORDER BY name ASC
26289
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
26290
+ Connecting to database specified by database.yml
26291
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
26292
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
26293
+ FACTORY (84.9ms)  CREATE TABLE `employees` (
26294
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
26295
+ `name` varchar(255) NOT NULL,
26296
+ `division` varchar(255) NOT NULL,
26297
+ `salary` int(11) NOT NULL,
26298
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
26299
+ `hired_on` date NOT NULL,
26300
+ PRIMARY KEY (`id`)
26301
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26302
+ 
26303
+ FACTORY (1.1ms) TRUNCATE `employees`
26304
+ FACTORY (0.3ms)  INSERT INTO
26305
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26306
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
26307
+ 
26308
+ FACTORY (0.6ms) INSERT INTO
26309
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26310
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
26311
+
26312
+ FACTORY (0.4ms)  INSERT INTO
26313
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26314
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
26315
+ 
26316
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
26317
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
26318
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
26319
+ `name` TEXT NOT NULL,
26320
+ `division` TEXT NOT NULL,
26321
+ `salary` INTEGER NOT NULL,
26322
+ `suspended` TINYINT NOT NULL DEFAULT 0,
26323
+ `hired_on` DATE NOT NULL
26324
+ );
26325
+ 
26326
+ FACTORY (1.4ms) DELETE FROM `employees`
26327
+ FACTORY (1.1ms)  INSERT INTO
26328
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26329
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
26330
+ 
26331
+ FACTORY (1.0ms) INSERT INTO
26332
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26333
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
26334
+
26335
+ FACTORY (1.1ms)  INSERT INTO
26336
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26337
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
26338
+ 
26339
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
26340
+ Processing by Dossier::ReportsController#show as HTML
26341
+ Parameters: {"report"=>"employee_with_custom_client"}
26342
+ EmployeeWithCustomClientReport (1.6ms) SELECT * FROM `employees`
26343
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.0ms)
26344
+ Completed 200 OK in 18ms (Views: 7.4ms | ActiveRecord: 0.0ms)
26345
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
26346
+ ORDER BY name ASC
26347
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
26348
+ Processing by Dossier::ReportsController#show as CSV
26349
+ Parameters: {"report"=>"employee"}
26350
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26351
+ ORDER BY name ASC
26352
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
26353
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
26354
+ Processing by Dossier::ReportsController#show as HTML
26355
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
26356
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26357
+ AND division in (('Tedious Toiling'))
26358
+ AND salary > 10000
26359
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
26360
+ ORDER BY name DESC
26361
+ Completed 200 OK in 8ms (Views: 2.8ms | ActiveRecord: 0.0ms)
26362
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
26363
+ Processing by Dossier::ReportsController#show as HTML
26364
+ Parameters: {"report"=>"employee"}
26365
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26366
+ ORDER BY name ASC
26367
+ Completed 200 OK in 38ms (Views: 2.9ms | ActiveRecord: 0.0ms)
26368
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
26369
+ Processing by Dossier::ReportsController#show as HTML
26370
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
26371
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26372
+ ORDER BY name ASC
26373
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
26374
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
26375
+ Processing by Dossier::ReportsController#show as HTML
26376
+ Parameters: {"report"=>"employee_with_custom_view"}
26377
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
26378
+ Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
26379
+ Connecting to database specified by database.yml
26380
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
26381
+ FACTORY (1.1ms) DROP TABLE IF EXISTS `employees`
26382
+ FACTORY (61.4ms)  CREATE TABLE `employees` (
26383
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
26384
+ `name` varchar(255) NOT NULL,
26385
+ `division` varchar(255) NOT NULL,
26386
+ `salary` int(11) NOT NULL,
26387
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
26388
+ `hired_on` date NOT NULL,
26389
+ PRIMARY KEY (`id`)
26390
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26391
+ 
26392
+ FACTORY (1.2ms) TRUNCATE `employees`
26393
+ FACTORY (0.6ms)  INSERT INTO
26394
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26395
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
26396
+ 
26397
+ FACTORY (0.5ms) INSERT INTO
26398
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26399
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
26400
+
26401
+ FACTORY (0.3ms)  INSERT INTO
26402
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26403
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
26404
+ 
26405
+ FACTORY (2.0ms) DROP TABLE IF EXISTS `employees`
26406
+ FACTORY (1.4ms)  CREATE TABLE `employees` (
26407
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
26408
+ `name` TEXT NOT NULL,
26409
+ `division` TEXT NOT NULL,
26410
+ `salary` INTEGER NOT NULL,
26411
+ `suspended` TINYINT NOT NULL DEFAULT 0,
26412
+ `hired_on` DATE NOT NULL
26413
+ );
26414
+ 
26415
+ FACTORY (0.9ms) DELETE FROM `employees`
26416
+ FACTORY (1.3ms)  INSERT INTO
26417
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26418
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
26419
+ 
26420
+ FACTORY (0.9ms) INSERT INTO
26421
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26422
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
26423
+
26424
+ FACTORY (1.1ms)  INSERT INTO
26425
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26426
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
26427
+ 
26428
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
26429
+ Processing by Dossier::ReportsController#show as HTML
26430
+ Parameters: {"report"=>"employee_with_custom_client"}
26431
+ EmployeeWithCustomClientReport (2.1ms) SELECT * FROM `employees`
26432
+ Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.9ms)
26433
+ Completed 200 OK in 46ms (Views: 7.2ms | ActiveRecord: 0.0ms)
26434
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
26435
+ Processing by Dossier::ReportsController#show as HTML
26436
+ Parameters: {"report"=>"employee_with_custom_view"}
26437
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
26438
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms)
26439
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
26440
+ Processing by Dossier::ReportsController#show as HTML
26441
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
26442
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
26443
+ AND division in (('Tedious Toiling'))
26444
+ AND salary > 10000
26445
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
26446
+ ORDER BY name DESC
26447
+ Completed 200 OK in 15ms (Views: 6.5ms | ActiveRecord: 0.0ms)
26448
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
26449
+ Processing by Dossier::ReportsController#show as HTML
26450
+ Parameters: {"report"=>"employee"}
26451
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26452
+ ORDER BY name ASC
26453
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
26454
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
26455
+ Processing by Dossier::ReportsController#show as HTML
26456
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
26457
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26458
+ ORDER BY name ASC
26459
+ Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.0ms)
26460
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
26461
+ Processing by Dossier::ReportsController#show as CSV
26462
+ Parameters: {"report"=>"employee"}
26463
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26464
+ ORDER BY name ASC
26465
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
26466
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26467
+ ORDER BY name ASC
26468
+ Connecting to database specified by database.yml
26469
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
26470
+ FACTORY (1.2ms) DROP TABLE IF EXISTS `employees`
26471
+ FACTORY (46.7ms)  CREATE TABLE `employees` (
26472
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
26473
+ `name` varchar(255) NOT NULL,
26474
+ `division` varchar(255) NOT NULL,
26475
+ `salary` int(11) NOT NULL,
26476
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
26477
+ `hired_on` date NOT NULL,
26478
+ PRIMARY KEY (`id`)
26479
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26480
+ 
26481
+ FACTORY (1.1ms) TRUNCATE `employees`
26482
+ FACTORY (0.4ms)  INSERT INTO
26483
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26484
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
26485
+ 
26486
+ FACTORY (0.3ms) INSERT INTO
26487
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26488
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
26489
+
26490
+ FACTORY (0.3ms)  INSERT INTO
26491
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26492
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
26493
+ 
26494
+ FACTORY (2.0ms) DROP TABLE IF EXISTS `employees`
26495
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
26496
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
26497
+ `name` TEXT NOT NULL,
26498
+ `division` TEXT NOT NULL,
26499
+ `salary` INTEGER NOT NULL,
26500
+ `suspended` TINYINT NOT NULL DEFAULT 0,
26501
+ `hired_on` DATE NOT NULL
26502
+ );
26503
+ 
26504
+ FACTORY (0.9ms) DELETE FROM `employees`
26505
+ FACTORY (1.0ms)  INSERT INTO
26506
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26507
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
26508
+ 
26509
+ FACTORY (1.0ms) INSERT INTO
26510
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26511
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
26512
+
26513
+ FACTORY (1.0ms)  INSERT INTO
26514
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
26515
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
26516
+ 
26517
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
26518
+ Processing by Dossier::ReportsController#show as HTML
26519
+ Parameters: {"report"=>"employee_with_custom_view"}
26520
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
26521
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
26522
+ Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.3ms)
26523
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
26524
+ Processing by Dossier::ReportsController#show as HTML
26525
+ Parameters: {"report"=>"employee"}
26526
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26527
+ ORDER BY name ASC
26528
+ Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 0.0ms)
26529
+ Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
26530
+ Processing by Dossier::ReportsController#show as HTML
26531
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
26532
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
26533
+ AND division in (('Tedious Toiling'))
26534
+ AND salary > 10000
26535
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
26536
+ ORDER BY name DESC
26537
+ Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 0.0ms)
26538
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
26539
+ Processing by Dossier::ReportsController#show as HTML
26540
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
26541
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26542
+ ORDER BY name ASC
26543
+ Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
26544
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
26545
+ Processing by Dossier::ReportsController#show as CSV
26546
+ Parameters: {"report"=>"employee"}
26547
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
26548
+ ORDER BY name ASC
26549
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
26550
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
26551
+ Processing by Dossier::ReportsController#show as HTML
26552
+ Parameters: {"report"=>"employee_with_custom_client"}
26553
+ EmployeeWithCustomClientReport (0.4ms) SELECT * FROM `employees`
26554
+ Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms)
26555
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
26556
+ ORDER BY name ASC