about summary refs log tree commit diff
path: root/spec/services
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-05 14:56:00 -0400
committerGitHub <noreply@github.com>2017-05-05 14:56:00 -0400
commit484c9709b67685c95de351a39e3dfb140acd3681 (patch)
tree0d74cd725e46cd75ca1568d866d5d5ef906b8c0a /spec/services
parentd08f1112d517788fb66d2683766cc168bac48315 (diff)
Misc spec coverage improvements (#2821)
* Dont use raise_error by itself (avoids warning)

* Add coverage for AccountFilter

* Improve coverage and refactor for Subscription#lease_seconds

* Improve coverage and refactor for NotificationMailer

* Simplify assignment of min/max threshold on subscription
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/subscribe_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/subscribe_service_spec.rb b/spec/services/subscribe_service_spec.rb
index 8cf0100c6..01cdb29c0 100644
--- a/spec/services/subscribe_service_spec.rb
+++ b/spec/services/subscribe_service_spec.rb
@@ -33,6 +33,6 @@ RSpec.describe SubscribeService do
 
   it 'fails loudly if PuSH hub is unavailable' do
     stub_request(:post, 'http://hub.example.com/').to_return(status: 503)
-    expect { subject.call(account) }.to raise_error
+    expect { subject.call(account) }.to raise_error(/Subscription attempt failed/)
   end
 end