We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b5c34 commit 495ae43Copy full SHA for 495ae43
test/cases/coerced_tests.rb
@@ -121,8 +121,14 @@ class BindParameterTest < ActiveRecord::TestCase
121
122
123
class CalculationsTest < ActiveRecord::TestCase
124
- # I have no idea why 2 queries happen on windows vs 1.
125
- coerce_tests! :test_offset_is_kept if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
+ # This fails randomly due to schema cache being lost?
+ coerce_tests! :test_offset_is_kept
126
+ def test_offset_is_kept_coerced
127
+ Account.first
128
+ queries = assert_sql { Account.offset(1).count }
129
+ assert_equal 1, queries.length
130
+ assert_match(/OFFSET/, queries.first)
131
+ end
132
133
# Are decimal, not integer.
134
coerce_tests! :test_should_return_decimal_average_of_integer_field
0 commit comments