From f80b85fa86147d48806523578911554747fc956d Mon Sep 17 00:00:00 2001 From: Jacob Morris Date: Thu, 24 Jul 2014 15:01:45 -0600 Subject: [PATCH] Fix calls to old method name. --- .../association_matchers/model_reflection_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb b/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb index f1f77fd4b..6be807281 100644 --- a/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb @@ -54,7 +54,7 @@ end end - describe '#join_table' do + describe '#join_table_name' do context 'when the association was defined with a :join_table option' do it 'returns the value of the option' do create_table :foos, id: false do |t| @@ -68,7 +68,7 @@ delegate_reflection = country_model.reflect_on_association(:people) reflection = described_class.new(delegate_reflection) - expect(reflection.join_table).to eq 'foos' + expect(reflection.join_table_name).to eq 'foos' end end @@ -81,7 +81,7 @@ delegate_reflection = country_model.reflect_on_association(:people) reflection = described_class.new(delegate_reflection) - expect(reflection.join_table).to eq 'countries_people' + expect(reflection.join_table_name).to eq 'countries_people' end end end