Commit d35a9ac061307e094eafa04d42cac6d1136f0165
1 parent
10767c92
Exists in
master
and in
1 other branch
check service is accepted with connect
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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} |