fix calendar spec mock

This commit is contained in:
Albert Sun 2017-07-05 15:02:33 -04:00
parent f9695499ae
commit 596c6b5ae6

View file

@ -75,6 +75,7 @@ describe Agents::GoogleCalendarPublishAgent, :vcr do
fake_interface = Object.new
mock(GoogleCalendar).new(agent.interpolate_options(agent.options), Rails.logger) { fake_interface }
mock(fake_interface).publish_as(calendar_id, message) { response_hash }
mock(fake_interface).cleanup!
end
describe 'when the calendar_id is in the options' do