mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	test_super.rb: super from BEGIN
* test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1e56548995
								
							
						
					
					
						commit
						26df05b2f8
					
				
					 1 changed files with 10 additions and 4 deletions
				
			
		|  | @ -349,13 +349,19 @@ class TestSuper < Test::Unit::TestCase | |||
|     assert_equal 'hoge', foo.new.bar | ||||
|   end | ||||
| 
 | ||||
|   def test_super_in_at_exit | ||||
|   def assert_super_in_block(type) | ||||
|     bug7064 = '[ruby-core:47680]' | ||||
|     assert_normal_exit "at_exit {super}", bug7064 | ||||
|     assert_normal_exit "#{type} {super}", bug7064 | ||||
|   end | ||||
| 
 | ||||
|   def test_super_in_at_exit | ||||
|     assert_super_in_block("at_exit") | ||||
|   end | ||||
|   def test_super_in_END | ||||
|     bug7064 = '[ruby-core:47680]' | ||||
|     assert_normal_exit "END {super}", bug7064 | ||||
|     assert_super_in_block("END") | ||||
|   end | ||||
| 
 | ||||
|   def test_super_in_BEGIN | ||||
|     assert_super_in_block("BEGIN") | ||||
|   end | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu