Whitespaces

[ci skip]
上级 19bd2f22
......@@ -365,18 +365,18 @@ def init_internals
pk = self.class.primary_key
@attributes[pk] = nil unless @attributes.key?(pk)
@aggregation_cache = {}
@association_cache = {}
@attributes_cache = {}
@previously_changed = {}
@changed_attributes = {}
@readonly = false
@destroyed = false
@marked_for_destruction = false
@new_record = true
@txn = nil
@_start_transaction_state = {}
@transaction = nil
@aggregation_cache = {}
@association_cache = {}
@attributes_cache = {}
@previously_changed = {}
@changed_attributes = {}
@readonly = false
@destroyed = false
@marked_for_destruction = false
@new_record = true
@txn = nil
@_start_transaction_state = {}
@transaction = nil
end
end
end
......@@ -328,19 +328,16 @@ def test_pool_sets_connection_visitor
assert @pool.connection.visitor.is_a?(Arel::Visitors::ToSql)
end
#make sure exceptions are thrown when establish_connection
#is called with a anonymous class
# make sure exceptions are thrown when establish_connection
# is called with a anonymous class
def test_anonymous_class_exception
anonymous = Class.new(ActiveRecord::Base)
handler = ActiveRecord::Base.connection_handler
assert_raises(RuntimeError){
assert_raises(RuntimeError) {
handler.establish_connection anonymous, nil
}
end
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册