refactor test to not use send method

since dispatch method is not private
(#6192)
This commit is contained in:
realtin 2015-07-14 18:10:56 +02:00 committed by Dennis Schubert
parent 880886bbad
commit 1503376fa6

View file

@ -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