Merge pull request #22821 from shosti/set-null-transaction
Allow add_to_transaction with null transaction
This commit is contained in:
commit
5ba6999637
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user