Sha256: d13a95adab111ecc58fe4812f75f4b849697a4a5bf40df9aa0bd6255a4abd645
Contents?: true
Size: 586 Bytes
Versions: 8
Compression:
Stored size: 586 Bytes
Contents
require 'abstract_unit' class TestAttributeMethods < ActiveSupport::TestCase fixtures :kitchen_sinks, :reference_types def test_read_attribute_with_single_key rt = ReferenceType.find(1) assert_equal(1, rt.reference_type_id) assert_equal('NAME_PREFIX', rt.type_label) assert_equal('Name Prefix', rt.abbreviation) end def test_read_attribute_with_composite_keys sink = KitchenSink.find(1,2) assert_equal(1, sink.id_1) assert_equal(2, sink.id_2) assert_equal(Date.today, sink.a_date.to_date) assert_equal('string', sink.a_string) end end
Version data entries
8 entries across 8 versions & 1 rubygems