spec/dbee/key_path_spec.rb in dbee-1.0.3 vs spec/dbee/key_path_spec.rb in dbee-1.1.0

- old
+ new

@@ -31,9 +31,14 @@ specify 'equality compares to value' do expect(subject).to eq(key_path_string) expect(subject).to eql(key_path_string) end + specify 'equality compares to_s of both objects' do + expect(subject).to eq(key_path_string) + expect(subject).to eql(:'contacts.demographics.first') + end + describe '#ancestor_paths' do let(:key_path_string) { 'a.b.c.d.e' } subject { described_class.get(key_path_string) }