Sha256: 1cda9a38a2e1e8253d1da290fb1c883e5404024d9cf3f6965424558ad6d0a3ef
Contents?: true
Size: 419 Bytes
Versions: 8
Compression:
Stored size: 419 Bytes
Contents
require 'spec_helper' RSpec.describe Child, type: :model do describe 'Associations' do it { is_expected.to belong_to :parent } end describe 'Attributes' do it { is_expected.to respond_to :parent_id } end describe 'Database' do it { is_expected.to have_db_column(:parent_id).of_type(:integer) } end describe 'Validations' do it { is_expected.to validate_presence_of :parent } end end
Version data entries
8 entries across 8 versions & 1 rubygems