Sha256: 7ebc55a1d84756003bcbec945786dff8abafe569cdb767438aee2fbff63100c1
Contents?: true
Size: 407 Bytes
Versions: 84
Compression:
Stored size: 407 Bytes
Contents
require File.dirname(__FILE__) + '/abstract_unit' require 'action_mailer/adv_attr_accessor' class AdvAttrTest < Test::Unit::TestCase class Person include ActionMailer::AdvAttrAccessor adv_attr_accessor :name end def test_adv_attr bob = Person.new assert_nil bob.name bob.name 'Bob' assert_equal 'Bob', bob.name assert_raise(ArgumentError) {bob.name 'x', 'y'} end end
Version data entries
84 entries across 81 versions & 17 rubygems