Sha256: 0bd4a2e2b98a713dc0687d318933690d3fdad351a53155239aa433b971eab193
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true RSpec.describe Thing do it "randomly selects in main query and subquery" do # rubocop:disable Layout/SpaceInsideParens,Layout/DotPosition expect( Thing.where(word: Thing.where(word: "foo")).to_sql ). to end_with( %q[WHERE "things"."word" = 'foo' ORDER BY RANDOM()) ORDER BY RANDOM()] ) # rubocop:enable Layout/SpaceInsideParens,Layout/DotPosition end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unreliable-0.1.3 | spec/model_subquery_spec.rb |
unreliable-0.1.2 | spec/model_subquery_spec.rb |
unreliable-0.1.1 | spec/model_subquery_spec.rb |
unreliable-0.1.0 | spec/model_subquery_spec.rb |