Sha256: 5279341ffaac778df07764b06037e48c2cd59258bb03dcb17300631ad67fa804

Contents?: true

Size: 453 Bytes

Versions: 19

Compression:

Stored size: 453 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

19 entries across 19 versions & 6 rubygems

Version Path
caxlsx-3.1.1 test/util/tc_serialized_attributes.rb
caxlsx-3.1.0 test/util/tc_serialized_attributes.rb
bonio-axlsx-2.2.3 test/util/tc_serialized_attributes.rb
caxlsx-3.0.4 test/util/tc_serialized_attributes.rb
caxlsx-3.0.3 test/util/tc_serialized_attributes.rb
caxlsx-3.0.2 test/util/tc_serialized_attributes.rb
caxlsx-2.0.2 test/util/tc_serialized_attributes.rb
caxlsx-3.0.1 test/util/tc_serialized_attributes.rb
caxlsx-3.0.0 test/util/tc_serialized_attributes.rb
axlsx-alt-3.0.1 test/util/tc_serialized_attributes.rb
axlsx-alt-3.0.0 test/util/tc_serialized_attributes.rb
axlsx-3.0.0.pre test/util/tc_serialized_attributes.rb
bonio-axlsx-2.2.2 test/util/tc_serialized_attributes.rb
bonio-axlsx-2.2.1 test/util/tc_serialized_attributes.rb
dg-axlsx-2.1.0 test/util/tc_serialized_attributes.rb
axlsx-2.1.0.pre test/util/tc_serialized_attributes.rb
l_axlsx-2.0.1 test/util/tc_serialized_attributes.rb
axlsx-2.0.1 test/util/tc_serialized_attributes.rb
axlsx-2.0.0 test/util/tc_serialized_attributes.rb