Created
April 20, 2010 15:08
-
-
Save anathematic/372600 to your computer and use it in GitHub Desktop.
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
ContractIsp has many ContractIspPayables | |
it "should automatically create a contract_payable based on the payable out information provided (with three created if share is selected)" do | |
## Not sure how to approach building this in the model... | |
@contract_isp.update_attribute(:payable_by, "me") | |
@contract_isp.contract_isp_payables.size.should eql(1) | |
@contract_isp.update_attribute(:payable_by, "you") | |
@contract_isp.contract_isp_payables.size.should eql(3) | |
@contract_isp.update_attribute(:payable_by, "me") | |
@contract_isp.contract_isp_payables.size.should eql(1) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment