Sha256: 104a4c2eabb732fa1c86f97a594950df2ca339bf5f38e80d0b29bc2e77f074b4
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true RSpec.describe Cat do it "randomly selects in main query and subquery" do # rubocop:disable Layout/SpaceInsideParens,Layout/DotPosition expect( Cat.where(name: Cat.where(name: "foo")).to_sql ). to end_with( %q[WHERE "cats"."name" = 'foo' ORDER BY RANDOM()) ORDER BY RANDOM()] ) # rubocop:enable Layout/SpaceInsideParens,Layout/DotPosition end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unreliable-0.9.1 | spec/model_subquery_spec.rb |
unreliable-0.9.0 | spec/model_subquery_spec.rb |