Sha256: 720693b499d7fd62072ecb5b3f66adcc66015d4a26b2aa70bb293f53e35e76f7

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

require 'tc_helper.rb'
class Funk
  include Axlsx::Accessors
  include Axlsx::SerializedAttributes
  serializable_attributes :camel_symbol, :boolean, :integer

  attr_accessor :camel_symbol, :boolean, :integer
end

class TestSeralizedAttributes < Test::Unit::TestCase
  def setup
    @object = Funk.new
  end

  def test_camel_symbol
    @object.camel_symbol = :foo_bar
    assert_equal('camelSymbol="fooBar" ', @object.serialized_attributes)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caxlsx-3.2.0 test/util/tc_serialized_attributes.rb