Add failing test for #32728
This commit is contained in:
		
							parent
							
								
									b00c268b4c
								
							
						
					
					
						commit
						e63d27d83b
					
				|  | @ -49,6 +49,23 @@ describe Label, models: true do | |||
| 
 | ||||
|       expect(label.color).to eq('#abcdef') | ||||
|     end | ||||
| 
 | ||||
|     it 'uses default color if color is missing' do | ||||
|       label = described_class.new(color: nil) | ||||
| 
 | ||||
|       expect(label.color).to be(Label::DEFAULT_COLOR) | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|   describe '#text_color' do | ||||
|     it 'uses default color if color is missing' do | ||||
|       expect(LabelsHelper).to receive(:text_color_for_bg).with(Label::DEFAULT_COLOR). | ||||
|         and_return(spy) | ||||
| 
 | ||||
|       label = described_class.new(color: nil) | ||||
| 
 | ||||
|       label.text_color | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|   describe '#title' do | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue