提交 77de690a 编写于 作者: J Jeremy Kemper

Be careful not to reference ActiveRecord if it isn't loaded, fixing rake test...

Be careful not to reference ActiveRecord if it isn't loaded, fixing rake test when you're working without a database. [eedn]


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 2c951efe
......@@ -9,7 +9,12 @@ def values; map { |k, v| v } end
end
end
class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc:
if defined? ActiveRecord
class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc:
end
else
class FixtureClassNotFound < StandardError #:nodoc:
end
end
# Fixtures are a way of organizing data that you want to test against; in short, sample data. They come in 3 flavors:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册