Sha256: 195288213e39e24471449f16141c35ebbf232ce62f0d60fe44c2a0d8c1cdc470
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
require 'test_helper' class Superstore::AttributeMethods::PrimaryKeyTest < Superstore::TestCase test 'get id' do model = temp_object do key do "foo" end end record = model.new assert_equal 'foo', record.id end test 'set id' do issue = Issue.new id: 'foo' assert_equal 'foo', issue.id end test 'attributes' do issue = Issue.new(id: 'lol') assert_not_nil issue.attributes['id'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
superstore-3.0.0 | test/unit/attribute_methods/primary_key_test.rb |
superstore-2.5.0 | test/unit/attribute_methods/primary_key_test.rb |