⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (280 Bytes)
Bug #7773
ยป send_test.rb
gaffneyc (Chris Gaffney)
, 02/03/2013 05:41 PM
require
"test/unit"
class
TestSend
<
::
Test
::
Unit
::
TestCase
class
Foo
attr_accessor
:bar
end
def
test_send_to_write_returns_value
f
=
Foo
.
new
assert_nil
f
.
bar
assert_equal
"test"
,
f
.
bar
=
"test"
assert_equal
"test2"
,
f
.
send
(
"bar="
,
"test2"
)
end
end
(1-1/1)
Loading...