dossier 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,9 @@
1
1
  module Dossier
2
2
  module ApplicationHelper
3
+
4
+ def formatted_dossier_report_path(format, report)
5
+ dossier_report_path(format: format, options: report.options, report: report.class.report_name)
6
+ end
7
+
3
8
  end
4
9
  end
@@ -1,3 +1,3 @@
1
1
  module Dossier
2
- VERSION = "2.6.0"
2
+ VERSION = "2.7.0"
3
3
  end
Binary file
@@ -2327,3 +2327,641 @@ Processing by Dossier::ReportsController#show as HTML
2327
2327
  Parameters: {"report"=>"employee_with_custom_client"}
2328
2328
  EmployeeWithCustomClientReport (0.4ms) SELECT * FROM `employees`
2329
2329
  Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
2330
+ Connecting to database specified by database.yml
2331
+ FACTORY (14.3ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
2332
+ FACTORY (5.0ms) DROP TABLE IF EXISTS `employees`
2333
+ FACTORY (12.4ms)  CREATE TABLE `employees` (
2334
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2335
+ `name` varchar(255) NOT NULL,
2336
+ `division` varchar(255) NOT NULL,
2337
+ `salary` int(11) NOT NULL,
2338
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
2339
+ `hired_on` date NOT NULL,
2340
+ PRIMARY KEY (`id`)
2341
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2342
+ 
2343
+ FACTORY (0.7ms) TRUNCATE `employees`
2344
+ FACTORY (0.6ms)  INSERT INTO
2345
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2346
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
2347
+ 
2348
+ FACTORY (0.5ms) INSERT INTO
2349
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2350
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
2351
+
2352
+ FACTORY (2.5ms)  INSERT INTO
2353
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2354
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
2355
+ 
2356
+ FACTORY (9.8ms) DROP TABLE IF EXISTS `employees`
2357
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
2358
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
2359
+ `name` TEXT NOT NULL,
2360
+ `division` TEXT NOT NULL,
2361
+ `salary` INTEGER NOT NULL,
2362
+ `suspended` TINYINT NOT NULL DEFAULT 0,
2363
+ `hired_on` DATE NOT NULL
2364
+ );
2365
+ 
2366
+ FACTORY (2.9ms) DELETE FROM `employees`
2367
+ FACTORY (0.9ms)  INSERT INTO
2368
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2369
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
2370
+ 
2371
+ FACTORY (1.0ms) INSERT INTO
2372
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2373
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
2374
+
2375
+ FACTORY (1.0ms)  INSERT INTO
2376
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2377
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
2378
+ 
2379
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:35:17 -0400
2380
+ Processing by Dossier::ReportsController#multi as HTML
2381
+ Parameters: {"report"=>"combination"}
2382
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2383
+ ORDER BY name ASC
2384
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml (20.6ms)
2385
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
2386
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml (3.1ms)
2387
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (32.7ms)
2388
+ Completed 200 OK in 84ms (Views: 37.8ms | ActiveRecord: 0.7ms)
2389
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:35:17 -0400
2390
+ Processing by Dossier::ReportsController#show as HTML
2391
+ Parameters: {"report"=>"employee_with_custom_client"}
2392
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
2393
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (2.2ms)
2394
+ Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms)
2395
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:35:17 -0400
2396
+ Processing by Dossier::ReportsController#show as HTML
2397
+ Parameters: {"report"=>"employee"}
2398
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2399
+ ORDER BY name ASC
2400
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)
2401
+ 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-05-22 12:35:17 -0400
2402
+ Processing by Dossier::ReportsController#show as HTML
2403
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
2404
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
2405
+ AND division in (('Tedious Toiling'))
2406
+ AND salary > 10000
2407
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
2408
+ ORDER BY name DESC
2409
+ Completed 200 OK in 38ms (Views: 36.8ms | ActiveRecord: 0.4ms)
2410
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
2411
+ Processing by Dossier::ReportsController#show as HTML
2412
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
2413
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
2414
+ ORDER BY name ASC
2415
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
2416
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
2417
+ Processing by Dossier::ReportsController#show as HTML
2418
+ Parameters: {"report"=>"employee_with_custom_view"}
2419
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
2420
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
2421
+ Processing by Dossier::ReportsController#show as CSV
2422
+ Parameters: {"report"=>"employee"}
2423
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2424
+ ORDER BY name ASC
2425
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
2426
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
2427
+ Processing by Dossier::ReportsController#show as XLS
2428
+ Parameters: {"report"=>"employee"}
2429
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2430
+ ORDER BY name ASC
2431
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
2432
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
2433
+ Processing by SiteController#report as HTML
2434
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2435
+ ORDER BY name ASC
2436
+ Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.2ms)
2437
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
2438
+ ORDER BY name ASC
2439
+ Connecting to database specified by database.yml
2440
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
2441
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
2442
+ FACTORY (15.9ms)  CREATE TABLE `employees` (
2443
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2444
+ `name` varchar(255) NOT NULL,
2445
+ `division` varchar(255) NOT NULL,
2446
+ `salary` int(11) NOT NULL,
2447
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
2448
+ `hired_on` date NOT NULL,
2449
+ PRIMARY KEY (`id`)
2450
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2451
+ 
2452
+ FACTORY (0.8ms) TRUNCATE `employees`
2453
+ FACTORY (0.6ms)  INSERT INTO
2454
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2455
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
2456
+ 
2457
+ FACTORY (0.5ms) INSERT INTO
2458
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2459
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
2460
+
2461
+ FACTORY (0.5ms)  INSERT INTO
2462
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2463
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
2464
+ 
2465
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
2466
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
2467
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
2468
+ `name` TEXT NOT NULL,
2469
+ `division` TEXT NOT NULL,
2470
+ `salary` INTEGER NOT NULL,
2471
+ `suspended` TINYINT NOT NULL DEFAULT 0,
2472
+ `hired_on` DATE NOT NULL
2473
+ );
2474
+ 
2475
+ FACTORY (0.8ms) DELETE FROM `employees`
2476
+ FACTORY (0.9ms)  INSERT INTO
2477
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2478
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
2479
+ 
2480
+ FACTORY (0.9ms) INSERT INTO
2481
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2482
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
2483
+
2484
+ FACTORY (0.9ms)  INSERT INTO
2485
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2486
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
2487
+ 
2488
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2489
+ Processing by Dossier::ReportsController#show as CSV
2490
+ Parameters: {"report"=>"employee"}
2491
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2492
+ ORDER BY name ASC
2493
+ Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
2494
+ 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-05-22 12:35:59 -0400
2495
+ Processing by Dossier::ReportsController#show as HTML
2496
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
2497
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
2498
+ AND division in (('Tedious Toiling'))
2499
+ AND salary > 10000
2500
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
2501
+ ORDER BY name DESC
2502
+ Completed 200 OK in 34ms (Views: 20.2ms | ActiveRecord: 0.4ms)
2503
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2504
+ Processing by Dossier::ReportsController#show as HTML
2505
+ Parameters: {"report"=>"employee"}
2506
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2507
+ ORDER BY name ASC
2508
+ Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)
2509
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2510
+ Processing by Dossier::ReportsController#show as HTML
2511
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
2512
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2513
+ ORDER BY name ASC
2514
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms)
2515
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2516
+ Processing by Dossier::ReportsController#show as HTML
2517
+ Parameters: {"report"=>"employee_with_custom_view"}
2518
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
2519
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2520
+ Processing by Dossier::ReportsController#show as XLS
2521
+ Parameters: {"report"=>"employee"}
2522
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2523
+ ORDER BY name ASC
2524
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
2525
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2526
+ Processing by SiteController#report as HTML
2527
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2528
+ ORDER BY name ASC
2529
+ Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.2ms)
2530
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2531
+ Processing by Dossier::ReportsController#multi as HTML
2532
+ Parameters: {"report"=>"combination"}
2533
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2534
+ ORDER BY name ASC
2535
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
2536
+ Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.6ms)
2537
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2538
+ ORDER BY name ASC
2539
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
2540
+ Processing by Dossier::ReportsController#show as HTML
2541
+ Parameters: {"report"=>"employee_with_custom_client"}
2542
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
2543
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
2544
+ Connecting to database specified by database.yml
2545
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
2546
+ FACTORY (22.6ms) DROP TABLE IF EXISTS `employees`
2547
+ FACTORY (17.8ms)  CREATE TABLE `employees` (
2548
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2549
+ `name` varchar(255) NOT NULL,
2550
+ `division` varchar(255) NOT NULL,
2551
+ `salary` int(11) NOT NULL,
2552
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
2553
+ `hired_on` date NOT NULL,
2554
+ PRIMARY KEY (`id`)
2555
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2556
+ 
2557
+ FACTORY (0.7ms) TRUNCATE `employees`
2558
+ FACTORY (0.6ms)  INSERT INTO
2559
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2560
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
2561
+ 
2562
+ FACTORY (0.5ms) INSERT INTO
2563
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2564
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
2565
+
2566
+ FACTORY (0.5ms)  INSERT INTO
2567
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2568
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
2569
+ 
2570
+ FACTORY (2.0ms) DROP TABLE IF EXISTS `employees`
2571
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
2572
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
2573
+ `name` TEXT NOT NULL,
2574
+ `division` TEXT NOT NULL,
2575
+ `salary` INTEGER NOT NULL,
2576
+ `suspended` TINYINT NOT NULL DEFAULT 0,
2577
+ `hired_on` DATE NOT NULL
2578
+ );
2579
+ 
2580
+ FACTORY (0.8ms) DELETE FROM `employees`
2581
+ FACTORY (0.9ms)  INSERT INTO
2582
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2583
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
2584
+ 
2585
+ FACTORY (0.9ms) INSERT INTO
2586
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2587
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
2588
+
2589
+ FACTORY (0.9ms)  INSERT INTO
2590
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2591
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
2592
+ 
2593
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
2594
+ Processing by Dossier::ReportsController#show as HTML
2595
+ Parameters: {"report"=>"employee_with_custom_client"}
2596
+ EmployeeWithCustomClientReport (2.0ms) SELECT * FROM `employees`
2597
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (8.9ms)
2598
+ Completed 200 OK in 26ms (Views: 10.4ms | ActiveRecord: 2.0ms)
2599
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
2600
+ Processing by Dossier::ReportsController#multi as HTML
2601
+ Parameters: {"report"=>"combination"}
2602
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2603
+ ORDER BY name ASC
2604
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
2605
+ Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.5ms)
2606
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
2607
+ Processing by Dossier::ReportsController#show as HTML
2608
+ Parameters: {"report"=>"employee_with_custom_view"}
2609
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
2610
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
2611
+ Processing by Dossier::ReportsController#show as HTML
2612
+ Parameters: {"report"=>"employee"}
2613
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2614
+ ORDER BY name ASC
2615
+ Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.3ms)
2616
+ 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-05-22 12:36:21 -0400
2617
+ Processing by Dossier::ReportsController#show as HTML
2618
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
2619
+ EmployeeReport (0.5ms) SELECT * FROM employees WHERE 1=1
2620
+ AND division in (('Tedious Toiling'))
2621
+ AND salary > 10000
2622
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
2623
+ ORDER BY name DESC
2624
+ Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.5ms)
2625
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
2626
+ Processing by Dossier::ReportsController#show as HTML
2627
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
2628
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2629
+ ORDER BY name ASC
2630
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms)
2631
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
2632
+ Processing by Dossier::ReportsController#show as CSV
2633
+ Parameters: {"report"=>"employee"}
2634
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2635
+ ORDER BY name ASC
2636
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
2637
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
2638
+ Processing by Dossier::ReportsController#show as XLS
2639
+ Parameters: {"report"=>"employee"}
2640
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2641
+ ORDER BY name ASC
2642
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
2643
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:36:22 -0400
2644
+ Processing by SiteController#report as HTML
2645
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2646
+ ORDER BY name ASC
2647
+ Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.3ms)
2648
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2649
+ ORDER BY name ASC
2650
+ Connecting to database specified by database.yml
2651
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
2652
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
2653
+ FACTORY (11.6ms)  CREATE TABLE `employees` (
2654
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2655
+ `name` varchar(255) NOT NULL,
2656
+ `division` varchar(255) NOT NULL,
2657
+ `salary` int(11) NOT NULL,
2658
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
2659
+ `hired_on` date NOT NULL,
2660
+ PRIMARY KEY (`id`)
2661
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2662
+ 
2663
+ FACTORY (0.7ms) TRUNCATE `employees`
2664
+ FACTORY (0.6ms)  INSERT INTO
2665
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2666
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
2667
+ 
2668
+ FACTORY (0.5ms) INSERT INTO
2669
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2670
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
2671
+
2672
+ FACTORY (0.5ms)  INSERT INTO
2673
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2674
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
2675
+ 
2676
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
2677
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
2678
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
2679
+ `name` TEXT NOT NULL,
2680
+ `division` TEXT NOT NULL,
2681
+ `salary` INTEGER NOT NULL,
2682
+ `suspended` TINYINT NOT NULL DEFAULT 0,
2683
+ `hired_on` DATE NOT NULL
2684
+ );
2685
+ 
2686
+ FACTORY (0.8ms) DELETE FROM `employees`
2687
+ FACTORY (0.9ms)  INSERT INTO
2688
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2689
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
2690
+ 
2691
+ FACTORY (0.9ms) INSERT INTO
2692
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2693
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
2694
+
2695
+ FACTORY (0.9ms)  INSERT INTO
2696
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2697
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
2698
+ 
2699
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2700
+ ORDER BY name ASC
2701
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2702
+ Processing by SiteController#report as HTML
2703
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2704
+ ORDER BY name ASC
2705
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (15.7ms)
2706
+ Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 0.2ms)
2707
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2708
+ Processing by Dossier::ReportsController#show as HTML
2709
+ Parameters: {"report"=>"employee_with_custom_view"}
2710
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
2711
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2712
+ Processing by Dossier::ReportsController#show as HTML
2713
+ Parameters: {"report"=>"employee"}
2714
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2715
+ ORDER BY name ASC
2716
+ Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.3ms)
2717
+ 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-05-22 12:36:47 -0400
2718
+ Processing by Dossier::ReportsController#show as HTML
2719
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
2720
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
2721
+ AND division in (('Tedious Toiling'))
2722
+ AND salary > 10000
2723
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
2724
+ ORDER BY name DESC
2725
+ Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.4ms)
2726
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2727
+ Processing by Dossier::ReportsController#show as HTML
2728
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
2729
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2730
+ ORDER BY name ASC
2731
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
2732
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2733
+ Processing by Dossier::ReportsController#show as CSV
2734
+ Parameters: {"report"=>"employee"}
2735
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2736
+ ORDER BY name ASC
2737
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
2738
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2739
+ Processing by Dossier::ReportsController#show as XLS
2740
+ Parameters: {"report"=>"employee"}
2741
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2742
+ ORDER BY name ASC
2743
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
2744
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2745
+ Processing by Dossier::ReportsController#show as HTML
2746
+ Parameters: {"report"=>"employee_with_custom_client"}
2747
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
2748
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
2749
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
2750
+ Processing by Dossier::ReportsController#multi as HTML
2751
+ Parameters: {"report"=>"combination"}
2752
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2753
+ ORDER BY name ASC
2754
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
2755
+ Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.6ms)
2756
+ Connecting to database specified by database.yml
2757
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
2758
+ FACTORY (23.2ms) DROP TABLE IF EXISTS `employees`
2759
+ FACTORY (15.0ms)  CREATE TABLE `employees` (
2760
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2761
+ `name` varchar(255) NOT NULL,
2762
+ `division` varchar(255) NOT NULL,
2763
+ `salary` int(11) NOT NULL,
2764
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
2765
+ `hired_on` date NOT NULL,
2766
+ PRIMARY KEY (`id`)
2767
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2768
+ 
2769
+ FACTORY (1.5ms) TRUNCATE `employees`
2770
+ FACTORY (0.8ms)  INSERT INTO
2771
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2772
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
2773
+ 
2774
+ FACTORY (0.7ms) INSERT INTO
2775
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2776
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
2777
+
2778
+ FACTORY (0.6ms)  INSERT INTO
2779
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2780
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
2781
+ 
2782
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
2783
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
2784
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
2785
+ `name` TEXT NOT NULL,
2786
+ `division` TEXT NOT NULL,
2787
+ `salary` INTEGER NOT NULL,
2788
+ `suspended` TINYINT NOT NULL DEFAULT 0,
2789
+ `hired_on` DATE NOT NULL
2790
+ );
2791
+ 
2792
+ FACTORY (0.8ms) DELETE FROM `employees`
2793
+ FACTORY (0.9ms)  INSERT INTO
2794
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2795
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
2796
+ 
2797
+ FACTORY (0.9ms) INSERT INTO
2798
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2799
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
2800
+
2801
+ FACTORY (0.8ms)  INSERT INTO
2802
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2803
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
2804
+ 
2805
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
2806
+ Processing by Dossier::ReportsController#show as HTML
2807
+ Parameters: {"report"=>"employee_with_custom_client"}
2808
+ EmployeeWithCustomClientReport (1.5ms) SELECT * FROM `employees`
2809
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (7.7ms)
2810
+ Completed 200 OK in 48ms (Views: 9.5ms | ActiveRecord: 1.5ms)
2811
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
2812
+ Processing by Dossier::ReportsController#show as HTML
2813
+ Parameters: {"report"=>"employee_with_custom_view"}
2814
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
2815
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
2816
+ Processing by Dossier::ReportsController#show as HTML
2817
+ Parameters: {"report"=>"employee"}
2818
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2819
+ ORDER BY name ASC
2820
+ Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.3ms)
2821
+ 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-05-22 12:37:02 -0400
2822
+ Processing by Dossier::ReportsController#show as HTML
2823
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
2824
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
2825
+ AND division in (('Tedious Toiling'))
2826
+ AND salary > 10000
2827
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
2828
+ ORDER BY name DESC
2829
+ Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.4ms)
2830
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
2831
+ Processing by Dossier::ReportsController#show as HTML
2832
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
2833
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2834
+ ORDER BY name ASC
2835
+ Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.2ms)
2836
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
2837
+ Processing by Dossier::ReportsController#show as CSV
2838
+ Parameters: {"report"=>"employee"}
2839
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2840
+ ORDER BY name ASC
2841
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
2842
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
2843
+ Processing by Dossier::ReportsController#show as XLS
2844
+ Parameters: {"report"=>"employee"}
2845
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2846
+ ORDER BY name ASC
2847
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
2848
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
2849
+ Processing by SiteController#report as HTML
2850
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2851
+ ORDER BY name ASC
2852
+ Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.3ms)
2853
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:37:03 -0400
2854
+ Processing by Dossier::ReportsController#multi as HTML
2855
+ Parameters: {"report"=>"combination"}
2856
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2857
+ ORDER BY name ASC
2858
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
2859
+ Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.5ms)
2860
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2861
+ ORDER BY name ASC
2862
+ Connecting to database specified by database.yml
2863
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
2864
+ FACTORY (22.7ms) DROP TABLE IF EXISTS `employees`
2865
+ FACTORY (23.1ms)  CREATE TABLE `employees` (
2866
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2867
+ `name` varchar(255) NOT NULL,
2868
+ `division` varchar(255) NOT NULL,
2869
+ `salary` int(11) NOT NULL,
2870
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
2871
+ `hired_on` date NOT NULL,
2872
+ PRIMARY KEY (`id`)
2873
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2874
+ 
2875
+ FACTORY (0.9ms) TRUNCATE `employees`
2876
+ FACTORY (0.6ms)  INSERT INTO
2877
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2878
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
2879
+ 
2880
+ FACTORY (0.5ms) INSERT INTO
2881
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2882
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
2883
+
2884
+ FACTORY (0.5ms)  INSERT INTO
2885
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2886
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
2887
+ 
2888
+ FACTORY (2.0ms) DROP TABLE IF EXISTS `employees`
2889
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
2890
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
2891
+ `name` TEXT NOT NULL,
2892
+ `division` TEXT NOT NULL,
2893
+ `salary` INTEGER NOT NULL,
2894
+ `suspended` TINYINT NOT NULL DEFAULT 0,
2895
+ `hired_on` DATE NOT NULL
2896
+ );
2897
+ 
2898
+ FACTORY (0.9ms) DELETE FROM `employees`
2899
+ FACTORY (0.9ms)  INSERT INTO
2900
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2901
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
2902
+ 
2903
+ FACTORY (1.1ms) INSERT INTO
2904
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2905
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
2906
+
2907
+ FACTORY (1.0ms)  INSERT INTO
2908
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
2909
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
2910
+ 
2911
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2912
+ Processing by Dossier::ReportsController#show as HTML
2913
+ Parameters: {"report"=>"employee"}
2914
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2915
+ ORDER BY name ASC
2916
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (15.6ms)
2917
+ Completed 200 OK in 55ms (Views: 18.8ms | ActiveRecord: 0.3ms)
2918
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2919
+ Processing by Dossier::ReportsController#show as HTML
2920
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
2921
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2922
+ ORDER BY name ASC
2923
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms)
2924
+ 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-05-22 12:40:08 -0400
2925
+ Processing by Dossier::ReportsController#show as HTML
2926
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
2927
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
2928
+ AND division in (('Tedious Toiling'))
2929
+ AND salary > 10000
2930
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
2931
+ ORDER BY name DESC
2932
+ Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms)
2933
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2934
+ Processing by Dossier::ReportsController#show as HTML
2935
+ Parameters: {"report"=>"employee_with_custom_view"}
2936
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
2937
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2938
+ Processing by Dossier::ReportsController#show as XLS
2939
+ Parameters: {"report"=>"employee"}
2940
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2941
+ ORDER BY name ASC
2942
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
2943
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2944
+ Processing by Dossier::ReportsController#show as CSV
2945
+ Parameters: {"report"=>"employee"}
2946
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2947
+ ORDER BY name ASC
2948
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
2949
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2950
+ Processing by SiteController#report as HTML
2951
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2952
+ ORDER BY name ASC
2953
+ Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.3ms)
2954
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
2955
+ ORDER BY name ASC
2956
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2957
+ Processing by Dossier::ReportsController#show as HTML
2958
+ Parameters: {"report"=>"employee_with_custom_client"}
2959
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
2960
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)
2961
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
2962
+ Processing by Dossier::ReportsController#multi as HTML
2963
+ Parameters: {"report"=>"combination"}
2964
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
2965
+ ORDER BY name ASC
2966
+ EmployeeWithCustomViewReport (0.4ms) SELECT * FROM employees WHERE suspended = true
2967
+ Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.7ms)
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+ require 'open-uri'
3
+
4
+ describe Dossier::ApplicationHelper do
5
+ describe "#formatted_dossier_report_path" do
6
+ let(:options) { {divisions: %w[Alpha Omega], salary: 125_000} }
7
+ let(:report) { EmployeeReport.new(options) }
8
+ let(:path) { helper.formatted_dossier_report_path('csv', report) }
9
+ let(:uri) { URI.parse(path) }
10
+
11
+ it "generates a path with the given format" do
12
+ expect(uri.path).to match(/\.csv\z/)
13
+ end
14
+
15
+ it "generates a path with the given report name" do
16
+ expect(uri.path).to match(/employee/)
17
+ end
18
+
19
+ it "generates a path with the given report options" do
20
+ expect(uri.query).to eq({options: options}.to_query)
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dossier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-05-21 00:00:00.000000000 Z
14
+ date: 2013-05-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: arel
@@ -314,6 +314,7 @@ files:
314
314
  - spec/fixtures/reports/employee_with_footer.html
