Sha256: 1e5fffed078d447c0eeb45ae56b79ad2367a128522a5309b80e0e0b859515781
Contents?: true
Size: 539 Bytes
Versions: 3
Compression:
Stored size: 539 Bytes
Contents
require 'spec_helper' describe ActiveRecord::MTI do context 'helper' do describe '#testify' do it "returns true for truthy values" do expect(ActiveRecord::MTI.testify('f')).to eq(false) end end it "root has the right value" do expect(ActiveRecord::MTI.root).not_to be_nil end it "recovers if oid class candidate is not constantizable" do ActiveRecord::MTI.oid_class_candidates.unshift("IDontExist") expect(ActiveRecord::MTI.find_oid_class).not_to be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_record-mti-0.3.2 | spec/active_record/mti_spec.rb |
active_record-mti-0.3.0.pre.rc4 | spec/active_record/mti_spec.rb |
active_record-mti-0.3.0.pre.rc3 | spec/active_record/mti_spec.rb |