mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
fix calendar spec mock
This commit is contained in:
parent
f9695499ae
commit
596c6b5ae6
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue