summaryrefslogtreecommitdiff
path: root/test/ostruct/test_ostruct.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ostruct/test_ostruct.rb')
-rw-r--r--test/ostruct/test_ostruct.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb
index db8e7415eb..dca2382b2b 100644
--- a/test/ostruct/test_ostruct.rb
+++ b/test/ostruct/test_ostruct.rb
@@ -57,9 +57,10 @@ class TC_OpenStruct < Test::Unit::TestCase
o.a = 'a'
assert_respond_to(o, :a)
assert_respond_to(o, :a=)
- o.delete_field :a
+ a = o.delete_field :a
assert_not_respond_to(o, :a, bug)
assert_not_respond_to(o, :a=, bug)
+ assert_equal(a, 'a')
end
def test_method_missing_handles_square_bracket_equals