|  |  |  | @ -96,6 +96,23 @@ RSpec.describe Form, type: :model do | 
			
		
	
		
			
				
					|  |  |  |  |         }.to raise_error(ActiveRecord::RecordInvalid) | 
			
		
	
		
			
				
					|  |  |  |  |       end | 
			
		
	
		
			
				
					|  |  |  |  |     end | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     context "outstanding rent or charges validation" do | 
			
		
	
		
			
				
					|  |  |  |  |       it "must be anwered if answered yes to outstanding rent or charges" do | 
			
		
	
		
			
				
					|  |  |  |  |         expect { | 
			
		
	
		
			
				
					|  |  |  |  |           CaseLog.create!(outstanding_rent_or_charges: "Yes", | 
			
		
	
		
			
				
					|  |  |  |  |                           outstanding_amount: nil) | 
			
		
	
		
			
				
					|  |  |  |  |         }.to raise_error(ActiveRecord::RecordInvalid) | 
			
		
	
		
			
				
					|  |  |  |  |       end | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       it "must be not be anwered if answered no to outstanding rent or charges" do | 
			
		
	
		
			
				
					|  |  |  |  |         expect { | 
			
		
	
		
			
				
					|  |  |  |  |           CaseLog.create!(outstanding_rent_or_charges: "No", | 
			
		
	
		
			
				
					|  |  |  |  |                           outstanding_amount: 99) | 
			
		
	
		
			
				
					|  |  |  |  |         }.to raise_error(ActiveRecord::RecordInvalid) | 
			
		
	
		
			
				
					|  |  |  |  |       end | 
			
		
	
		
			
				
					|  |  |  |  |     end | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     context "tenant’s income is from Universal Credit, state pensions or benefits" do | 
			
		
	
		
			
				
					|  |  |  |  |       it "Cannot be All if person 1 works full time" do | 
			
		
	
		
			
				
					|  |  |  |  |         expect { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |