mirror of
				https://github.com/pry/pry.git
				synced 2022-11-09 12:35:05 -05:00 
			
		
		
		
	Added a test to check if exceptions are stored into out
This commit is contained in:
		
							parent
							
								
									a4d099188c
								
							
						
					
					
						commit
						7ef092ab09
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -191,6 +191,17 @@ describe Pry do
 | 
			
		|||
 | 
			
		||||
          res.should == [1000, 1000]
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        it 'store exceptions' do
 | 
			
		||||
          res   = []
 | 
			
		||||
          input = InputTester.new *["foo!","self << inp[-1] << out[-1]"]
 | 
			
		||||
          pry   = Pry.new(:input => input, :output => Pry::NullOutput,
 | 
			
		||||
                          :memory_size => 1000)
 | 
			
		||||
          pry.repl(res)
 | 
			
		||||
 | 
			
		||||
          res.first.should == "foo!\n"
 | 
			
		||||
          res.last.should.be.kind_of NoMethodError
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      describe "test loading rc files" do
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue