mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c326851e4d
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3557 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
18 lines
509 B
Ruby
18 lines
509 B
Ruby
require 'abstract_unit'
|
|
require 'fixtures/default'
|
|
|
|
class DefaultsTest < Test::Unit::TestCase
|
|
if %w(PostgreSQL).include? ActiveRecord::Base.connection.adapter_name
|
|
def test_default_integers
|
|
default = Default.new
|
|
assert_instance_of(Fixnum, default.positive_integer)
|
|
assert_equal(default.positive_integer, 1)
|
|
assert_instance_of(Fixnum, default.negative_integer)
|
|
assert_equal(default.negative_integer, -1)
|
|
end
|
|
else
|
|
def test_dummy
|
|
assert true
|
|
end
|
|
end
|
|
end
|