Merge pull request #27322 from kamipo/fix_ci_failure

Fix CI failure caused by #25227 and #25280 were merged at the same time
This commit is contained in:
Matthew Draper 2016-12-11 03:14:46 +10:30 committed by GitHub
commit 2affe7067f
2 changed files with 2 additions and 2 deletions

@ -58,7 +58,7 @@ def find_target
sc.execute(binds, klass, conn) do |record|
set_inverse_instance record
end.first
rescue RangeError
rescue ::RangeError
nil
end

@ -1079,7 +1079,7 @@ def self.name; "Temp"; end
end
comment = model.new
comment.post_id = 10_000_000_000
comment.post_id = 9223372036854775808 # out of range in the bigint
assert_nil comment.post
assert_not comment.valid?