Parcourir la source

fix calendar spec mock

Albert Sun il y a 7 ans
Parent
commit
596c6b5ae6
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      spec/models/agents/google_calendar_publish_agent_spec.rb

+ 1 - 0
spec/models/agents/google_calendar_publish_agent_spec.rb

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