spec/dbee/model_spec.rb in dbee-1.1.0 vs spec/dbee/model_spec.rb in dbee-1.2.0

- old
+ new

@@ -64,29 +64,29 @@ specify 'returns proper models' do members = subject.models.first expected_plan = { - 'members' => members + %w[members] => members } - plan = subject.ancestors(%w[members]) + plan = subject.ancestors!(%w[members]) expect(plan).to eq(expected_plan) end specify 'returns proper multi-level models' do members = subject.models.first demos = members.models.first phone_numbers = demos.models.first expected_plan = { - 'members' => members, - 'members.demos' => demos, - 'members.demos.phone_numbers' => phone_numbers + %w[members] => members, + %w[members demos] => demos, + %w[members demos phone_numbers] => phone_numbers } - plan = subject.ancestors(%w[members demos phone_numbers]) + plan = subject.ancestors!(%w[members demos phone_numbers]) expect(plan).to eq(expected_plan) end end