Michael Schoen wrote:
"marcel" made AR/Oracle cry...
http://dev.rubyonrails.org/changeset/4608
------------------------------------------------------------------------
r4608 | marcel | 2006-07-12 20:23:39 -0700 (Wed, 12 Jul 2006) | 1 line
Customize default BigDecimal formatting. [EMAIL PROTECTED]
This broke the test, as the expected output is now "2.78" and not
"0.278E1". Patch to fix:
Index: test/schema_dumper_test.rb
===================================================================
--- test/schema_dumper_test.rb (revision 4610)
+++ test/schema_dumper_test.rb (working copy)
@@ -89,7 +89,7 @@
ActiveRecord::SchemaDumper.ignore_tables = [/^[^n]/]
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection,
stream)
output = stream.string
- assert_match %r{:precision => 3,[[:space:]]+:scale =>
2,[[:space:]]+:default => 0.278E1}, output
+ assert_match %r{:precision => 3,[[:space:]]+:scale =>
2,[[:space:]]+:default => 2.78}, output
end
end
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core