diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-03-15 19:34:20 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-03-22 16:21:59 -0700 |
commit | cd07f194dc2d8e4278ea9a7d4ccebfe74513b0ac (patch) | |
tree | 59dbe54c54ed1674c50a86b25201f33ab9f0ae95 /activerecord/test/cases | |
parent | 4b4c8bdc776e2d42cd070d9cb1b3cc22f82469b1 (diff) | |
download | rails-cd07f194dc2d8e4278ea9a7d4ccebfe74513b0ac.tar.gz rails-cd07f194dc2d8e4278ea9a7d4ccebfe74513b0ac.tar.bz2 rails-cd07f194dc2d8e4278ea9a7d4ccebfe74513b0ac.zip |
decouple column definition from the database connection
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/column_definition_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/column_definition_test.rb b/activerecord/test/cases/column_definition_test.rb index 000096c4b9..dbb2f223cd 100644 --- a/activerecord/test/cases/column_definition_test.rb +++ b/activerecord/test/cases/column_definition_test.rb @@ -36,7 +36,7 @@ module ActiveRecord def test_should_not_include_default_clause_when_default_is_null column = Column.new("title", nil, "varchar(20)") column_def = ColumnDefinition.new( - @adapter, column.name, "string", + column.name, "string", column.limit, column.precision, column.scale, column.default, column.null) assert_equal "title varchar(20)", @viz.accept(column_def) end @@ -44,7 +44,7 @@ module ActiveRecord def test_should_include_default_clause_when_default_is_present column = Column.new("title", "Hello", "varchar(20)") column_def = ColumnDefinition.new( - @adapter, column.name, "string", + column.name, "string", column.limit, column.precision, column.scale, column.default, column.null) assert_equal %Q{title varchar(20) DEFAULT 'Hello'}, @viz.accept(column_def) end @@ -52,7 +52,7 @@ module ActiveRecord def test_should_specify_not_null_if_null_option_is_false column = Column.new("title", "Hello", "varchar(20)", false) column_def = ColumnDefinition.new( - @adapter, column.name, "string", + column.name, "string", column.limit, column.precision, column.scale, column.default, column.null) assert_equal %Q{title varchar(20) DEFAULT 'Hello' NOT NULL}, @viz.accept(column_def) end |