aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2017-04-07 19:02:11 +0900
committerKoichi ITO <koic.ito@gmail.com>2017-04-07 19:03:04 +0900
commit569cd97c80de95154312a0b33596211e55722a9e (patch)
treedc854550ed36c5f347edf25cec248b333641d108 /activerecord
parente88e35804a017b10d93e7e9c6b5708a2273047df (diff)
downloadrails-569cd97c80de95154312a0b33596211e55722a9e.tar.gz
rails-569cd97c80de95154312a0b33596211e55722a9e.tar.bz2
rails-569cd97c80de95154312a0b33596211e55722a9e.zip
Fix an AR test of schema dump when using Oracle
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/comment_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/test/cases/comment_test.rb b/activerecord/test/cases/comment_test.rb
index c23be52a6c..8184c084fc 100644
--- a/activerecord/test/cases/comment_test.rb
+++ b/activerecord/test/cases/comment_test.rb
@@ -113,7 +113,11 @@ if ActiveRecord::Base.connection.supports_comments?
assert_match %r[t\.string\s+"name",\s+comment: "Comment should help clarify the column purpose"], output
assert_match %r[t\.string\s+"obvious"\n], output
assert_match %r[t\.string\s+"content",\s+comment: "Whoa, content describes itself!"], output
- assert_match %r[t\.integer\s+"rating",\s+comment: "I am running out of imagination"], output
+ if current_adapter?(:OracleAdapter)
+ assert_match %r[t\.integer\s+"rating",\s+precision: 38,\s+comment: "I am running out of imagination"], output
+ else
+ assert_match %r[t\.integer\s+"rating",\s+comment: "I am running out of imagination"], output
+ end
unless current_adapter?(:OracleAdapter)
assert_match %r[t\.index\s+.+\s+comment: "\\\"Very important\\\" index that powers all the performance.\\nAnd it's fun!"], output
assert_match %r[t\.index\s+.+\s+name: "idx_obvious",\s+comment: "We need to see obvious comments"], output