dossier 2.2.0 → 2.3.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.
Files changed (32) hide show
  1. data/app/controllers/dossier/reports_controller.rb +8 -4
  2. data/app/views/dossier/reports/show.html.haml +1 -1
  3. data/lib/dossier/report.rb +4 -4
  4. data/lib/dossier/version.rb +1 -1
  5. data/lib/dossier.rb +12 -3
  6. data/spec/dossier/report_spec.rb +4 -6
  7. data/spec/dossier_spec.rb +14 -1
  8. data/spec/dummy/app/controllers/site_controller.rb +6 -1
  9. data/spec/dummy/config/routes.rb +1 -2
  10. data/spec/dummy/config/setup_load_paths.rb +0 -3
  11. data/spec/dummy/db/test.sqlite3 +0 -0
  12. data/spec/dummy/log/development.log +512 -0
  13. data/spec/dummy/log/test.log +1376 -0
  14. data/spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869 +0 -0
  15. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  16. data/spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c +0 -0
  17. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  18. data/spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc +0 -0
  19. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  20. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  21. data/spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8 +0 -0
  22. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  23. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  24. data/spec/fixtures/reports/employee.html +1 -1
  25. data/spec/fixtures/reports/employee_with_custom_client.html +1 -1
  26. data/spec/requests/employee_with_custom_controller_spec.rb +13 -0
  27. data/spec/support/reports/{employee.rb → employee_report.rb} +0 -0
  28. data/spec/support/reports/{employee_with_custom_client.rb → employee_with_custom_client_report.rb} +0 -0
  29. data/spec/support/reports/{employee_with_custom_view.rb → employee_with_custom_view_report.rb} +0 -0
  30. data/spec/support/reports/hello_my_friends_report.rb +5 -0
  31. data/spec/support/reports/{test.rb → test_report.rb} +0 -0
  32. metadata +36 -12
@@ -543,3 +543,1379 @@ Processing by Dossier::ReportsController#show as HTML
543
543
  Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
544
544
  EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
545
545
  ORDER BY name ASC
