Skip to content

Commit

Permalink
fix calendar spec mock
Browse files Browse the repository at this point in the history
  • Loading branch information
albertsun committed Jul 5, 2017
1 parent f969549 commit 596c6b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/models/agents/google_calendar_publish_agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def setup_mock!
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
Expand Down

0 comments on commit 596c6b5

Please sign in to comment.