Created
July 27, 2011 22:04
-
-
Save cwgem/1110483 to your computer and use it in GitHub Desktop.
席の問題
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "test/unit" | |
class ObjectMangling | |
attr_accessor :seki | |
def remove | |
remove_instance_variable(:@seki) | |
end | |
end | |
class TestLibraryFileName < Test::Unit::TestCase | |
def test_remove_variable | |
myclass = ObjectMangling.new | |
myclass.seki = true | |
myclass.remove | |
assert_equal true, myclass.seki, "おめえの席ねぇから!!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment