spec/boltless/statement_collector_spec.rb in boltless-1.3.0 vs spec/boltless/statement_collector_spec.rb in boltless-1.4.0

- old
+ new

@@ -5,11 +5,11 @@ RSpec.describe Boltless::StatementCollector do let(:instance) { described_class.new } describe 'delegations' do it 'allows to access the #build_cypher utility' do - expect(instance.respond_to?(:build_cypher)).to be_eql(true) + expect(instance.respond_to?(:build_cypher)).to be(true) end end describe '#add' do let(:action) { -> { instance.add('cypher', param_a: 1) } } @@ -19,10 +19,10 @@ end it 'collects the given statements' do action.call action.call - expect(instance.statements.count).to be_eql(2) + expect(instance.statements.count).to be(2) end it 'calls Request.statement_payload to prepare the statement' do expect(Boltless::Request).to \ receive(:statement_payload).with('cypher', param_a: 1).once