mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Warn non-nil $/ [Feature #14240]
				
					
				
			This commit is contained in:
		
							parent
							
								
									6298ec2875
								
							
						
					
					
						commit
						8a7e0aaaef
					
				
				
				Notes:
				
					git
				
				2020-02-23 16:49:04 +09:00 
				
			
			
			
		
		
					 18 changed files with 75 additions and 29 deletions
				
			
		|  | @ -59,7 +59,7 @@ describe "CApiGlobalSpecs" do | |||
|     end | ||||
| 
 | ||||
|     after :each do | ||||
|       $/ = @dollar_slash | ||||
|       suppress_warning {$/ = @dollar_slash} | ||||
|     end | ||||
| 
 | ||||
|     it "returns \\n by default" do | ||||
|  | @ -67,7 +67,7 @@ describe "CApiGlobalSpecs" do | |||
|     end | ||||
| 
 | ||||
|     it "returns the value of $/" do | ||||
|       $/ = "foo" | ||||
|       suppress_warning {$/ = "foo"} | ||||
|       @f.rb_rs.should == "foo" | ||||
|     end | ||||
|   end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nobuyoshi Nakada
						Nobuyoshi Nakada