提交 b9a7ec6d 编写于 作者: C Chad Woolley 提交者: Jeremy Kemper

reduce max size of fixture IDs to fix sqlite2 tests, because sqlite2 was...

reduce max size of fixture IDs to fix sqlite2 tests, because sqlite2 was getting negative and changing values for ID field. See http://www.sqlite.org/datatypes.htmlSigned-off-by: NYehuda Katz <wycats@gmail.com>
上级 006519d2
......@@ -434,7 +434,7 @@ class FixtureClassNotFound < StandardError #:nodoc:
# Any fixture labeled "DEFAULTS" is safely ignored.
class Fixtures < (RUBY_VERSION < '1.9' ? YAML::Omap : Hash)
MAX_ID = 2 ** 31 - 1
MAX_ID = 2 ** 30 - 1
DEFAULT_FILTER_RE = /\.ya?ml$/
@@all_cached_fixtures = {}
......
......@@ -519,8 +519,8 @@ def test_identifies_symbols
end
def test_identifies_consistently
assert_equal 1281023246, Fixtures.identify(:ruby)
assert_equal 2140105598, Fixtures.identify(:sapphire_2)
assert_equal 207281424, Fixtures.identify(:ruby)
assert_equal 1066363776, Fixtures.identify(:sapphire_2)
end
TIMESTAMP_COLUMNS = %w(created_at created_on updated_at updated_on)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册