Class: DatabaseCleaner::Neo4j::Transaction

Inherits:
Object
  • Object
show all
Includes:
Generic::Transaction, Base
Defined in:
lib/database_cleaner/neo4j/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#database, #db, #db=

Methods included from Generic::Base

#cleaning, #db, included

Methods included from Generic::Transaction

#initialize

Instance Attribute Details

#txObject

Returns the value of attribute tx.



11
12
13
# File 'lib/database_cleaner/neo4j/transaction.rb', line 11

def tx
  @tx
end

Instance Method Details

#cleanObject



19
20
21
# File 'lib/database_cleaner/neo4j/transaction.rb', line 19

def clean
  rollback
end

#startObject



13
14
15
16
17
# File 'lib/database_cleaner/neo4j/transaction.rb', line 13

def start
  super
  rollback
  self.tx = ::Neo4j::Transaction.new
end