Sha256: 2bb47088658b82a4b277450b255340bcd7dbd74a5afb5a2f0b1b14a73a7d2e7b
Contents?: true
Size: 656 Bytes
Versions: 6
Compression:
Stored size: 656 Bytes
Contents
require 'spec_helper' describe ActiveForce::SObject do describe '#table_name' do it 'Use the class name adding "__c"' do class Custom < ActiveForce::SObject end expect(Custom.table_name).to eq('Custom__c') end it 'with standard SObject types it does not add the "__c"' do class Account < ActiveForce::SObject end expect(Account.table_name).to eq('Account') end it 'can be enforced in the class definition' do class EnforcedTableName < ActiveForce::SObject self.table_name = 'Forced__c' end expect(EnforcedTableName.table_name).to eq('Forced__c') end end end
Version data entries
6 entries across 6 versions & 1 rubygems