refactor test to not use send method
since dispatch method is not private (#6192)
This commit is contained in:
parent
880886bbad
commit
1503376fa6
1 changed files with 2 additions and 2 deletions
|
|
@ -42,12 +42,12 @@ describe AccountDeletion, :type => :model do
|
||||||
|
|
||||||
describe '#dispatch' do
|
describe '#dispatch' do
|
||||||
it "sends the account deletion xml" do
|
it "sends the account deletion xml" do
|
||||||
ad_new.send(:dispatch)
|
ad_new.dispatch
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'creates a public postzord' do
|
it 'creates a public postzord' do
|
||||||
expect(Postzord::Dispatcher::Public).to receive(:new).and_return(double.as_null_object)
|
expect(Postzord::Dispatcher::Public).to receive(:new).and_return(double.as_null_object)
|
||||||
ad_new.send(:dispatch)
|
ad_new.dispatch
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue