Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5991e5c789
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.457 kb
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
end
end
Jump to Line
Something went wrong with that request. Please try again.