Skip to content

Commit a465a4c

Browse files
committed
Skip postgres serial with trigger test, the issue is in AR 7.1, issue was logged in rails repo
- ticket logged in rails repo rails/rails#52485 - this issue is not present is Rails 7.0 or the new beta version 7.2
1 parent 81506f0 commit a465a4c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/db/postgresql/table_name_test.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,18 @@ def self.down
8181
end
8282
end
8383

84-
class SerialWithTrigger < ActiveRecord::Base;
84+
class SerialWithTrigger < ActiveRecord::Base
8585
self.table_name = 'serials'
8686
self.primary_key = :sid
8787
end
8888

89-
test 'serial with trigger' do
90-
sn = SerialWithTrigger.create! :value => 1234567890.to_s
89+
def test_serial_with_trigger
90+
pend "Issue happens in active record 7.1 internals, issue wass logged in rails repo"
91+
# issue link: https://github.com/rails/rails/issues/52485
92+
93+
sn = SerialWithTrigger.create!(value: 1_234_567_890.to_s)
9194

9295
assert sn.reload
9396
SerialWithTrigger.columns
9497
end
95-
9698
end

0 commit comments

Comments
 (0)