report_cat 0.2.0 → 5.0.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.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/app/controllers/report_cat/reports_controller.rb +4 -4
- data/app/helpers/report_cat/reports_helper.rb +1 -1
- data/config/routes.rb +0 -1
- data/config/version.txt +1 -0
- data/lib/report_cat/reports/cohort_report.rb +2 -2
- data/spec/controllers/report_cat/reports_controller_spec.rb +4 -13
- data/spec/coverage_spec.rb +0 -3
- data/spec/data/helpers/report_charts.html +1 -1
- data/spec/data/helpers/report_charts.html.tmp +1 -1
- data/spec/data/helpers/report_form.html.tmp +6 -6
- data/spec/data/helpers/report_form_param.html +1 -1
- data/spec/data/helpers/report_form_param.html.tmp +1 -1
- data/spec/data/helpers/report_param_checkbox.html +1 -1
- data/spec/data/helpers/report_param_checkbox.html.tmp +1 -1
- data/spec/data/helpers/report_param_date.html +3 -3
- data/spec/data/helpers/report_param_date.html.tmp +3 -3
- data/spec/data/helpers/report_param_hidden.html +1 -1
- data/spec/data/helpers/report_param_hidden.html.tmp +1 -1
- data/spec/data/helpers/report_param_select.html +1 -1
- data/spec/data/helpers/report_param_select.html.tmp +1 -1
- data/spec/data/helpers/report_param_text_field.html +1 -1
- data/spec/data/helpers/report_param_text_field.html.tmp +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +2 -2
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +1 -12
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +585 -60
- data/spec/dummy/log/test.log +27483 -19298
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-7/-7N9BG1cQiMYY8UMlmf3_4FVVMlD00ymlbTuh82WuS8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-k/-k2qsarLLTBlpFkpIsOhSTEvSd1QiBuEVruCHsumUTM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1b/1bXvRYTK2ZdyLEDfRPDSW7bzhJZV50gdM6NvQTvFIT8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2h/2h0qaamYnTFD4_avHFHSiCgxlqYKOn7O69EiXvWi3Kc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4a/4aeDnvZuq3kUksER6eQ2KNIXNEsJJrrd4Ld-C-4rVow.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5h/5hS5RE8zl-8HOZ5-nCeS8hIq250MBZLzETNf7P2-qNY.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/98/98JiN8yZHAgg2whyhOSZoKECB2Vts6sEE1rB8-a8S24.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9u/9u1N3fsOb157LrMB0SOXuqOkpW2nb6e9x0qEg0yfqrg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CC/CCrpES7jzm_6ZW6OOAWAf1dmUjmcxa_DFILHp0GxbuQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D_/D_lnOlRcmOyggYZIw0knYSjfLtG5CGjdU4KUnkXS8DQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G9/G9uWgu8fEBOYcTsd5PklZ2YM5Qv3y8leOsfVyQ89fSU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HG/HGiGgo0WGlOFXSamIrpvYPMOceEOpoPXvUAUX10rsIA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ht/Ht4OIHWZ3aEvTS9CczoNb4b0BAzkdBZz9tkf0O8Nc24.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IB/IBk9uSfPrQeiKuTuO3xdV2XK9HUmF56iCuX2rC5bT0Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JR/JRZ7aonF7cL5EXFuhUvCT4-3_Hr9qwbjYbIxBT4f1L0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K8/K8mpgt9SvwiiLIjvGlppqxehWBSV5HROOdJMJl027gg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ll/Ll6DZTH-4gseVREwtfAjpKX2JJpuZD51B8gzyuHoAKY.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXQFRQZ5OA2i3YtnP1fZ96aWeUC3_IIqO4fAMdR9FsM.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P3/P3VDzxNeRNhRo3eQYTTA6z3yt7wHEx9HdCCzpvUtXJg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PY/PYbtB-C0kuDabmsMK06qjs0nZTja09PdFZ8viP17RfI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RJ/RJ_xp1ptrD7j3vgMm13iBNkRctC_D6ZRFzqJNvrSbWs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UI/UIatO_Unz9Spo98Wd-wJV0tjFDNeDgSJ4AC0tJnr6tg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cu/cuf6bBlP3IGoMUg4ufuqQsJTxLAvQm_DtOZ31leGByk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cw/cwXe7eRGPAiBGS7XlD2bhvZ4qxB9TQkV3AFRc7ssqWs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dX/dX21q6tri2xPVdZPgAm0wHhi4NHy8472aNws93A7HPk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/de/deCXYN9Ebr5mQiIRc_U5AazbpWe6RGrrp23ctNAfasw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hj/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/j2/j2YZQDdtL_Ui31lyFsKhZm7fhFNBA_moHu9MFPHqiOc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jS/jS21YVIy2Q2WpZgXrnW1Ojo7Ksl3tyZajaIA2OnVphs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jU/jUktWNbR4V7n34UAZe7uJpmEofhflF0bVtIO2BgxyJ8.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qq/qqhkq3VxHJuYEOIVbZvMGseb6uqA-br1P_IZU8BUhjQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tB/tBQZIkEbUj7ymB0292nMX95islGqkIlkuiPBKguzFYY.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vU/vUaTFapkH6bF-NmoOA_qhfJ8wBPXmY6kws6C_Q_WBX4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xG/xGxEAR3tIpGm8pGJe67sPN0EUGLCwdxA3ALTwCqHATo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yl/ylUpFZYPy6aajpCGogjXgEtH5sBZMHJVbQCtNd2c5Aw.cache +0 -0
- data/spec/helpers/report_cat/reports_helper_spec.rb +2 -19
- data/spec/lib/report_cat/config_spec.rb +0 -6
- data/spec/lib/report_cat/core/chart_spec.rb +6 -11
- data/spec/lib/report_cat/core/column_spec.rb +0 -12
- data/spec/lib/report_cat/core/param_spec.rb +0 -7
- data/spec/lib/report_cat/core/report_spec.rb +5 -27
- data/spec/lib/report_cat/engine_spec.rb +0 -3
- data/spec/lib/report_cat/matchers/have_chart_spec.rb +0 -3
- data/spec/lib/report_cat/matchers/have_column_spec.rb +0 -3
- data/spec/lib/report_cat/matchers/have_param_spec.rb +0 -3
- data/spec/lib/report_cat/reports/cohort_report_spec.rb +0 -7
- data/spec/lib/report_cat/reports/date_range_report_spec.rb +0 -9
- data/spec/lib/report_cat_spec.rb +0 -6
- data/spec/lib/tasks/report_cat.rake_spec.rb +0 -2
- data/spec/models/report_cat/date_range_spec.rb +0 -12
- data/spec/spec_helper.rb +6 -2
- data/spec/support/setup_reports.rb +0 -1
- data/spec/views/report_cat/reports/index.html.erb_spec.rb +0 -3
- data/spec/views/report_cat/reports/show.html.erb_spec.rb +0 -3
- metadata +94 -102
- data/lib/report_cat/version.rb +0 -3
- data/spec/lib/report_cat/version_spec.rb +0 -11
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-7/-7N9BG1cQiMYY8UMlmf3_4FVVMlD00ymlbTuh82WuS8.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-k/-k2qsarLLTBlpFkpIsOhSTEvSd1QiBuEVruCHsumUTM.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1b/1bXvRYTK2ZdyLEDfRPDSW7bzhJZV50gdM6NvQTvFIT8.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=fea73c161cd5a0550f9f3b6cb5fb55bd6b67d89ab23caf8f1efd306b67647b31:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2h/2h0qaamYnTFD4_avHFHSiCgxlqYKOn7O69EiXvWi3Kc.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�/Users/rdh/schrodingersbox/report_cat/app/assets/stylesheets/report_cat/application.css?type=text/css&id=0e889876d44443194ed7bfa42dbc1104391d5acf5c5c3f1aa80c448ca805ff94:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4a/4aeDnvZuq3kUksER6eQ2KNIXNEsJJrrd4Ld-C-4rVow.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=8a17ea4caef730bdd48ceed8202a44fbb24d424548421ebaa21ba1cdd16861dc:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5h/5hS5RE8zl-8HOZ5-nCeS8hIq250MBZLzETNf7P2-qNY.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ifile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/javascripts/report_cat/application.js;TTI"Zfile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/javascripts/report_cat;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/98/98JiN8yZHAgg2whyhOSZoKECB2Vts6sEE1rB8-a8S24.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9u/9u1N3fsOb157LrMB0SOXuqOkpW2nb6e9x0qEg0yfqrg.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=448d5a32667d8721686d60c0cfe8a5ddd3bfd32fa09cca84eaffaa2ce1eec490:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CC/CCrpES7jzm_6ZW6OOAWAf1dmUjmcxa_DFILHp0GxbuQ.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D_/D_lnOlRcmOyggYZIw0knYSjfLtG5CGjdU4KUnkXS8DQ.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G9/G9uWgu8fEBOYcTsd5PklZ2YM5Qv3y8leOsfVyQ89fSU.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HG/HGiGgo0WGlOFXSamIrpvYPMOceEOpoPXvUAUX10rsIA.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ht/Ht4OIHWZ3aEvTS9CczoNb4b0BAzkdBZz9tkf0O8Nc24.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IB/IBk9uSfPrQeiKuTuO3xdV2XK9HUmF56iCuX2rC5bT0Q.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"}app/assets/stylesheets/application.css?type=text/css&id=6febbafb5b96f9567587aaab1a84eb886cb188ef1e577a890a7cde14e3a9f53d:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JR/JRZ7aonF7cL5EXFuhUvCT4-3_Hr9qwbjYbIxBT4f1L0.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K8/K8mpgt9SvwiiLIjvGlppqxehWBSV5HROOdJMJl027gg.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=d9ea93bfacaa2d4735ecfa1b094ed8841068d6f935f52784472cfa7993648ade:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ll/Ll6DZTH-4gseVREwtfAjpKX2JJpuZD51B8gzyuHoAKY.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"ifile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/javascripts/report_cat/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Zfile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/javascripts/report_cat;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXQFRQZ5OA2i3YtnP1fZ96aWeUC3_IIqO4fAMdR9FsM.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"?processors:type=text/css&file_type=text/css&pipeline=debug;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P3/P3VDzxNeRNhRo3eQYTTA6z3yt7wHEx9HdCCzpvUtXJg.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PY/PYbtB-C0kuDabmsMK06qjs0nZTja09PdFZ8viP17RfI.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&id=5df6b20e1c02e8c5b1f8db18476f1092ada43fbe37ebb12dcbceedc77adb0597:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RJ/RJ_xp1ptrD7j3vgMm13iBNkRctC_D6ZRFzqJNvrSbWs.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UI/UIatO_Unz9Spo98Wd-wJV0tjFDNeDgSJ4AC0tJnr6tg.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cu/cuf6bBlP3IGoMUg4ufuqQsJTxLAvQm_DtOZ31leGByk.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�/Users/rdh/schrodingersbox/report_cat/app/assets/javascripts/report_cat/application.js?type=application/javascript&id=61183b06796122f2df47f67d23fe9c2039cf6b1369958fb9c536d690a1b85bc5:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cw/cwXe7eRGPAiBGS7XlD2bhvZ4qxB9TQkV3AFRc7ssqWs.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�/Users/rdh/schrodingersbox/report_cat/app/assets/stylesheets/report_cat/application.css?type=text/css&pipeline=self&id=c6497d12259d56b7bec4a7dfb0c5d1e077d88d9c4ef3c36752fa01cc6da97131:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dX/dX21q6tri2xPVdZPgAm0wHhi4NHy8472aNws93A7HPk.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/de/deCXYN9Ebr5mQiIRc_U5AazbpWe6RGrrp23ctNAfasw.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/j2/j2YZQDdtL_Ui31lyFsKhZm7fhFNBA_moHu9MFPHqiOc.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
I"�/Users/rdh/schrodingersbox/report_cat/app/assets/javascripts/report_cat/application.js?type=application/javascript&pipeline=self&id=e242c371e2a5d7fab50e7bf70ca377071cb2fa94978c1f280ed5c2c3311aee2c:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jS/jS21YVIy2Q2WpZgXrnW1Ojo7Ksl3tyZajaIA2OnVphs.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jU/jUktWNbR4V7n34UAZe7uJpmEofhflF0bVtIO2BgxyJ8.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"[processors:type=application/javascript&file_type=application/javascript&pipeline=debug;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qq/qqhkq3VxHJuYEOIVbZvMGseb6uqA-br1P_IZU8BUhjQ.cache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tB/tBQZIkEbUj7ymB0292nMX95islGqkIlkuiPBKguzFYY.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"jfile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/stylesheets/report_cat/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"Zfile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/stylesheets/report_cat;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vU/vUaTFapkH6bF-NmoOA_qhfJ8wBPXmY6kws6C_Q_WBX4.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"jfile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/stylesheets/report_cat/application.css;TTI"Zfile-digest:///Users/rdh/schrodingersbox/report_cat/app/assets/stylesheets/report_cat;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
[o:Set:
|
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xG/xGxEAR3tIpGm8pGJe67sPN0EUGLCwdxA3ALTwCqHATo.cache
ADDED
|
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yl/ylUpFZYPy6aajpCGogjXgEtH5sBZMHJVbQCtNd2c5Aw.cache
ADDED
|
Binary file
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
1
|
describe ReportCat::ReportsHelper do
|
|
4
2
|
|
|
5
3
|
include SetupReports
|
|
@@ -20,7 +18,6 @@ describe ReportCat::ReportsHelper do
|
|
|
20
18
|
expected = "<a href=\"/report_cat/reports/user_report\">User Report</a>"
|
|
21
19
|
expect( helper.report_back( @report ) ).to eql( expected )
|
|
22
20
|
end
|
|
23
|
-
|
|
24
21
|
end
|
|
25
22
|
|
|
26
23
|
context 'when back is not set' do
|
|
@@ -30,9 +27,7 @@ describe ReportCat::ReportsHelper do
|
|
|
30
27
|
expected = "<a href=\"/\">Reports</a>"
|
|
31
28
|
expect( helper.report_back( @report ) ).to eql( expected )
|
|
32
29
|
end
|
|
33
|
-
|
|
34
30
|
end
|
|
35
|
-
|
|
36
31
|
end
|
|
37
32
|
|
|
38
33
|
#############################################################################
|
|
@@ -44,7 +39,6 @@ describe ReportCat::ReportsHelper do
|
|
|
44
39
|
expect( helper ).to receive( :render ).with( :partial => 'report_cat/reports/google_charts' )
|
|
45
40
|
helper.report_chart_partial
|
|
46
41
|
end
|
|
47
|
-
|
|
48
42
|
end
|
|
49
43
|
|
|
50
44
|
#############################################################################
|
|
@@ -55,7 +49,6 @@ describe ReportCat::ReportsHelper do
|
|
|
55
49
|
it 'renders the configured charts' do
|
|
56
50
|
expect( helper.report_charts( @report ) ).to eql_file( 'spec/data/helpers/report_charts.html' )
|
|
57
51
|
end
|
|
58
|
-
|
|
59
52
|
end
|
|
60
53
|
|
|
61
54
|
#############################################################################
|
|
@@ -67,7 +60,6 @@ describe ReportCat::ReportsHelper do
|
|
|
67
60
|
expected = I18n.t( :count, :scope => :report_cat, :count => @report.rows.count )
|
|
68
61
|
expect( helper.report_count( @report ) ).to eql( expected )
|
|
69
62
|
end
|
|
70
|
-
|
|
71
63
|
end
|
|
72
64
|
|
|
73
65
|
#############################################################################
|
|
@@ -81,7 +73,6 @@ describe ReportCat::ReportsHelper do
|
|
|
81
73
|
expected = "<a href=\"#{url}\">Export as CSV</a>"
|
|
82
74
|
expect( helper.report_csv_link( @report ) ).to eql( expected )
|
|
83
75
|
end
|
|
84
|
-
|
|
85
76
|
end
|
|
86
77
|
|
|
87
78
|
#############################################################################
|
|
@@ -93,7 +84,6 @@ describe ReportCat::ReportsHelper do
|
|
|
93
84
|
expected = t( :description, :scope => [ :report_cat, :instances, @report.name.to_sym ] )
|
|
94
85
|
expect( helper.report_description( @report ) ).to eql( expected )
|
|
95
86
|
end
|
|
96
|
-
|
|
97
87
|
end
|
|
98
88
|
|
|
99
89
|
#############################################################################
|
|
@@ -106,7 +96,6 @@ describe ReportCat::ReportsHelper do
|
|
|
106
96
|
expect( helper ).to receive( :report_path ).and_return( '' )
|
|
107
97
|
expect( helper.report_form( @report ) ).to eql_file( 'spec/data/helpers/report_form.html' )
|
|
108
98
|
end
|
|
109
|
-
|
|
110
99
|
end
|
|
111
100
|
|
|
112
101
|
#############################################################################
|
|
@@ -121,10 +110,9 @@ describe ReportCat::ReportsHelper do
|
|
|
121
110
|
|
|
122
111
|
it 'returns hidden params' do
|
|
123
112
|
param = @report.param( :hidden_test )
|
|
124
|
-
expected = "<input
|
|
113
|
+
expected = "<input type=\"hidden\" name=\"hidden_test\" id=\"hidden_test\" value=\"true\" />"
|
|
125
114
|
expect( helper.report_form_param( param ) ).to eql( expected )
|
|
126
115
|
end
|
|
127
|
-
|
|
128
116
|
end
|
|
129
117
|
|
|
130
118
|
#############################################################################
|
|
@@ -137,7 +125,6 @@ describe ReportCat::ReportsHelper do
|
|
|
137
125
|
expected = "<a href=\"/report_cat/reports/cohort_report?is_cohort=1\">Cohort Report</a>"
|
|
138
126
|
expect( helper.report_link( attributes ) ).to eql( expected )
|
|
139
127
|
end
|
|
140
|
-
|
|
141
128
|
end
|
|
142
129
|
|
|
143
130
|
#############################################################################
|
|
@@ -148,7 +135,6 @@ describe ReportCat::ReportsHelper do
|
|
|
148
135
|
it 'renders a list of reports in HTML' do
|
|
149
136
|
expect( helper.report_list( @reports ) ).to eql_file( 'spec/data/helpers/report_list.html' )
|
|
150
137
|
end
|
|
151
|
-
|
|
152
138
|
end
|
|
153
139
|
|
|
154
140
|
#############################################################################
|
|
@@ -160,7 +146,6 @@ describe ReportCat::ReportsHelper do
|
|
|
160
146
|
expected = t( :name, :scope => [ :report_cat, :instances, @report.name.to_sym ] )
|
|
161
147
|
expect( helper.report_name( @report ) ).to eql( expected )
|
|
162
148
|
end
|
|
163
|
-
|
|
164
149
|
end
|
|
165
150
|
|
|
166
151
|
#############################################################################
|
|
@@ -200,7 +185,7 @@ describe ReportCat::ReportsHelper do
|
|
|
200
185
|
|
|
201
186
|
it 'raises an exception for unknown types' do
|
|
202
187
|
param = Param.new( :name => :foo, :type => :bar )
|
|
203
|
-
expect { report_param( param ) }.to raise_error
|
|
188
|
+
expect { report_param( param ) }.to raise_error("Unknown param: bar")
|
|
204
189
|
end
|
|
205
190
|
|
|
206
191
|
#############################################################################
|
|
@@ -217,8 +202,6 @@ describe ReportCat::ReportsHelper do
|
|
|
217
202
|
@report.column( :total ).options[ :hidden ] = true
|
|
218
203
|
expect( report_table( @report ) ).to eql_file( 'spec/data/helpers/report_table_hidden.html' )
|
|
219
204
|
end
|
|
220
|
-
|
|
221
205
|
end
|
|
222
|
-
|
|
223
206
|
end
|
|
224
207
|
end
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
1
|
describe ReportCat::Config do
|
|
4
2
|
|
|
5
3
|
let( :config ) { ReportCat::Config.instance }
|
|
@@ -33,7 +31,6 @@ describe ReportCat::Config do
|
|
|
33
31
|
config.layout = config.layout
|
|
34
32
|
expect( config.layout ).to eql( config.layout )
|
|
35
33
|
end
|
|
36
|
-
|
|
37
34
|
end
|
|
38
35
|
|
|
39
36
|
describe '#authenticate_with' do
|
|
@@ -61,7 +58,6 @@ describe ReportCat::Config do
|
|
|
61
58
|
config.authenticate = nil
|
|
62
59
|
instance_eval( &config.authenticate_with )
|
|
63
60
|
end
|
|
64
|
-
|
|
65
61
|
end
|
|
66
62
|
|
|
67
63
|
describe '#authorize_with' do
|
|
@@ -89,8 +85,6 @@ describe ReportCat::Config do
|
|
|
89
85
|
config.authorize = nil
|
|
90
86
|
instance_eval( &config.authorize_with )
|
|
91
87
|
end
|
|
92
|
-
|
|
93
88
|
end
|
|
94
|
-
|
|
95
89
|
end
|
|
96
90
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
1
|
include ReportCat::Core
|
|
4
2
|
|
|
5
3
|
module ReportCat::Core
|
|
@@ -18,11 +16,12 @@ module ReportCat::Core
|
|
|
18
16
|
@options = {}
|
|
19
17
|
|
|
20
18
|
@chart = Chart.new(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
:name => @name,
|
|
20
|
+
:type => @type,
|
|
21
|
+
:label => @label,
|
|
22
|
+
:values => @values,
|
|
23
|
+
:options => @options
|
|
24
|
+
)
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
#############################################################################
|
|
@@ -37,7 +36,6 @@ module ReportCat::Core
|
|
|
37
36
|
expect( @chart.values ).to eql( @values )
|
|
38
37
|
expect( @chart.options ).to eql( @options )
|
|
39
38
|
end
|
|
40
|
-
|
|
41
39
|
end
|
|
42
40
|
|
|
43
41
|
#############################################################################
|
|
@@ -48,7 +46,6 @@ module ReportCat::Core
|
|
|
48
46
|
it 'generates json' do
|
|
49
47
|
expect( @chart.columns( @report ) ).to eql_file( 'spec/data/lib/chart_columns.json' )
|
|
50
48
|
end
|
|
51
|
-
|
|
52
49
|
end
|
|
53
50
|
|
|
54
51
|
#############################################################################
|
|
@@ -60,8 +57,6 @@ module ReportCat::Core
|
|
|
60
57
|
setup_reports
|
|
61
58
|
expect( @chart.data( @report ) ).to eql_file( 'spec/data/lib/chart_data.json' )
|
|
62
59
|
end
|
|
63
|
-
|
|
64
60
|
end
|
|
65
|
-
|
|
66
61
|
end
|
|
67
62
|
end
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
1
|
include ReportCat::Core
|
|
4
2
|
|
|
5
3
|
module ReportCat::Core
|
|
@@ -23,7 +21,6 @@ module ReportCat::Core
|
|
|
23
21
|
expect( column.type ).to eql( @type )
|
|
24
22
|
expect( column.options ).to eql( @options )
|
|
25
23
|
end
|
|
26
|
-
|
|
27
24
|
end
|
|
28
25
|
|
|
29
26
|
#############################################################################
|
|
@@ -38,13 +35,11 @@ module ReportCat::Core
|
|
|
38
35
|
expect( column.format( value ) ).to eql( expected )
|
|
39
36
|
end
|
|
40
37
|
|
|
41
|
-
|
|
42
38
|
it 'formats integers' do
|
|
43
39
|
value = '727'
|
|
44
40
|
expected = value.to_i
|
|
45
41
|
column = Column.new( :name => @name, :type => :integer )
|
|
46
42
|
expect( column.format( value ) ).to eql( expected )
|
|
47
|
-
|
|
48
43
|
end
|
|
49
44
|
|
|
50
45
|
it 'passes everything else through' do
|
|
@@ -52,7 +47,6 @@ module ReportCat::Core
|
|
|
52
47
|
column = Column.new( :name => @name, :type => :string )
|
|
53
48
|
expect( column.format( value ) ).to eql( value )
|
|
54
49
|
end
|
|
55
|
-
|
|
56
50
|
end
|
|
57
51
|
|
|
58
52
|
#############################################################################
|
|
@@ -75,7 +69,6 @@ module ReportCat::Core
|
|
|
75
69
|
expect( column ).to receive( :post_process_ratio ).with( @report )
|
|
76
70
|
column.post_process( @report )
|
|
77
71
|
end
|
|
78
|
-
|
|
79
72
|
end
|
|
80
73
|
|
|
81
74
|
#############################################################################
|
|
@@ -98,7 +91,6 @@ module ReportCat::Core
|
|
|
98
91
|
expect( @report.rows[ 1 ][ 1 ] ).to eql( 1.5 )
|
|
99
92
|
expect( @report.rows[ 2 ][ 1 ] ).to eql( 3.0 )
|
|
100
93
|
end
|
|
101
|
-
|
|
102
94
|
end
|
|
103
95
|
|
|
104
96
|
#############################################################################
|
|
@@ -122,7 +114,6 @@ module ReportCat::Core
|
|
|
122
114
|
expect( @report.rows[ 1 ][ 2 ] ).to eql( 0.75 )
|
|
123
115
|
expect( @report.rows[ 2 ][ 2 ] ).to eql( 0.0 )
|
|
124
116
|
end
|
|
125
|
-
|
|
126
117
|
end
|
|
127
118
|
|
|
128
119
|
#############################################################################
|
|
@@ -136,7 +127,6 @@ module ReportCat::Core
|
|
|
136
127
|
expect( column.to_sql ).to eql( "#{sql} as #{@name}" )
|
|
137
128
|
end
|
|
138
129
|
|
|
139
|
-
|
|
140
130
|
it 'uses 0 for calculated columns' do
|
|
141
131
|
column = Column.new( :name => @name, :type => :moving_average )
|
|
142
132
|
expect( column.to_sql ).to eql( "0 as #{@name}" )
|
|
@@ -149,8 +139,6 @@ module ReportCat::Core
|
|
|
149
139
|
column = Column.new( :name => @name, :type => :integer )
|
|
150
140
|
expect( column.to_sql ).to eql( @name )
|
|
151
141
|
end
|
|
152
|
-
|
|
153
142
|
end
|
|
154
|
-
|
|
155
143
|
end
|
|
156
144
|
end
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
1
|
include ReportCat::Core
|
|
4
2
|
|
|
5
3
|
module ReportCat::Core
|
|
@@ -28,7 +26,6 @@ module ReportCat::Core
|
|
|
28
26
|
it 'initializes options to an empty hash' do
|
|
29
27
|
expect( param.options ).to eql( {} )
|
|
30
28
|
end
|
|
31
|
-
|
|
32
29
|
end
|
|
33
30
|
|
|
34
31
|
describe 'assigning value' do
|
|
@@ -77,7 +74,6 @@ module ReportCat::Core
|
|
|
77
74
|
param.value = '2013-09-16'
|
|
78
75
|
expect( param.value ).to eql( '2013-09-16' )
|
|
79
76
|
end
|
|
80
|
-
|
|
81
77
|
end
|
|
82
78
|
|
|
83
79
|
describe '#hide' do
|
|
@@ -87,9 +83,6 @@ module ReportCat::Core
|
|
|
87
83
|
param.hide
|
|
88
84
|
expect( param.options[ :hidden ] ).to be( true )
|
|
89
85
|
end
|
|
90
|
-
|
|
91
86
|
end
|
|
92
|
-
|
|
93
87
|
end
|
|
94
|
-
|
|
95
88
|
end
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
1
|
include ReportCat::Core
|
|
4
2
|
|
|
5
3
|
module ReportCat::Core
|
|
@@ -30,11 +28,11 @@ module ReportCat::Core
|
|
|
30
28
|
array = [ 'a', 'b' ]
|
|
31
29
|
|
|
32
30
|
report = Report.new(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
:from => array,
|
|
32
|
+
:joins => array,
|
|
33
|
+
:where => array,
|
|
34
|
+
:group_by => array,
|
|
35
|
+
:order_by => array
|
|
38
36
|
)
|
|
39
37
|
|
|
40
38
|
expect( report.from ).to eql( 'a,b' )
|
|
@@ -43,7 +41,6 @@ module ReportCat::Core
|
|
|
43
41
|
expect( report.group_by ).to eql( 'a,b' )
|
|
44
42
|
expect( report.order_by ).to eql( 'a,b' )
|
|
45
43
|
end
|
|
46
|
-
|
|
47
44
|
end
|
|
48
45
|
|
|
49
46
|
#############################################################################
|
|
@@ -60,7 +57,6 @@ module ReportCat::Core
|
|
|
60
57
|
expect( @report.accept_array( 1, ',' ) ).to eql( 1 )
|
|
61
58
|
expect( @report.accept_array( :foo, ',' ) ).to eql( :foo )
|
|
62
59
|
end
|
|
63
|
-
|
|
64
60
|
end
|
|
65
61
|
|
|
66
62
|
#############################################################################
|
|
@@ -88,7 +84,6 @@ module ReportCat::Core
|
|
|
88
84
|
expect( chart.values ).to eql( values )
|
|
89
85
|
expect( chart.options ).to eql( options )
|
|
90
86
|
end
|
|
91
|
-
|
|
92
87
|
end
|
|
93
88
|
|
|
94
89
|
#############################################################################
|
|
@@ -110,7 +105,6 @@ module ReportCat::Core
|
|
|
110
105
|
expect( column.type ).to eql( type )
|
|
111
106
|
expect( column.options ).to eql( options )
|
|
112
107
|
end
|
|
113
|
-
|
|
114
108
|
end
|
|
115
109
|
|
|
116
110
|
#############################################################################
|
|
@@ -131,7 +125,6 @@ module ReportCat::Core
|
|
|
131
125
|
expect( param.name ).to eql( name )
|
|
132
126
|
expect( param.type ).to eql( type )
|
|
133
127
|
end
|
|
134
|
-
|
|
135
128
|
end
|
|
136
129
|
|
|
137
130
|
#############################################################################
|
|
@@ -149,17 +142,13 @@ module ReportCat::Core
|
|
|
149
142
|
column = @report.columns[ i ]
|
|
150
143
|
expect( @report.column( column.name ) ).to eql( column )
|
|
151
144
|
end
|
|
152
|
-
|
|
153
145
|
end
|
|
154
146
|
|
|
155
|
-
|
|
156
147
|
it 'returns nil if it is unable to find the column' do
|
|
157
148
|
expect( @report.column( :does_not_exist ) ).to be_nil
|
|
158
149
|
end
|
|
159
|
-
|
|
160
150
|
end
|
|
161
151
|
|
|
162
|
-
|
|
163
152
|
#############################################################################
|
|
164
153
|
# column_index
|
|
165
154
|
|
|
@@ -175,17 +164,14 @@ module ReportCat::Core
|
|
|
175
164
|
column = @report.columns[ i ]
|
|
176
165
|
expect( @report.column_index( column.name ) ).to eql( i )
|
|
177
166
|
end
|
|
178
|
-
|
|
179
167
|
end
|
|
180
168
|
|
|
181
169
|
|
|
182
170
|
it 'returns nil if it is unable to find the column' do
|
|
183
171
|
expect( @report.column_index( :does_not_exist ) ).to be_nil
|
|
184
172
|
end
|
|
185
|
-
|
|
186
173
|
end
|
|
187
174
|
|
|
188
|
-
|
|
189
175
|
#############################################################################
|
|
190
176
|
# generate
|
|
191
177
|
|
|
@@ -201,7 +187,6 @@ module ReportCat::Core
|
|
|
201
187
|
@report.generate( :text_field_test => 'foobar' )
|
|
202
188
|
expect( @report.param( :text_field_test ).value ).to eql( 'foobar' )
|
|
203
189
|
end
|
|
204
|
-
|
|
205
190
|
end
|
|
206
191
|
|
|
207
192
|
#############################################################################
|
|
@@ -220,7 +205,6 @@ module ReportCat::Core
|
|
|
220
205
|
it 'returns nil if it can not find it' do
|
|
221
206
|
expect( @report.param( :bar ) ).to be_nil
|
|
222
207
|
end
|
|
223
|
-
|
|
224
208
|
end
|
|
225
209
|
|
|
226
210
|
#############################################################################
|
|
@@ -236,7 +220,6 @@ module ReportCat::Core
|
|
|
236
220
|
it 'generates CSV' do
|
|
237
221
|
expect( @report.to_csv ).to eql_file( 'spec/data/lib/report.csv' )
|
|
238
222
|
end
|
|
239
|
-
|
|
240
223
|
end
|
|
241
224
|
|
|
242
225
|
#############################################################################
|
|
@@ -265,7 +248,6 @@ module ReportCat::Core
|
|
|
265
248
|
expect( @report.attributes[ param.name ] ).to eql( param.value )
|
|
266
249
|
end
|
|
267
250
|
end
|
|
268
|
-
|
|
269
251
|
end
|
|
270
252
|
|
|
271
253
|
#############################################################################
|
|
@@ -318,7 +300,6 @@ module ReportCat::Core
|
|
|
318
300
|
@report.columns.each { |c| expect( c ).to receive( :post_process ).with( @report ) }
|
|
319
301
|
@report.send( :query )
|
|
320
302
|
end
|
|
321
|
-
|
|
322
303
|
end
|
|
323
304
|
|
|
324
305
|
#############################################################################
|
|
@@ -334,9 +315,6 @@ module ReportCat::Core
|
|
|
334
315
|
it 'generates SQL' do
|
|
335
316
|
expect( @report.send( :to_sql ) ).to eql_file( 'spec/data/lib/report.sql' )
|
|
336
317
|
end
|
|
337
|
-
|
|
338
318
|
end
|
|
339
|
-
|
|
340
319
|
end
|
|
341
|
-
|
|
342
320
|
end
|