315
315
  - spec/fixtures/reports/employee_with_parameters.html
316
316
  - spec/generators/dossier/views/views_spec.rb
317
+ - spec/helpers/dossier/application_helper_spec.rb
317
318
  - spec/requests/employee_spec.rb
318
319
  - spec/requests/employee_with_custom_client_spec.rb
319
320
  - spec/requests/employee_with_custom_controller_spec.rb
@@ -340,7 +341,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
340
341
  version: '0'
341
342
  segments:
342
343
  - 0
343
- hash: -3969565327804791987
344
+ hash: -3765042987867063075
344
345
  required_rubygems_version: !ruby/object:Gem::Requirement
345
346
  none: false
346
347
  requirements:
@@ -349,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
350
  version: '0'
350
351
  segments:
351
352
  - 0
352
- hash: -3969565327804791987
353
+ hash: -3765042987867063075
353
354
  requirements: []
354
355
  rubyforge_project:
355
356
  rubygems_version: 1.8.23
@@ -427,6 +428,7 @@ test_files:
427
428
  - spec/fixtures/reports/employee_with_footer.html
428
429
  - spec/fixtures/reports/employee_with_parameters.html
429
430
  - spec/generators/dossier/views/views_spec.rb
431
+ - spec/helpers/dossier/application_helper_spec.rb
430
432
  - spec/requests/employee_spec.rb
431
433
  - spec/requests/employee_with_custom_client_spec.rb
432
434
  - spec/requests/employee_with_custom_controller_spec.rb