Skip to content

Commit

Permalink
Fix calls to old method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Morris authored and mcmire committed Apr 4, 2015
1 parent fdde3a5 commit f80b85f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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|
Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit f80b85f

Please sign in to comment.