Sha256: 8add2f91889e7124ca21efe2f0407029da17801d7ea0a868577f37c5acfa0249
Contents?: true
Size: 526 Bytes
Versions: 8
Compression:
Stored size: 526 Bytes
Contents
require_relative '../test_helper' module PagarMe class ObjectTest < PagarMeTestCase should 'be able to create object and add any attribute' do object = PagarMe::PagarMeObject.new attr1: 2 assert_equal object.attr1, 2 object = PagarMe::PagarMeObject.new object.attr1 = 2 assert_equal object.attr1, 2 end should 'be able to add nested attributes' do object = PagarMe::PagarMeObject.new nested: { attrib: 2 } assert_equal object.nested.attrib, 2 end end end
Version data entries
8 entries across 8 versions & 1 rubygems