Skip to content

Commit

Permalink
Fix Sequel spec failures
Browse files Browse the repository at this point in the history
The internal equality operator seems to have changed. Comparing SQL
should be close enough.
  • Loading branch information
shioyama committed May 27, 2023
1 parent bc5d7a7 commit 5e6b597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/mobility/plugins/sequel/query_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

context "default query scope" do
it "defines query scope" do
expect(model_class.i18n).to eq(described_class.build_query(model_class, Mobility.locale))
expect(model_class.i18n.sql).to eq(described_class.build_query(model_class, Mobility.locale).sql)
end
end

Expand All @@ -29,7 +29,7 @@
end

it "defines query scope" do
expect(model_class.foo).to eq(described_class.build_query(model_class, Mobility.locale))
expect(model_class.foo.sql).to eq(described_class.build_query(model_class, Mobility.locale).sql)
expect { model_class.i18n }.to raise_error(NoMethodError)
end
end
Expand Down

0 comments on commit 5e6b597

Please sign in to comment.