spec/boltless/extensions/transactions_spec.rb in boltless-1.1.0 vs spec/boltless/extensions/transactions_spec.rb in boltless-1.2.0

- old
+ new

@@ -94,11 +94,11 @@ context 'with Cypher syntax errors' do let(:statement) { statement_with_syntax_errors } it 'returns nil' do - expect(action).to be(nil) + expect(action).to be_nil end end context 'with multiple rows' do let(:statement) { fetch_users_statement } @@ -118,11 +118,11 @@ context 'with write operations on a read-only transaction' do let(:statement) { create_user_statement } let(:opts) { { access_mode: :read } } it 'returns nil' do - expect(action).to be(nil) + expect(action).to be_nil end end end describe '.one_shot!' do @@ -191,11 +191,11 @@ fetch_users_statement ] end it 'returns nil' do - expect(action).to be(nil) + expect(action).to be_nil end it 'rolls back the transaction (no data is written)' do suppress(StandardError) { action } cypher, args = count_users_statement @@ -322,10 +322,10 @@ tx.run(cypher, **args) end end it 'returns nil' do - expect(action).to be(nil) + expect(action).to be_nil end it 'rolls back the transaction (no data is written)' do suppress(StandardError) { action } cypher, args = count_users_statement