14 lines
		
	
	
		
			281 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			281 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| 
								 | 
							
								package greeter
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import spock.lang.Specification
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class GreetingFormatterSpec extends Specification {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    def 'Creating a greeting'() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        expect: 'The greeeting to be correctly capitalized'
							 | 
						||
| 
								 | 
							
								        GreetingFormatter.greeting('gradlephant') == 'Hello, Gradlephant'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |