blob: d2617167a02b0a1f2785949dc5262a2461c6be1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'abstract_unit'
class ActiveSchemaTest < Test::Unit::TestCase
def test_add_column_with_native_type_rejected
assert_raises ActiveRecord::UnknownTypeError do
add_column(:people, :varchar, :limit => 15)
end
end
private
def method_missing(method_symbol, *arguments)
ActiveRecord::Base.connection.send(method_symbol, *arguments)
end
end
|