Skip to content

Commit

Permalink
Fix association spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Zane committed Mar 30, 2018
1 parent a095e19 commit a3bc25e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/baby_squeel/association_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
subject(:association) { create_association Post, :author }

if ActiveRecord::VERSION::MAJOR >= 5
it 'returns an wrapped Arel::Nodes::And' do
it 'generates SQL' do
node = association == Author.new(id: 42)
expect(node._arel.to_sql).to eq('"posts"."author_id" = 42')
end
Expand All @@ -59,7 +59,7 @@
subject(:association) { create_association Post, :author }

if ActiveRecord::VERSION::MAJOR >= 5
it 'returns some wrapped arel' do
it 'generates SQL' do
node = association != Author.new(id: 42)
expect(node._arel.to_sql).to eq('("posts"."author_id" != 42)')
end
Expand Down

0 comments on commit a3bc25e

Please sign in to comment.