From 1503376fa632d5efd16652c6b0358ba5ab1e09d7 Mon Sep 17 00:00:00 2001 From: realtin Date: Tue, 14 Jul 2015 18:10:56 +0200 Subject: [PATCH] refactor test to not use send method since dispatch method is not private (#6192) --- spec/models/account_deletion_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/account_deletion_spec.rb b/spec/models/account_deletion_spec.rb index 2a3d682a8..1424a731b 100644 --- a/spec/models/account_deletion_spec.rb +++ b/spec/models/account_deletion_spec.rb @@ -42,12 +42,12 @@ describe AccountDeletion, :type => :model do describe '#dispatch' do it "sends the account deletion xml" do - ad_new.send(:dispatch) + ad_new.dispatch end it 'creates a public postzord' do expect(Postzord::Dispatcher::Public).to receive(:new).and_return(double.as_null_object) - ad_new.send(:dispatch) + ad_new.dispatch end end