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

Version Path
actionpack-2.3.18 test/adv_attr_test.rb
actionpack_csi-2.3.5.p8 test/adv_attr_test.rb
actionpack-2.3.17-rack-upgrade-2.3.17 test/adv_attr_test.rb
actionpack-2.3.17 test/adv_attr_test.rb
actionpack_csi-2.3.5.p7 test/adv_attr_test.rb
actionpack_csi-2.3.5.p6 test/adv_attr_test.rb
actionpack-2.3.16 test/adv_attr_test.rb
actionpack-rack-upgrade-2-2.3.16 test/adv_attr_test.rb
actionpack-rack-upgrade-2-2.3.15 test/adv_attr_test.rb
actionpack-2.3.15 test/adv_attr_test.rb
actionpack-rack-upgrade-2.3.16 test/adv_attr_test.rb
actionpack-rack-upgrade-2.3.15 test/adv_attr_test.rb
actionpack-rack-upgrade-2.3.14 test/adv_attr_test.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionpack-2.3.14/test/adv_attr_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/actionpack-2.3.12/test/adv_attr_test.rb
actionpack-2.3.14 test/adv_attr_test.rb
kajam-1.0.3.rc2 vendor/rails/actionpack/test/adv_attr_test.rb
actionpack-2.3.12 test/adv_attr_test.rb
radiant-1.0.0.rc2 vendor/rails/actionpack/test/adv_attr_test.rb
radiant-1.0.0.rc1 vendor/rails/actionpack/test/adv_attr_test.rb