Project

General

Profile

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)