[Rubytests-commit] rubicon/builtin TestBinding.rb

headius@rubyforge.org headius at rubyforge.org
Sun Jan 22 02:35:06 EST 2006


Update of /var/cvs/rubytests/rubicon/builtin
In directory rubyforge.org:/tmp/cvs-serv30825/builtin

Modified Files:
	TestBinding.rb 
Log Message:
added a few simple binding tests

Index: TestBinding.rb
===================================================================
RCS file: /var/cvs/rubytests/rubicon/builtin/TestBinding.rb,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** TestBinding.rb	13 Feb 2004 15:35:13 -0000	1.1.1.1
--- TestBinding.rb	22 Jan 2006 07:35:03 -0000	1.2
***************
*** 4,9 ****
  
  class TestBinding < Rubicon::TestCase
! 
! 
  end
  
--- 4,26 ----
  
  class TestBinding < Rubicon::TestCase
! 	def test_binding
! 		assert Binding
! 		assert binding
! 		assert binding.kind_of?(Binding)
! 	end
! 	
! 	def test_eval
! 		def x
! 			str = "hello"
! 			binding
! 		end
! 		
! 		x_binding = x
! 		
! 		assert_equal "hello", eval("str", x_binding)
! 		
! 		eval("str = 'goodbye'", x_binding)
! 		assert_equal "goodbye", eval("str", x_binding)
! 	end
  end
  



More information about the Rubytests-commit mailing list