| Don't run tests only for grouping = :month - reportable - Fork of reportable re… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 828a1976432c7017be71df83bd475cced9940938 | |
| parent 30080afbe22a8edec5bf9ab5995dfe4a3c841b9a | |
| Author: Cristi Balan <[email protected]> | |
| Date: Fri, 21 Dec 2012 03:44:21 +0200 | |
| Don't run tests only for grouping = :month | |
| Diffstat: | |
| M spec/classes/report_spec.rb | 3 ++- | |
| 1 file changed, 2 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/spec/classes/report_spec.rb b/spec/classes/report_spec.rb | |
| @@ -65,7 +65,8 @@ describe Saulabs::Reportable::Report do | |
| @report.run.to_a.length.should == 11 | |
| end | |
| - for grouping in [:hour, :day, :week, :month] do | |
| + %w(hour day week month).each do |grouping| | |
| + grouping = grouping.to_sym | |
| describe "for grouping :#{grouping.to_s}" do | |