提交 5ba69996 编写于 作者: A Arthur Nogueira Neves

Merge pull request #22821 from shosti/set-null-transaction

Allow add_to_transaction with null transaction
......@@ -33,6 +33,7 @@ def set_state(state)
class NullTransaction #:nodoc:
def initialize; end
def state; end
def closed?; true; end
def open?; false; end
def joinable?; false; end
......
......@@ -58,6 +58,11 @@ def transaction_with_return
end
end
def test_add_to_null_transaction
topic = Topic.new
topic.add_to_transaction
end
def test_successful_with_return
committed = false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册