mirror of
				https://github.com/amix/vimrc
				synced 2025-10-26 09:33:36 +08:00 
			
		
		
		
	 3f1cdba799
			
		
	
	3f1cdba799
	
	
	
		
			
			Added update_plugins.py which can fetch new plugins from GitHub. New plugins added: zencoding, vim-indent-object, taglist, nginx.vim
		
			
				
	
	
		
			25 lines
		
	
	
		
			496 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			496 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| class ${1:ReverseTo}
 | |
| 	def initialize(${2:param})
 | |
| 		@$2 = $2
 | |
| 	end
 | |
| 
 | |
| 	def matches?(actual)
 | |
| 		@actual = actual
 | |
| 		# Satisfy expectation here. Return false or raise an error if it's not met.
 | |
| 		${3:@actual.reverse.should == @$2}
 | |
| 		true
 | |
| 	end
 | |
| 
 | |
| 	def failure_message
 | |
| 		"expected #{@actual.inspect} to ${4} #{@$2.inspect}, but it didn't"
 | |
| 	end
 | |
| 
 | |
| 	def negative_failure_message
 | |
| 		"expected #{@actual.inspect} not to ${5} #{@$2.inspect}, but it did"
 | |
| 	end
 | |
| end
 | |
| 
 | |
| def ${6:reverse_to}(${7:expected})
 | |
| 	${8}.new($7)
 | |
| end
 |