Description of problem: The two test cases below cause failures at the end of the month. These two test cases have been temporarily changed to rescue any assertion error and omit the testcase. Should be fixed so that it doesn't fail at the end of the month and remove the rescue block. 1) Failure: test_user_should_have_bill_when_created_today(AriaUnitTest) [test/unit/aria_test.rb:1139]: <Wed, 30 Oct 2013> expected but was <Thu, 31 Oct 2013 00:00:00 +0000>. 2) Failure: test_user_should_have_bill_with_nil_day_when_outside_billing_period(AriaUnitTest) [test/unit/aria_test.rb:1119]: <Wed, 30 Oct 2013> expected but was <Thu, 31 Oct 2013 00:00:00 +0000>.
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/23b2ee2831b652c67331c114edfafe3a1d966ca4 Fix bug 1013759 - do date calculations correctly in testcases
Will test it at the end of this month.
Tested on devenv_3966, run the aria_test.rb and got the following result: *** Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`. Run options: --seed 63154 # Running tests: .................................................................................................................................................................................................................. Finished tests in 16.044010s, 13.0890 tests/s, 91.7476 assertions/s. 210 tests, 1472 assertions, 0 failures, 0 errors, 0 skips Coverage report generated for aria_test.rb to /var/www/openshift/site/test/unit/test/coverage/. 3603 / 7570 LOC (47.6%) covered. No failures, so verify this bug, thanks.