546
+ Connecting to database specified by database.yml
547
+ Connecting to database specified by database.yml
548
+ FACTORY (9.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
549
+ FACTORY (38.1ms) DROP TABLE IF EXISTS `employees`
550
+ FACTORY (19.4ms)  CREATE TABLE `employees` (
551
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
552
+ `name` varchar(255) NOT NULL,
553
+ `division` varchar(255) NOT NULL,
554
+ `salary` int(11) NOT NULL,
555
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
556
+ `hired_on` date NOT NULL,
557
+ PRIMARY KEY (`id`)
558
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
559
+ 
560
+ FACTORY (0.9ms) TRUNCATE `employees`
561
+ FACTORY (0.6ms)  INSERT INTO
562
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
563
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
564
+ 
565
+ FACTORY (0.5ms) INSERT INTO
566
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
567
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
568
+
569
+ FACTORY (0.5ms)  INSERT INTO
570
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
571
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
572
+ 
573
+ FACTORY (6.3ms) DROP TABLE IF EXISTS `employees`
574
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
575
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
576
+ `name` TEXT NOT NULL,
577
+ `division` TEXT NOT NULL,
578
+ `salary` INTEGER NOT NULL,
579
+ `suspended` TINYINT NOT NULL DEFAULT 0,
580
+ `hired_on` DATE NOT NULL
581
+ );
582
+ 
583
+ FACTORY (0.9ms) DELETE FROM `employees`
584
+ FACTORY (1.0ms)  INSERT INTO
585
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
586
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
587
+ 
588
+ FACTORY (0.8ms) INSERT INTO
589
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
590
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
591
+
592
+ FACTORY (1.6ms)  INSERT INTO
593
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
594
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
595
+ 
596
+ Connecting to database specified by database.yml
597
+ FACTORY (9.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
598
+ FACTORY (31.1ms) DROP TABLE IF EXISTS `employees`
599
+ FACTORY (9.1ms)  CREATE TABLE `employees` (
600
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
601
+ `name` varchar(255) NOT NULL,
602
+ `division` varchar(255) NOT NULL,
603
+ `salary` int(11) NOT NULL,
604
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
605
+ `hired_on` date NOT NULL,
606
+ PRIMARY KEY (`id`)
607
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
608
+ 
609
+ FACTORY (0.8ms) TRUNCATE `employees`
610
+ FACTORY (0.5ms)  INSERT INTO
611
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
612
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
613
+ 
614
+ FACTORY (0.4ms) INSERT INTO
615
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
616
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
617
+
618
+ FACTORY (0.4ms)  INSERT INTO
619
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
620
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
621
+ 
622
+ FACTORY (5.0ms) DROP TABLE IF EXISTS `employees`
623
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
624
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
625
+ `name` TEXT NOT NULL,
626
+ `division` TEXT NOT NULL,
627
+ `salary` INTEGER NOT NULL,
628
+ `suspended` TINYINT NOT NULL DEFAULT 0,
629
+ `hired_on` DATE NOT NULL
630
+ );
631
+ 
632
+ FACTORY (0.7ms) DELETE FROM `employees`
633
+ FACTORY (1.0ms)  INSERT INTO
634
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
635
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
636
+ 
637
+ FACTORY (0.9ms) INSERT INTO
638
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
639
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
640
+
641
+ FACTORY (0.9ms)  INSERT INTO
642
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
643
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
644
+ 
645
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
646
+ ORDER BY name ASC
647
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 08:49:41 -0500
648
+ Processing by Dossier::ReportsController#show as HTML
649
+ Parameters: {"report"=>"employee_with_custom_client"}
650
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
651
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
652
+ Completed 200 OK in 50ms (Views: 8.6ms | ActiveRecord: 0.0ms)
653
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 08:49:41 -0500
654
+ Processing by Dossier::ReportsController#show as HTML
655
+ Parameters: {"report"=>"employee_with_custom_view"}
656
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
657
+ Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.2ms)
658
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 08:49:41 -0500
659
+ Processing by Dossier::ReportsController#show as HTML
660
+ Parameters: {"report"=>"employee"}
661
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
662
+ ORDER BY name ASC
663
+ Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 0.0ms)
664
+ 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-02-05 08:49:41 -0500
665
+ Processing by Dossier::ReportsController#show as HTML
666
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
667
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
668
+ AND division in (('Tedious Toiling'))
669
+ AND salary > 10000
670
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
671
+ ORDER BY name DESC
672
+ Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.0ms)
673
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 08:49:41 -0500
674
+ Processing by Dossier::ReportsController#show as HTML
675
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
676
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
677
+ ORDER BY name ASC
678
+ Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.0ms)
679
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 08:49:41 -0500
680
+ Processing by Dossier::ReportsController#show as CSV
681
+ Parameters: {"report"=>"employee"}
682
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
683
+ ORDER BY name ASC
684
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
685
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 08:49:41 -0500
686
+ Processing by Dossier::ReportsController#show as XLS
687
+ Parameters: {"report"=>"employee"}
688
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
689
+ ORDER BY name ASC
690
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
691
+ Connecting to database specified by database.yml
692
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
693
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
694
+ FACTORY (17.4ms)  CREATE TABLE `employees` (
695
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
696
+ `name` varchar(255) NOT NULL,
697
+ `division` varchar(255) NOT NULL,
698
+ `salary` int(11) NOT NULL,
699
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
700
+ `hired_on` date NOT NULL,
701
+ PRIMARY KEY (`id`)
702
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
703
+ 
704
+ FACTORY (1.4ms) TRUNCATE `employees`
705
+ FACTORY (0.6ms)  INSERT INTO
706
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
707
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
708
+ 
709
+ FACTORY (0.6ms) INSERT INTO
710
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
711
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
712
+
713
+ FACTORY (0.6ms)  INSERT INTO
714
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
715
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
716
+ 
717
+ FACTORY (1.8ms) DROP TABLE IF EXISTS `employees`
718
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
719
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
720
+ `name` TEXT NOT NULL,
721
+ `division` TEXT NOT NULL,
722
+ `salary` INTEGER NOT NULL,
723
+ `suspended` TINYINT NOT NULL DEFAULT 0,
724
+ `hired_on` DATE NOT NULL
725
+ );
726
+ 
727
+ FACTORY (0.9ms) DELETE FROM `employees`
728
+ FACTORY (0.9ms)  INSERT INTO
729
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
730
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
731
+ 
732
+ FACTORY (0.8ms) INSERT INTO
733
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
734
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
735
+
736
+ FACTORY (0.9ms)  INSERT INTO
737
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
738
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
739
+ 
740
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
741
+ ORDER BY name ASC
742
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 08:50:33 -0500
743
+ Processing by Dossier::ReportsController#show as XLS
744
+ Parameters: {"report"=>"employee"}
745
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
746
+ ORDER BY name ASC
747
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
748
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 08:50:33 -0500
749
+ Processing by Dossier::ReportsController#show as CSV
750
+ Parameters: {"report"=>"employee"}
751
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
752
+ ORDER BY name ASC
753
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
754
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 08:50:33 -0500
755
+ Processing by Dossier::ReportsController#show as HTML
756
+ Parameters: {"report"=>"employee_with_custom_view"}
757
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
758
+ Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.2ms)
759
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 08:50:33 -0500
760
+ Processing by Dossier::ReportsController#show as HTML
761
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
762
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
763
+ ORDER BY name ASC
764
+ Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.0ms)
765
+ 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-02-05 08:50:33 -0500
766
+ Processing by Dossier::ReportsController#show as HTML
767
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
768
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
769
+ AND division in (('Tedious Toiling'))
770
+ AND salary > 10000
771
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
772
+ ORDER BY name DESC
773
+ Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 0.0ms)
774
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 08:50:33 -0500
775
+ Processing by Dossier::ReportsController#show as HTML
776
+ Parameters: {"report"=>"employee"}
777
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
778
+ ORDER BY name ASC
779
+ Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.0ms)
780
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 08:50:33 -0500
781
+ Processing by Dossier::ReportsController#show as HTML
782
+ Parameters: {"report"=>"employee_with_custom_client"}
783
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
784
+ Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
785
+ Connecting to database specified by database.yml
786
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
787
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
788
+ FACTORY (9.3ms)  CREATE TABLE `employees` (
789
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
790
+ `name` varchar(255) NOT NULL,
791
+ `division` varchar(255) NOT NULL,
792
+ `salary` int(11) NOT NULL,
793
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
794
+ `hired_on` date NOT NULL,
795
+ PRIMARY KEY (`id`)
796
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
797
+ 
798
+ FACTORY (0.8ms) TRUNCATE `employees`
799
+ FACTORY (0.6ms)  INSERT INTO
800
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
801
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
802
+ 
803
+ FACTORY (0.6ms) INSERT INTO
804
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
805
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
806
+
807
+ FACTORY (0.5ms)  INSERT INTO
808
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
809
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
810
+ 
811
+ FACTORY (1.6ms) DROP TABLE IF EXISTS `employees`
812
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
813
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
814
+ `name` TEXT NOT NULL,
815
+ `division` TEXT NOT NULL,
816
+ `salary` INTEGER NOT NULL,
817
+ `suspended` TINYINT NOT NULL DEFAULT 0,
818
+ `hired_on` DATE NOT NULL
819
+ );
820
+ 
821
+ FACTORY (0.9ms) DELETE FROM `employees`
822
+ FACTORY (0.9ms)  INSERT INTO
823
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
824
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
825
+ 
826
+ FACTORY (0.8ms) INSERT INTO
827
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
828
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
829
+
830
+ FACTORY (0.7ms)  INSERT INTO
831
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
832
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
833
+ 
834
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 08:53:59 -0500
835
+ Processing by Dossier::ReportsController#show as XLS
836
+ Parameters: {"report"=>"employee"}
837
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
838
+ ORDER BY name ASC
839
+ Completed 200 OK in 6ms (ActiveRecord: 0.3ms)
840
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 08:53:59 -0500
841
+ Processing by Dossier::ReportsController#show as CSV
842
+ Parameters: {"report"=>"employee"}
843
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
844
+ ORDER BY name ASC
845
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
846
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 08:53:59 -0500
847
+ Processing by Dossier::ReportsController#show as HTML
848
+ Parameters: {"report"=>"employee_with_custom_view"}
849
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
850
+ Completed 500 Internal Server Error in 4ms
851
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 08:53:59 -0500
852
+ Processing by Dossier::ReportsController#show as HTML
853
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
854
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
855
+ ORDER BY name ASC
856
+ Completed 500 Internal Server Error in 4ms
857
+ 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-02-05 08:53:59 -0500
858
+ Processing by Dossier::ReportsController#show as HTML
859
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
860
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
861
+ AND division in (('Tedious Toiling'))
862
+ AND salary > 10000
863
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
864
+ ORDER BY name DESC
865
+ Completed 500 Internal Server Error in 7ms
866
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 08:53:59 -0500
867
+ Processing by Dossier::ReportsController#show as HTML
868
+ Parameters: {"report"=>"employee"}
869
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
870
+ ORDER BY name ASC
871
+ Completed 500 Internal Server Error in 4ms
872
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 08:53:59 -0500
873
+ Processing by Dossier::ReportsController#show as HTML
874
+ Parameters: {"report"=>"employee_with_custom_client"}
875
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
876
+ Completed 500 Internal Server Error in 2ms
877
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
878
+ ORDER BY name ASC
879
+ Connecting to database specified by database.yml
880
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
881
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
882
+ FACTORY (13.7ms)  CREATE TABLE `employees` (
883
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
884
+ `name` varchar(255) NOT NULL,
885
+ `division` varchar(255) NOT NULL,
886
+ `salary` int(11) NOT NULL,
887
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
888
+ `hired_on` date NOT NULL,
889
+ PRIMARY KEY (`id`)
890
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
891
+ 
892
+ FACTORY (0.7ms) TRUNCATE `employees`
893
+ FACTORY (0.5ms)  INSERT INTO
894
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
895
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
896
+ 
897
+ FACTORY (0.5ms) INSERT INTO
898
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
899
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
900
+
901
+ FACTORY (0.4ms)  INSERT INTO
902
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
903
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
904
+ 
905
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
906
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
907
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
908
+ `name` TEXT NOT NULL,
909
+ `division` TEXT NOT NULL,
910
+ `salary` INTEGER NOT NULL,
911
+ `suspended` TINYINT NOT NULL DEFAULT 0,
912
+ `hired_on` DATE NOT NULL
913
+ );
914
+ 
915
+ FACTORY (0.8ms) DELETE FROM `employees`
916
+ FACTORY (0.9ms)  INSERT INTO
917
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
918
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
919
+ 
920
+ FACTORY (0.8ms) INSERT INTO
921
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
922
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
923
+
924
+ FACTORY (1.0ms)  INSERT INTO
925
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
926
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
927
+ 
928
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 08:54:10 -0500
929
+ Processing by Dossier::ReportsController#show as HTML
930
+ Parameters: {"report"=>"employee_with_custom_view"}
931
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
932
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.8ms)
933
+ Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.3ms)
934
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 08:54:10 -0500
935
+ Processing by Dossier::ReportsController#show as HTML
936
+ Parameters: {"report"=>"employee"}
937
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
938
+ ORDER BY name ASC
939
+ Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 0.0ms)
940
+ 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-02-05 08:54:10 -0500
941
+ Processing by Dossier::ReportsController#show as HTML
942
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
943
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
944
+ AND division in (('Tedious Toiling'))
945
+ AND salary > 10000
946
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
947
+ ORDER BY name DESC
948
+ Completed 200 OK in 10ms (Views: 2.4ms | ActiveRecord: 0.0ms)
949
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 08:54:10 -0500
950
+ Processing by Dossier::ReportsController#show as HTML
951
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
952
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
953
+ ORDER BY name ASC
954
+ Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
955
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 08:54:10 -0500
956
+ Processing by Dossier::ReportsController#show as CSV
957
+ Parameters: {"report"=>"employee"}
958
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
959
+ ORDER BY name ASC
960
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
961
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 08:54:10 -0500
962
+ Processing by Dossier::ReportsController#show as XLS
963
+ Parameters: {"report"=>"employee"}
964
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
965
+ ORDER BY name ASC
966
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
967
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 08:54:10 -0500
968
+ Processing by Dossier::ReportsController#show as HTML
969
+ Parameters: {"report"=>"employee_with_custom_client"}
970
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
971
+ Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
972
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
973
+ ORDER BY name ASC
974
+ Connecting to database specified by database.yml
975
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
976
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
977
+ FACTORY (14.2ms)  CREATE TABLE `employees` (
978
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
979
+ `name` varchar(255) NOT NULL,
980
+ `division` varchar(255) NOT NULL,
981
+ `salary` int(11) NOT NULL,
982
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
983
+ `hired_on` date NOT NULL,
984
+ PRIMARY KEY (`id`)
985
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
986
+ 
987
+ FACTORY (1.0ms) TRUNCATE `employees`
988
+ FACTORY (0.5ms)  INSERT INTO
989
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
990
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
991
+ 
992
+ FACTORY (0.4ms) INSERT INTO
993
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
994
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
995
+
996
+ FACTORY (0.4ms)  INSERT INTO
997
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
998
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
999
+ 
1000
+ FACTORY (1.3ms) DROP TABLE IF EXISTS `employees`
1001
+ FACTORY (0.8ms)  CREATE TABLE `employees` (
1002
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1003
+ `name` TEXT NOT NULL,
1004
+ `division` TEXT NOT NULL,
1005
+ `salary` INTEGER NOT NULL,
1006
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1007
+ `hired_on` DATE NOT NULL
1008
+ );
1009
+ 
1010
+ FACTORY (0.7ms) DELETE FROM `employees`
1011
+ FACTORY (0.9ms)  INSERT INTO
1012
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1013
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1014
+ 
1015
+ FACTORY (1.1ms) INSERT INTO
1016
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1017
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1018
+
1019
+ FACTORY (1.0ms)  INSERT INTO
1020
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1021
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1022
+ 
1023
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 08:55:27 -0500
1024
+ Processing by Dossier::ReportsController#show as HTML
1025
+ Parameters: {"report"=>"employee_with_custom_client"}
1026
+ EmployeeWithCustomClientReport (1.4ms) SELECT * FROM `employees`
1027
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.7ms)
1028
+ Completed 200 OK in 17ms (Views: 6.8ms | ActiveRecord: 0.0ms)
1029
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1030
+ ORDER BY name ASC
1031
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 08:55:27 -0500
1032
+ Processing by Dossier::ReportsController#show as HTML
1033
+ Parameters: {"report"=>"employee_with_custom_view"}
1034
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
1035
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)
1036
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 08:55:27 -0500
1037
+ Processing by Dossier::ReportsController#show as HTML
1038
+ Parameters: {"report"=>"employee"}
1039
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1040
+ ORDER BY name ASC
1041
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1042
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 08:55:27 -0500
1043
+ Processing by Dossier::ReportsController#show as HTML
1044
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
1045
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1046
+ ORDER BY name ASC
1047
+ Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.0ms)
1048
+ 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-02-05 08:55:27 -0500
1049
+ Processing by Dossier::ReportsController#show as HTML
1050
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
1051
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1052
+ AND division in (('Tedious Toiling'))
1053
+ AND salary > 10000
1054
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
1055
+ ORDER BY name DESC
1056
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.0ms)
1057
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 08:55:27 -0500
1058
+ Processing by Dossier::ReportsController#show as XLS
1059
+ Parameters: {"report"=>"employee"}
1060
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
1061
+ ORDER BY name ASC
1062
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
1063
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 08:55:27 -0500
1064
+ Processing by Dossier::ReportsController#show as CSV
1065
+ Parameters: {"report"=>"employee"}
1066
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1067
+ ORDER BY name ASC
1068
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
1069
+ Connecting to database specified by database.yml
1070
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1071
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
1072
+ FACTORY (13.9ms)  CREATE TABLE `employees` (
1073
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1074
+ `name` varchar(255) NOT NULL,
1075
+ `division` varchar(255) NOT NULL,
1076
+ `salary` int(11) NOT NULL,
1077
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1078
+ `hired_on` date NOT NULL,
1079
+ PRIMARY KEY (`id`)
1080
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1081
+ 
1082
+ FACTORY (1.7ms) TRUNCATE `employees`
1083
+ FACTORY (0.9ms)  INSERT INTO
1084
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1085
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1086
+ 
1087
+ FACTORY (0.7ms) INSERT INTO
1088
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1089
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1090
+
1091
+ FACTORY (0.7ms)  INSERT INTO
1092
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1093
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1094
+ 
1095
+ FACTORY (1.6ms) DROP TABLE IF EXISTS `employees`
1096
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
1097
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1098
+ `name` TEXT NOT NULL,
1099
+ `division` TEXT NOT NULL,
1100
+ `salary` INTEGER NOT NULL,
1101
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1102
+ `hired_on` DATE NOT NULL
1103
+ );
1104
+ 
1105
+ FACTORY (0.8ms) DELETE FROM `employees`
1106
+ FACTORY (0.9ms)  INSERT INTO
1107
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1108
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1109
+ 
1110
+ FACTORY (1.0ms) INSERT INTO
1111
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1112
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1113
+
1114
+ FACTORY (0.7ms)  INSERT INTO
1115
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1116
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1117
+ 
1118
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1119
+ ORDER BY name ASC
1120
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 08:57:06 -0500
1121
+ Processing by Dossier::ReportsController#show as HTML
1122
+ Parameters: {"report"=>"employee_with_custom_view"}
1123
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
1124
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.8ms)
1125
+ Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 0.2ms)
1126
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 08:57:06 -0500
1127
+ Processing by Dossier::ReportsController#show as HTML
1128
+ Parameters: {"report"=>"employee"}
1129
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1130
+ ORDER BY name ASC
1131
+ Completed 200 OK in 33ms (Views: 5.9ms | ActiveRecord: 0.0ms)
1132
+ 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-02-05 08:57:06 -0500
1133
+ Processing by Dossier::ReportsController#show as HTML
1134
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
1135
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1136
+ AND division in (('Tedious Toiling'))
1137
+ AND salary > 10000
1138
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
1139
+ ORDER BY name DESC
1140
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
1141
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 08:57:06 -0500
1142
+ Processing by Dossier::ReportsController#show as HTML
1143
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
1144
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1145
+ ORDER BY name ASC
1146
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.0ms)
1147
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 08:57:06 -0500
1148
+ Processing by Dossier::ReportsController#show as CSV
1149
+ Parameters: {"report"=>"employee"}
1150
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1151
+ ORDER BY name ASC
1152
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
1153
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 08:57:06 -0500
1154
+ Processing by Dossier::ReportsController#show as XLS
1155
+ Parameters: {"report"=>"employee"}
1156
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1157
+ ORDER BY name ASC
1158
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
1159
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 08:57:06 -0500
1160
+ Processing by Dossier::ReportsController#show as HTML
1161
+ Parameters: {"report"=>"employee_with_custom_client"}
1162
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
1163
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.0ms)
1164
+ Connecting to database specified by database.yml
1165
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1166
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
1167
+ FACTORY (12.0ms)  CREATE TABLE `employees` (
1168
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1169
+ `name` varchar(255) NOT NULL,
1170
+ `division` varchar(255) NOT NULL,
1171
+ `salary` int(11) NOT NULL,
1172
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1173
+ `hired_on` date NOT NULL,
1174
+ PRIMARY KEY (`id`)
1175
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1176
+ 
1177
+ FACTORY (0.8ms) TRUNCATE `employees`
1178
+ FACTORY (0.6ms)  INSERT INTO
1179
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1180
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1181
+ 
1182
+ FACTORY (0.5ms) INSERT INTO
1183
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1184
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1185
+
1186
+ FACTORY (0.5ms)  INSERT INTO
1187
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1188
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1189
+ 
1190
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
1191
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
1192
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1193
+ `name` TEXT NOT NULL,
1194
+ `division` TEXT NOT NULL,
1195
+ `salary` INTEGER NOT NULL,
1196
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1197
+ `hired_on` DATE NOT NULL
1198
+ );
1199
+ 
1200
+ FACTORY (1.3ms) DELETE FROM `employees`
1201
+ FACTORY (0.9ms)  INSERT INTO
1202
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1203
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1204
+ 
1205
+ FACTORY (1.0ms) INSERT INTO
1206
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1207
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1208
+
1209
+ FACTORY (0.8ms)  INSERT INTO
1210
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1211
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1212
+ 
1213
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1214
+ ORDER BY name ASC
1215
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 08:58:26 -0500
1216
+ Processing by Dossier::ReportsController#show as XLS
1217
+ Parameters: {"report"=>"employee"}
1218
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1219
+ ORDER BY name ASC
1220
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
1221
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 08:58:26 -0500
1222
+ Processing by Dossier::ReportsController#show as CSV
1223
+ Parameters: {"report"=>"employee"}
1224
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1225
+ ORDER BY name ASC
1226
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
1227
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 08:58:26 -0500
1228
+ Processing by Dossier::ReportsController#show as HTML
1229
+ Parameters: {"report"=>"employee_with_custom_view"}
1230
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
1231
+ Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 0.2ms)
1232
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 08:58:26 -0500
1233
+ Processing by Dossier::ReportsController#show as HTML
1234
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
1235
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1236
+ ORDER BY name ASC
1237
+ Completed 200 OK in 36ms (Views: 8.7ms | ActiveRecord: 0.0ms)
1238
+ 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-02-05 08:58:26 -0500
1239
+ Processing by Dossier::ReportsController#show as HTML
1240
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
1241
+ EmployeeReport (0.4ms) SELECT * FROM employees WHERE 1=1
1242
+ AND division in (('Tedious Toiling'))
1243
+ AND salary > 10000
1244
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
1245
+ ORDER BY name DESC
1246
+ Completed 200 OK in 9ms (Views: 2.5ms | ActiveRecord: 0.0ms)
1247
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 08:58:26 -0500
1248
+ Processing by Dossier::ReportsController#show as HTML
1249
+ Parameters: {"report"=>"employee"}
1250
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1251
+ ORDER BY name ASC
1252
+ Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1253
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 08:58:26 -0500
1254
+ Processing by Dossier::ReportsController#show as HTML
1255
+ Parameters: {"report"=>"employee_with_custom_client"}
1256
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
1257
+ Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.0ms)
1258
+ Connecting to database specified by database.yml
1259
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1260
+ FACTORY (0.7ms) DROP TABLE IF EXISTS `employees`
1261
+ FACTORY (18.1ms)  CREATE TABLE `employees` (
1262
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1263
+ `name` varchar(255) NOT NULL,
1264
+ `division` varchar(255) NOT NULL,
1265
+ `salary` int(11) NOT NULL,
1266
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1267
+ `hired_on` date NOT NULL,
1268
+ PRIMARY KEY (`id`)
1269
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1270
+ 
1271
+ FACTORY (1.1ms) TRUNCATE `employees`
1272
+ FACTORY (0.6ms)  INSERT INTO
1273
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1274
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1275
+ 
1276
+ FACTORY (0.9ms) INSERT INTO
1277
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1278
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1279
+
1280
+ FACTORY (0.5ms)  INSERT INTO
1281
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1282
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1283
+ 
1284
+ FACTORY (1.4ms) DROP TABLE IF EXISTS `employees`
1285
+ FACTORY (1.4ms)  CREATE TABLE `employees` (
1286
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1287
+ `name` TEXT NOT NULL,
1288
+ `division` TEXT NOT NULL,
1289
+ `salary` INTEGER NOT NULL,
1290
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1291
+ `hired_on` DATE NOT NULL
1292
+ );
1293
+ 
1294
+ FACTORY (0.8ms) DELETE FROM `employees`
1295
+ FACTORY (1.2ms)  INSERT INTO
1296
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1297
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1298
+ 
1299
+ FACTORY (0.8ms) INSERT INTO
1300
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1301
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1302
+
1303
+ FACTORY (1.0ms)  INSERT INTO
1304
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1305
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1306
+ 
1307
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:00:17 -0500
1308
+ Connecting to database specified by database.yml
1309
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1310
+ FACTORY (1.0ms) DROP TABLE IF EXISTS `employees`
1311
+ FACTORY (13.7ms)  CREATE TABLE `employees` (
1312
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1313
+ `name` varchar(255) NOT NULL,
1314
+ `division` varchar(255) NOT NULL,
1315
+ `salary` int(11) NOT NULL,
1316
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1317
+ `hired_on` date NOT NULL,
1318
+ PRIMARY KEY (`id`)
1319
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1320
+ 
1321
+ FACTORY (1.1ms) TRUNCATE `employees`
1322
+ FACTORY (0.5ms)  INSERT INTO
1323
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1324
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1325
+ 
1326
+ FACTORY (0.4ms) INSERT INTO
1327
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1328
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1329
+
1330
+ FACTORY (0.5ms)  INSERT INTO
1331
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1332
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1333
+ 
1334
+ FACTORY (3.4ms) DROP TABLE IF EXISTS `employees`
1335
+ FACTORY (0.8ms)  CREATE TABLE `employees` (
1336
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1337
+ `name` TEXT NOT NULL,
1338
+ `division` TEXT NOT NULL,
1339
+ `salary` INTEGER NOT NULL,
1340
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1341
+ `hired_on` DATE NOT NULL
1342
+ );
1343
+ 
1344
+ FACTORY (0.6ms) DELETE FROM `employees`
1345
+ FACTORY (0.7ms)  INSERT INTO
1346
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1347
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1348
+ 
1349
+ FACTORY (1.1ms) INSERT INTO
1350
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1351
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1352
+
1353
+ FACTORY (0.9ms)  INSERT INTO
1354
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1355
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1356
+ 
1357
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:00:27 -0500
1358
+ Connecting to database specified by database.yml
1359
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1360
+ FACTORY (1.6ms) DROP TABLE IF EXISTS `employees`
1361
+ FACTORY (13.7ms)  CREATE TABLE `employees` (
1362
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1363
+ `name` varchar(255) NOT NULL,
1364
+ `division` varchar(255) NOT NULL,
1365
+ `salary` int(11) NOT NULL,
1366
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1367
+ `hired_on` date NOT NULL,
1368
+ PRIMARY KEY (`id`)
1369
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1370
+ 
1371
+ FACTORY (0.8ms) TRUNCATE `employees`
1372
+ FACTORY (0.5ms)  INSERT INTO
1373
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1374
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1375
+ 
1376
+ FACTORY (0.5ms) INSERT INTO
1377
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1378
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1379
+
1380
+ FACTORY (0.5ms)  INSERT INTO
1381
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1382
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1383
+ 
1384
+ FACTORY (2.5ms) DROP TABLE IF EXISTS `employees`
1385
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
1386
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1387
+ `name` TEXT NOT NULL,
1388
+ `division` TEXT NOT NULL,
1389
+ `salary` INTEGER NOT NULL,
1390
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1391
+ `hired_on` DATE NOT NULL
1392
+ );
1393
+ 
1394
+ FACTORY (0.8ms) DELETE FROM `employees`
1395
+ FACTORY (0.9ms)  INSERT INTO
1396
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1397
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1398
+ 
1399
+ FACTORY (0.9ms) INSERT INTO
1400
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1401
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1402
+
1403
+ FACTORY (0.8ms)  INSERT INTO
1404
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1405
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1406
+ 
1407
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:05:58 -0500
1408
+ Processing by SiteController#report as HTML
1409
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1410
+ ORDER BY name ASC
1411
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (8.0ms)
1412
+ Completed 500 Internal Server Error in 42ms
1413
+ Connecting to database specified by database.yml
1414
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1415
+ FACTORY (0.7ms) DROP TABLE IF EXISTS `employees`
1416
+ FACTORY (22.9ms)  CREATE TABLE `employees` (
1417
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1418
+ `name` varchar(255) NOT NULL,
1419
+ `division` varchar(255) NOT NULL,
1420
+ `salary` int(11) NOT NULL,
1421
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1422
+ `hired_on` date NOT NULL,
1423
+ PRIMARY KEY (`id`)
1424
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1425
+ 
1426
+ FACTORY (0.9ms) TRUNCATE `employees`
1427
+ FACTORY (0.6ms)  INSERT INTO
1428
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1429
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1430
+ 
1431
+ FACTORY (0.5ms) INSERT INTO
1432
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1433
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1434
+
1435
+ FACTORY (0.5ms)  INSERT INTO
1436
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1437
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1438
+ 
1439
+ FACTORY (1.6ms) DROP TABLE IF EXISTS `employees`
1440
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
1441
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1442
+ `name` TEXT NOT NULL,
1443
+ `division` TEXT NOT NULL,
1444
+ `salary` INTEGER NOT NULL,
1445
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1446
+ `hired_on` DATE NOT NULL
1447
+ );
1448
+ 
1449
+ FACTORY (0.7ms) DELETE FROM `employees`
1450
+ FACTORY (1.0ms)  INSERT INTO
1451
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1452
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1453
+ 
1454
+ FACTORY (0.9ms) INSERT INTO
1455
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1456
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1457
+
1458
+ FACTORY (0.7ms)  INSERT INTO
1459
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1460
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1461
+ 
1462
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:07:12 -0500
1463
+ Processing by SiteController#report as HTML
1464
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1465
+ ORDER BY name ASC
1466
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (7.6ms)
1467
+ Completed 200 OK in 41ms (Views: 35.8ms | ActiveRecord: 0.3ms)
1468
+ Connecting to database specified by database.yml
1469
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1470
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
1471
+ FACTORY (11.0ms)  CREATE TABLE `employees` (
1472
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1473
+ `name` varchar(255) NOT NULL,
1474
+ `division` varchar(255) NOT NULL,
1475
+ `salary` int(11) NOT NULL,
1476
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1477
+ `hired_on` date NOT NULL,
1478
+ PRIMARY KEY (`id`)
1479
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1480
+ 
1481
+ FACTORY (0.8ms) TRUNCATE `employees`
1482
+ FACTORY (0.6ms)  INSERT INTO
1483
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1484
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1485
+ 
1486
+ FACTORY (0.5ms) INSERT INTO
1487
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1488
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1489
+
1490
+ FACTORY (0.4ms)  INSERT INTO
1491
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1492
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1493
+ 
1494
+ FACTORY (1.3ms) DROP TABLE IF EXISTS `employees`
1495
+ FACTORY (1.0ms)  CREATE TABLE `employees` (
1496
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1497
+ `name` TEXT NOT NULL,
1498
+ `division` TEXT NOT NULL,
1499
+ `salary` INTEGER NOT NULL,
1500
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1501
+ `hired_on` DATE NOT NULL
1502
+ );
1503
+ 
1504
+ FACTORY (1.0ms) DELETE FROM `employees`
1505
+ FACTORY (1.0ms)  INSERT INTO
1506
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1507
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1508
+ 
1509
+ FACTORY (1.3ms) INSERT INTO
1510
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1511
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1512
+
1513
+ FACTORY (0.9ms)  INSERT INTO
1514
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1515
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1516
+ 
1517
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:07:30 -0500
1518
+ Processing by SiteController#report as HTML
1519
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1520
+ ORDER BY name ASC
1521
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (7.6ms)
1522
+ Completed 200 OK in 39ms (Views: 34.9ms | ActiveRecord: 0.3ms)
1523
+ Connecting to database specified by database.yml
1524
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1525
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
1526
+ FACTORY (12.9ms)  CREATE TABLE `employees` (
1527
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1528
+ `name` varchar(255) NOT NULL,
1529
+ `division` varchar(255) NOT NULL,
1530
+ `salary` int(11) NOT NULL,
1531
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1532
+ `hired_on` date NOT NULL,
1533
+ PRIMARY KEY (`id`)
1534
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1535
+ 
1536
+ FACTORY (0.9ms) TRUNCATE `employees`
1537
+ FACTORY (0.5ms)  INSERT INTO
1538
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1539
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1540
+ 
1541
+ FACTORY (0.5ms) INSERT INTO
1542
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1543
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1544
+
1545
+ FACTORY (0.5ms)  INSERT INTO
1546
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1547
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1548
+ 
1549
+ FACTORY (1.9ms) DROP TABLE IF EXISTS `employees`
1550
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
1551
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1552
+ `name` TEXT NOT NULL,
1553
+ `division` TEXT NOT NULL,
1554
+ `salary` INTEGER NOT NULL,
1555
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1556
+ `hired_on` DATE NOT NULL
1557
+ );
1558
+ 
1559
+ FACTORY (0.8ms) DELETE FROM `employees`
1560
+ FACTORY (0.9ms)  INSERT INTO
1561
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1562
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1563
+ 
1564
+ FACTORY (0.9ms) INSERT INTO
1565
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1566
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1567
+
1568
+ FACTORY (0.8ms)  INSERT INTO
1569
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1570
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1571
+ 
1572
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 09:07:50 -0500
1573
+ Processing by Dossier::ReportsController#show as HTML
1574
+ Parameters: {"report"=>"employee_with_custom_client"}
1575
+ EmployeeWithCustomClientReport (1.4ms) SELECT * FROM `employees`
1576
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.5ms)
1577
+ Completed 200 OK in 16ms (Views: 6.9ms | ActiveRecord: 0.0ms)
1578
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:07:50 -0500
1579
+ Processing by SiteController#report as HTML
1580
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1581
+ ORDER BY name ASC
1582
+ Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.3ms)
1583
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1584
+ ORDER BY name ASC
1585
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 09:07:51 -0500
1586
+ Processing by Dossier::ReportsController#show as HTML
1587
+ Parameters: {"report"=>"employee"}
1588
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1589
+ ORDER BY name ASC
1590
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1591
+ 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-02-05 09:07:51 -0500
1592
+ Processing by Dossier::ReportsController#show as HTML
1593
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
1594
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1595
+ AND division in (('Tedious Toiling'))
1596
+ AND salary > 10000
1597
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
1598
+ ORDER BY name DESC
1599
+ Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.0ms)
1600
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 09:07:51 -0500
1601
+ Processing by Dossier::ReportsController#show as HTML
1602
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
1603
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1604
+ ORDER BY name ASC
1605
+ Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.0ms)
1606
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 09:07:51 -0500
1607
+ Processing by Dossier::ReportsController#show as HTML
1608
+ Parameters: {"report"=>"employee_with_custom_view"}
1609
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
1610
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.2ms)
1611
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 09:07:51 -0500
1612
+ Processing by Dossier::ReportsController#show as CSV
1613
+ Parameters: {"report"=>"employee"}
1614
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1615
+ ORDER BY name ASC
1616
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
1617
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 09:07:51 -0500
1618
+ Processing by Dossier::ReportsController#show as XLS
1619
+ Parameters: {"report"=>"employee"}
1620
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1621
+ ORDER BY name ASC
1622
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
1623
+ Connecting to database specified by database.yml
1624
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1625
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
1626
+ FACTORY (25.7ms)  CREATE TABLE `employees` (
1627
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1628
+ `name` varchar(255) NOT NULL,
1629
+ `division` varchar(255) NOT NULL,
1630
+ `salary` int(11) NOT NULL,
1631
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1632
+ `hired_on` date NOT NULL,
1633
+ PRIMARY KEY (`id`)
1634
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1635
+ 
1636
+ FACTORY (1.0ms) TRUNCATE `employees`
1637
+ FACTORY (0.6ms)  INSERT INTO
1638
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1639
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1640
+ 
1641
+ FACTORY (0.5ms) INSERT INTO
1642
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1643
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1644
+
1645
+ FACTORY (0.5ms)  INSERT INTO
1646
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1647
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1648
+ 
1649
+ FACTORY (2.1ms) DROP TABLE IF EXISTS `employees`
1650
+ FACTORY (0.9ms)  CREATE TABLE `employees` (
1651
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1652
+ `name` TEXT NOT NULL,
1653
+ `division` TEXT NOT NULL,
1654
+ `salary` INTEGER NOT NULL,
1655
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1656
+ `hired_on` DATE NOT NULL
1657
+ );
1658
+ 
1659
+ FACTORY (0.8ms) DELETE FROM `employees`
1660
+ FACTORY (0.9ms)  INSERT INTO
1661
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1662
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1663
+ 
1664
+ FACTORY (1.0ms) INSERT INTO
1665
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1666
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1667
+
1668
+ FACTORY (0.7ms)  INSERT INTO
1669
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1670
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1671
+ 
1672
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 09:08:09 -0500
1673
+ Processing by Dossier::ReportsController#show as XLS
1674
+ Parameters: {"report"=>"employee"}
1675
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1676
+ ORDER BY name ASC
1677
+ Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
1678
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 09:08:09 -0500
1679
+ Processing by Dossier::ReportsController#show as HTML
1680
+ Parameters: {"report"=>"employee_with_custom_view"}
1681
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
1682
+ Completed 200 OK in 13ms (Views: 9.9ms | ActiveRecord: 0.2ms)
1683
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 09:08:09 -0500
1684
+ Processing by Dossier::ReportsController#show as HTML
1685
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
1686
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1687
+ ORDER BY name ASC
1688
+ Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 0.0ms)
1689
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 09:08:09 -0500
1690
+ Processing by Dossier::ReportsController#show as HTML
1691
+ Parameters: {"report"=>"employee"}
1692
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1693
+ ORDER BY name ASC
1694
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1695
+ 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-02-05 09:08:09 -0500
1696
+ Processing by Dossier::ReportsController#show as HTML
1697
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
1698
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1699
+ AND division in (('Tedious Toiling'))
1700
+ AND salary > 10000
1701
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
1702
+ ORDER BY name DESC
1703
+ Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.0ms)
1704
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 09:08:09 -0500
1705
+ Processing by Dossier::ReportsController#show as CSV
1706
+ Parameters: {"report"=>"employee"}
1707
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1708
+ ORDER BY name ASC
1709
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
1710
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:08:09 -0500
1711
+ Processing by SiteController#report as HTML
1712
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1713
+ ORDER BY name ASC
1714
+ Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.3ms)
1715
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 09:08:09 -0500
1716
+ Processing by Dossier::ReportsController#show as HTML
1717
+ Parameters: {"report"=>"employee_with_custom_client"}
1718
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
1719
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.0ms)
1720
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1721
+ ORDER BY name ASC
1722
+ Connecting to database specified by database.yml
1723
+ FACTORY (0.3ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1724
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
1725
+ FACTORY (15.6ms)  CREATE TABLE `employees` (
1726
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1727
+ `name` varchar(255) NOT NULL,
1728
+ `division` varchar(255) NOT NULL,
1729
+ `salary` int(11) NOT NULL,
1730
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1731
+ `hired_on` date NOT NULL,
1732
+ PRIMARY KEY (`id`)
1733
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1734
+ 
1735
+ FACTORY (0.8ms) TRUNCATE `employees`
1736
+ FACTORY (0.6ms)  INSERT INTO
1737
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1738
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1739
+ 
1740
+ FACTORY (0.5ms) INSERT INTO
1741
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1742
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1743
+
1744
+ FACTORY (0.4ms)  INSERT INTO
1745
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1746
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1747
+ 
1748
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
1749
+ FACTORY (1.2ms)  CREATE TABLE `employees` (
1750
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1751
+ `name` TEXT NOT NULL,
1752
+ `division` TEXT NOT NULL,
1753
+ `salary` INTEGER NOT NULL,
1754
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1755
+ `hired_on` DATE NOT NULL
1756
+ );
1757
+ 
1758
+ FACTORY (0.8ms) DELETE FROM `employees`
1759
+ FACTORY (0.8ms)  INSERT INTO
1760
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1761
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1762
+ 
1763
+ FACTORY (1.1ms) INSERT INTO
1764
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1765
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1766
+
1767
+ FACTORY (0.9ms)  INSERT INTO
1768
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1769
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1770
+ 
1771
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1772
+ ORDER BY name ASC
1773
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 09:09:47 -0500
1774
+ Processing by Dossier::ReportsController#show as HTML
1775
+ Parameters: {"report"=>"employee_with_custom_view"}
1776
+ EmployeeWithCustomViewReport (0.3ms) SELECT * FROM employees WHERE suspended = true
1777
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.8ms)
1778
+ Completed 200 OK in 36ms (Views: 32.4ms | ActiveRecord: 0.3ms)
1779
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 09:09:47 -0500
1780
+ Processing by Dossier::ReportsController#show as HTML
1781
+ Parameters: {"report"=>"employee"}
1782
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1783
+ ORDER BY name ASC
1784
+ Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.0ms)
1785
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 09:09:47 -0500
1786
+ Processing by Dossier::ReportsController#show as HTML
1787
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
1788
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1789
+ ORDER BY name ASC
1790
+ Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1791
+ 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-02-05 09:09:48 -0500
1792
+ Processing by Dossier::ReportsController#show as HTML
1793
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
1794
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1795
+ AND division in (('Tedious Toiling'))
1796
+ AND salary > 10000
1797
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
1798
+ ORDER BY name DESC
1799
+ Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
1800
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 09:09:48 -0500
1801
+ Processing by Dossier::ReportsController#show as XLS
1802
+ Parameters: {"report"=>"employee"}
1803
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1804
+ ORDER BY name ASC
1805
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
1806
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 09:09:48 -0500
1807
+ Processing by Dossier::ReportsController#show as CSV
1808
+ Parameters: {"report"=>"employee"}
1809
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1810
+ ORDER BY name ASC
1811
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
1812
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 09:09:48 -0500
1813
+ Processing by Dossier::ReportsController#show as HTML
1814
+ Parameters: {"report"=>"employee_with_custom_client"}
1815
+ EmployeeWithCustomClientReport (0.3ms) SELECT * FROM `employees`
1816
+ Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms)
1817
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:09:48 -0500
1818
+ Processing by SiteController#report as HTML
1819
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1820
+ ORDER BY name ASC
1821
+ Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.2ms)
1822
+ Connecting to database specified by database.yml
1823
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
1824
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
1825
+ FACTORY (16.9ms)  CREATE TABLE `employees` (
1826
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
1827
+ `name` varchar(255) NOT NULL,
1828
+ `division` varchar(255) NOT NULL,
1829
+ `salary` int(11) NOT NULL,
1830
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
1831
+ `hired_on` date NOT NULL,
1832
+ PRIMARY KEY (`id`)
1833
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1834
+ 
1835
+ FACTORY (0.9ms) TRUNCATE `employees`
1836
+ FACTORY (0.5ms)  INSERT INTO
1837
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1838
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
1839
+ 
1840
+ FACTORY (0.5ms) INSERT INTO
1841
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1842
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
1843
+
1844
+ FACTORY (0.5ms)  INSERT INTO
1845
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1846
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
1847
+ 
1848
+ FACTORY (1.6ms) DROP TABLE IF EXISTS `employees`
1849
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
1850
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
1851
+ `name` TEXT NOT NULL,
1852
+ `division` TEXT NOT NULL,
1853
+ `salary` INTEGER NOT NULL,
1854
+ `suspended` TINYINT NOT NULL DEFAULT 0,
1855
+ `hired_on` DATE NOT NULL
1856
+ );
1857
+ 
1858
+ FACTORY (0.9ms) DELETE FROM `employees`
1859
+ FACTORY (0.9ms)  INSERT INTO
1860
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1861
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
1862
+ 
1863
+ FACTORY (1.0ms) INSERT INTO
1864
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1865
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
1866
+
1867
+ FACTORY (0.9ms)  INSERT INTO
1868
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
1869
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
1870
+ 
1871
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-02-05 09:10:58 -0500
1872
+ Processing by Dossier::ReportsController#show as HTML
1873
+ Parameters: {"report"=>"employee_with_custom_client"}
1874
+ EmployeeWithCustomClientReport (1.1ms) SELECT * FROM `employees`
1875
+ Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.5ms)
1876
+ Completed 200 OK in 37ms (Views: 6.6ms | ActiveRecord: 0.0ms)
1877
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1878
+ ORDER BY name ASC
1879
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-02-05 09:10:58 -0500
1880
+ Processing by Dossier::ReportsController#show as HTML
1881
+ Parameters: {"report"=>"employee"}
1882
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1883
+ ORDER BY name ASC
1884
+ Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.0ms)
1885
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-02-05 09:10:58 -0500
1886
+ Processing by Dossier::ReportsController#show as HTML
1887
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
1888
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1889
+ ORDER BY name ASC
1890
+ Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1891
+ 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-02-05 09:10:58 -0500
1892
+ Processing by Dossier::ReportsController#show as HTML
1893
+ Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
1894
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1895
+ AND division in (('Tedious Toiling'))
1896
+ AND salary > 10000
1897
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
1898
+ ORDER BY name DESC
1899
+ Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1900
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-02-05 09:10:58 -0500
1901
+ Processing by Dossier::ReportsController#show as HTML
1902
+ Parameters: {"report"=>"employee_with_custom_view"}
1903
+ EmployeeWithCustomViewReport (0.2ms) SELECT * FROM employees WHERE suspended = true
1904
+ Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms)
1905
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-02-05 09:10:58 -0500
1906
+ Processing by Dossier::ReportsController#show as XLS
1907
+ Parameters: {"report"=>"employee"}
1908
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1909
+ ORDER BY name ASC
1910
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
1911
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 09:10:58 -0500
1912
+ Processing by Dossier::ReportsController#show as CSV
1913
+ Parameters: {"report"=>"employee"}
1914
+ EmployeeReport (0.3ms) SELECT * FROM employees WHERE 1=1
1915
+ ORDER BY name ASC
1916
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
1917
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:10:58 -0500
1918
+ Processing by SiteController#report as HTML
1919
+ EmployeeReport (0.2ms) SELECT * FROM employees WHERE 1=1
1920
+ ORDER BY name ASC
1921
+ Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.2ms)