浏览代码

fix calendar spec mock

Albert Sun 7 年之前
父节点
当前提交
596c6b5ae6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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