Created
October 11, 2012 06:40
-
-
Save svs/3870616 to your computer and use it in GitHub Desktop.
loan_date_spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should not be valid if scheduled disbursal date and scheduled first payment date are not center meeting dates" do | |
@loan.scheduled_disbursal_date = @center.meeting_day | |
@loan.should be_valid | |
@loan.scheduled_first_payment_date = @center.meeting_day | |
@loan.should be_valid | |
@loan.scheduled_disbursal_date = @center.meeting_day + 1 | |
@loan.should_not be_valid | |
@loan.scheduled_disbursal_date = @center.meeting_day - 1 | |
@loan.should_not be_valid | |
@loan.scheduled_first_payment_date = @center.meeting_day + 1 | |
@loan.should_not be_valid | |
@loan.scheduled_first_payment_date = @center.meeting_day - 1 | |
@loan.should_not be_valid | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment