Commit d35a9ac061307e094eafa04d42cac6d1136f0165

Authored by damau
1 parent 10767c92
Exists in master and in 1 other branch production

check service is accepted with connect

spec/models/notification_service/gtalk_service_spec.rb
@@ -14,7 +14,7 @@ describe NotificationService::GtalkService do @@ -14,7 +14,7 @@ describe NotificationService::GtalkService do
14 message = double("message") 14 message = double("message")
15 Jabber::JID.should_receive(:new).with(notification_service.subdomain).and_return(jid) 15 Jabber::JID.should_receive(:new).with(notification_service.subdomain).and_return(jid)
16 Jabber::Client.should_receive(:new).with(jid).and_return(gtalk) 16 Jabber::Client.should_receive(:new).with(jid).and_return(gtalk)
17 - gtalk.should_receive(:connect) 17 + gtalk.should_receive(:connect).with(notification_service.service)
18 gtalk.should_receive(:auth).with(notification_service.api_token) 18 gtalk.should_receive(:auth).with(notification_service.api_token)
19 message_value = """#{problem.app.name.to_s} 19 message_value = """#{problem.app.name.to_s}
20 http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s} 20 http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}